ebook img

Self-Service AI with Power BI Desktop: Machine Learning Insights for Business PDF

358 Pages·2020·16.074 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Self-Service AI with Power BI Desktop: Machine Learning Insights for Business

Self-Service AI with Power BI Desktop Machine Learning Insights for Business — Markus Ehrenmueller-Jensen Self-Service AI with Power BI Desktop Machine Learning Insights for Business Markus Ehrenmueller-Jensen Self-Service AI with Power BI Desktop: Machine Learning Insights for Business Markus Ehrenmueller-Jensen CEO, Savory Data, Alkoven, Austria ISBN-13 (pbk): 978-1-4842-6230-6 ISBN-13 (electronic): 978-1-4842-6231-3 https://doi.org/10.1007/978-1-4842-6231-3 Copyright © 2020 by Markus Ehrenmueller-Jensen This work is subject to copyright. All rights are reserved by the publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed. Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights. While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein. Managing Director, Apress Media LLC: Welmoed Spahr Acquisitions Editor: Jonathan Gennick Development Editor: Laura Berendson Coordinating Editor: Jill Balzano Cover image designed by Freepik (www.freepik.com) Distributed to the book trade worldwide by Springer Science+Business Media New York, 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, email orders-ny@springer-sbm. com, or visit www.springeronline.com. Apress Media, LLC is a California LLC and the sole member (owner) is Springer Science+Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation. For information on translations, please e-mail [email protected]; for reprint, paperback, or audio rights, please e-mail [email protected]. Apress titles may be purchased in bulk for academic, corporate, or promotional use. eBook versions and licenses are also available for most titles. For more information, reference our Print and eBook Bulk Sales web page at http://www.apress.com/bulk-sales. Any source code or other supplementary material referenced by the author in this book is available to readers on GitHub via the book’s product page, located at www.apress.com/9781484262306. For more detailed information, please visit http://www.apress.com/source-code. Printed on acid-free paper I dedicate this book to my grandma, Franziska. I hope that all my readers will be as happy and agile at 93 years old as she is now. Table of Contents About the Author �����������������������������������������������������������������������������������������������������xi About the Technical Reviewer �������������������������������������������������������������������������������xiii Acknowledgments ���������������������������������������������������������������������������������������������������xv Introduction �����������������������������������������������������������������������������������������������������������xvii Chapter 1: Asking Questions in Natural Language ���������������������������������������������������1 Q&A Visual �������������������������������������������������������������������������������������������������������������������������������������1 How to Create a Q&A Visual �����������������������������������������������������������������������������������������������������1 Q&A Visual Applied ������������������������������������������������������������������������������������������������������������������2 Q&A Button ������������������������������������������������������������������������������������������������������������������������������������8 Q&A Dialog ����������������������������������������������������������������������������������������������������������������������������������13 Keywords ������������������������������������������������������������������������������������������������������������������������������������14 Synonyms �����������������������������������������������������������������������������������������������������������������������������������15 Teach Q&A �����������������������������������������������������������������������������������������������������������������������������������17 Linguistic Schema �����������������������������������������������������������������������������������������������������������������������23 Key Takeaways ����������������������������������������������������������������������������������������������������������������������������25 Chapter 2: The Insights Feature �����������������������������������������������������������������������������27 Explain the Increase ��������������������������������������������������������������������������������������������������������������������27 Explain the Decrease ������������������������������������������������������������������������������������������������������������������37 Find Different Distributions ���������������������������������������������������������������������������������������������������������38 Types of Insights �������������������������������������������������������������������������������������������������������������������������42 Quick Insights Feature ����������������������������������������������������������������������������������������������������������������43 Types of Quick Insights ���������������������������������������������������������������������������������������������������������������50 Key Takeaways ����������������������������������������������������������������������������������������������������������������������������51 v Table of ConTenTs Chapter 3: Discovering Key Influencers �����������������������������������������������������������������53 Introduction ���������������������������������������������������������������������������������������������������������������������������������53 Analyze Categorical Data ������������������������������������������������������������������������������������������������������������55 Analyze Continuous Data ������������������������������������������������������������������������������������������������������������56 Explain by Categorical Data ��������������������������������������������������������������������������������������������������������57 Explain by Continuous Data ��������������������������������������������������������������������������������������������������������59 Setting Granularity ����������������������������������������������������������������������������������������������������������������������61 Filters ������������������������������������������������������������������������������������������������������������������������������������������64 Top Segments �����������������������������������������������������������������������������������������������������������������������������65 Top Segments Detail �������������������������������������������������������������������������������������������������������������������67 Types of Influences ���������������������������������������������������������������������������������������������������������������������70 Fields ������������������������������������������������������������������������������������������������������������������������������������������71 Format Options ���������������������������������������������������������������������������������������������������������������������������71 Data Model ����������������������������������������������������������������������������������������������������������������������������������78 Key Takeaways ����������������������������������������������������������������������������������������������������������������������������80 Chapter 4: Drilling Down and Decomposing Hierarchies ����������������������������������������81 Expand and Collapse in a Visual �������������������������������������������������������������������������������������������������81 Drilling Up and Down in a Visual �������������������������������������������������������������������������������������������������84 Hierarchies in the Data Model �����������������������������������������������������������������������������������������������������86 Drill-through ��������������������������������������������������������������������������������������������������������������������������������87 Drill-through for a Measure ���������������������������������������������������������������������������������������������������88 Drill-through for a Column �����������������������������������������������������������������������������������������������������90 Drill-through to a Different Report �����������������������������������������������������������������������������������������91 Tooltip �����������������������������������������������������������������������������������������������������������������������������������������91 Decomposition Tree (traditional) �������������������������������������������������������������������������������������������������95 Decomposition Tree (smart) ��������������������������������������������������������������������������������������������������������98 Key Takeaways ��������������������������������������������������������������������������������������������������������������������������100 vi Table of ConTenTs Chapter 5: Adding Smart Visualizations ���������������������������������������������������������������103 Trendline �����������������������������������������������������������������������������������������������������������������������������������104 Trendline in DAX ������������������������������������������������������������������������������������������������������������������������107 Forecast ������������������������������������������������������������������������������������������������������������������������������������118 Adding a Custom Visualization ��������������������������������������������������������������������������������������������������120 Time Series Forecasting Chart ��������������������������������������������������������������������������������������������������124 Forecasting with ARIMA ������������������������������������������������������������������������������������������������������������125 Forecasting TBATS ��������������������������������������������������������������������������������������������������������������������126 Time Series Decomposition Chart ���������������������������������������������������������������������������������������������128 Scatter Chart with Trendline �����������������������������������������������������������������������������������������������������130 Spline Chart ������������������������������������������������������������������������������������������������������������������������������131 Clustering ����������������������������������������������������������������������������������������������������������������������������������132 Clustering with Outliers ������������������������������������������������������������������������������������������������������������133 Outliers Detection ���������������������������������������������������������������������������������������������������������������������135 Correlation Plot �������������������������������������������������������������������������������������������������������������������������137 Decision Tree Chart �������������������������������������������������������������������������������������������������������������������139 Word Cloud ��������������������������������������������������������������������������������������������������������������������������������141 Key Takeaways ��������������������������������������������������������������������������������������������������������������������������143 Chapter 6: Experimenting with Scenarios ������������������������������������������������������������145 Scenarios in Action �������������������������������������������������������������������������������������������������������������������145 Creating a What-if Parameter ���������������������������������������������������������������������������������������������������148 Creating Measures in DAX ��������������������������������������������������������������������������������������������������������152 Ahead of the Curve �������������������������������������������������������������������������������������������������������������������153 DAX at Its Best ��������������������������������������������������������������������������������������������������������������������������154 Key Takeaways ��������������������������������������������������������������������������������������������������������������������������155 Chapter 7: Characterizing a Dataset ���������������������������������������������������������������������157 Power Query �����������������������������������������������������������������������������������������������������������������������������157 Column Quality ��������������������������������������������������������������������������������������������������������������������������158 Column Distribution ������������������������������������������������������������������������������������������������������������������160 vii Table of ConTenTs Quality and Distribution Peek ����������������������������������������������������������������������������������������������������164 Column Profile ���������������������������������������������������������������������������������������������������������������������������170 Table Profile ������������������������������������������������������������������������������������������������������������������������������174 Key Takeaways ��������������������������������������������������������������������������������������������������������������������������178 Chapter 8: Creating Columns from Examples �������������������������������������������������������181 Power Query Mashup Language �����������������������������������������������������������������������������������������������181 Add a Custom Column ���������������������������������������������������������������������������������������������������������������186 Column from Examples �������������������������������������������������������������������������������������������������������������187 Web Scraping ����������������������������������������������������������������������������������������������������������������������������193 Web by Example ������������������������������������������������������������������������������������������������������������������������208 Key Takeaways ��������������������������������������������������������������������������������������������������������������������������211 Chapter 9: Executing R and Python Visualizations �����������������������������������������������213 R and Python �����������������������������������������������������������������������������������������������������������������������������213 Getting Power BI Ready for R ����������������������������������������������������������������������������������������������������214 Getting Power BI Ready for Python �������������������������������������������������������������������������������������������216 Introduction to R and Python Visualizations ������������������������������������������������������������������������������218 Simple R Script Visual ���������������������������������������������������������������������������������������������������������������221 Simple Python Script Visual ������������������������������������������������������������������������������������������������������222 R Script Editor and Python Script Editor �����������������������������������������������������������������������������������223 R Script Visual: Table �����������������������������������������������������������������������������������������������������������������226 R Script Visual: Trendline �����������������������������������������������������������������������������������������������������������227 R Script Visual: ARIMA ���������������������������������������������������������������������������������������������������������������229 R Script Visual: Time-Series Decomposition �����������������������������������������������������������������������������233 R Script Visual: Scatter with Trendline ��������������������������������������������������������������������������������������234 R Script Visual: Scatter with Spline �������������������������������������������������������������������������������������������236 R Script Visual: Clustering ���������������������������������������������������������������������������������������������������������237 R Script Visual: Correlation Plot ������������������������������������������������������������������������������������������������239 R Script Visual: Word Cloud �������������������������������������������������������������������������������������������������������241 Python Script Visual: Table ��������������������������������������������������������������������������������������������������������243 viii Table of ConTenTs Python Script Visual: Trendline ��������������������������������������������������������������������������������������������������244 Python Script Visual: ARIMA ������������������������������������������������������������������������������������������������������247 Python Script Visual: Time-Series Decomposition ��������������������������������������������������������������������249 Python Script Visual: Scatter with Trendline �����������������������������������������������������������������������������251 Python Script Visual: Scatter with Spline ����������������������������������������������������������������������������������253 Python Script Visual: Clustering ������������������������������������������������������������������������������������������������255 Python Script Visual: Correlation Plot ����������������������������������������������������������������������������������������256 Python Script Visual: Word Cloud ����������������������������������������������������������������������������������������������258 Power BI Service and Power BI Report Server �������������������������������������������������������������������������260 Key Takeaways ��������������������������������������������������������������������������������������������������������������������������261 Chapter 10: Transforming Data with R and Python ����������������������������������������������263 R and Python �����������������������������������������������������������������������������������������������������������������������������263 Load Data with R �����������������������������������������������������������������������������������������������������������������������264 Transform Data with R ��������������������������������������������������������������������������������������������������������������268 Trendline ������������������������������������������������������������������������������������������������������������������������������271 Time-Series Decomposition ������������������������������������������������������������������������������������������������271 Clustering ����������������������������������������������������������������������������������������������������������������������������273 Key Phrases �������������������������������������������������������������������������������������������������������������������������274 Load Data with Python ��������������������������������������������������������������������������������������������������������������275 Transform Data with Python ������������������������������������������������������������������������������������������������������279 Trendline ������������������������������������������������������������������������������������������������������������������������������282 Time-Series Decomposition ������������������������������������������������������������������������������������������������283 Clustering ����������������������������������������������������������������������������������������������������������������������������284 Key Phrases �������������������������������������������������������������������������������������������������������������������������285 Visualize Data Imported and Transformed in R and Python ������������������������������������������������������287 Trendline ������������������������������������������������������������������������������������������������������������������������������288 Time- Series Decomposition �����������������������������������������������������������������������������������������������289 Wordcloud and Key Phrases ������������������������������������������������������������������������������������������������290 Key Takeaways ��������������������������������������������������������������������������������������������������������������������������292 ix Table of ConTenTs Chapter 11: Execute Machine Learning Models in the Azure Cloud ���������������������293 AI Insights ���������������������������������������������������������������������������������������������������������������������������������294 Text Analytics �����������������������������������������������������������������������������������������������������������������������296 Vision �����������������������������������������������������������������������������������������������������������������������������������300 Azure Machine Learning ������������������������������������������������������������������������������������������������������302 Azure Cognitive Services ����������������������������������������������������������������������������������������������������������303 Language API �����������������������������������������������������������������������������������������������������������������������306 Sentiment API ����������������������������������������������������������������������������������������������������������������������307 Keyphrases API ��������������������������������������������������������������������������������������������������������������������309 Applying the API Functions ��������������������������������������������������������������������������������������������������310 Pre-trained Model in Azure Machine Learning Studio (classic) ������������������������������������������������313 Your Own Model in Azure Machine Learning Studio (classic) ���������������������������������������������������335 Key Takeaways ��������������������������������������������������������������������������������������������������������������������������338 Index ���������������������������������������������������������������������������������������������������������������������339 x

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.