logo资料库

Pro Power BI Desktop(Apress,2016).pdf

第1页 / 共533页
第2页 / 共533页
第3页 / 共533页
第4页 / 共533页
第5页 / 共533页
第6页 / 共533页
第7页 / 共533页
第8页 / 共533页
资料共533页,剩余部分请下载后查看
Contents at a Glance
Contents
About the Author
About the Technical Reviewer
Acknowledgments
Introduction
Chapter 1: Introduction to Power BI Desktop
The Microsoft Self-Service Business Intelligence Solution
Import Data from Diverse Sources
Model Your Data
Creating Dashboards and Reports
Power BI Desktop Files
Installing Power BI Desktop
Removing Power BI Desktop
Running Power BI Desktop
A First Power BI Desktop Dashboard
Loading the Source Data
The Data Load Process
The Navigator Window
The Navigator Data Preview
Modifying Data
The Power BI Desktop Window
Your First Visualizations
Display Available Fields
Add a Matrix of Sales per Country by Year
Add a Column Chart of Delivery Charge by Model
Add a Map of Labor Cost by Country
Add a Card Showing the Total Cost of Spare Parts
Add a Slicer by Make
Arranging the Dashboard
Moving a Visualization
Resizing a Visualization
Interactivity in Dashboards
Creating and Modifying Reports
Adding Pages
Renaming Pages
Deleting Pages
Moving Pages
Duplicating Pages
Scrolling through Collections of Pages
Importing Excel and Power View Items
Conclusion
Chapter 2: Discovering and Loading Data with Power BI Desktop
Data Sources
File Sources
Databases
Azure
Other Sources
Loading Data
Web Pages
CSV Files
What Is a CSV File?
Text Files
XML Files
Excel
Microsoft Access Databases
Relational Databases: SQL Server
Automatically Loading Related Tables
Database Options
Server Connection
Searching for Databases, Tables, and Views in Navigator
Database Security
Using an SQL Statement
Microsoft SQL Server Analysis Services Data Sources
Analysis Services Cube Tools
Add Items
Collapse Columns
Microsoft SQL Server Analysis Services Tabular Data Sources
Other Data Sources
Reusing Recent Data Sources
Reusing a Data Source
Pinning a Data Source
Refreshing Data
Refreshing a Query
Refreshing All the Queries in a Power BI Desktop File
Old Data
Connection Security
Conclusion
Chapter 3: Transforming Datasets
Power BI Desktop Queries
Editing Data After a Data Load
Transforming Data Before Loading
Query or Load?
The Power BI Desktop Query Editor
The Applied Steps List
Renaming a Step
Deleting a Step
The Power BI Desktop Query Editor Ribbons
The Home Ribbon
The Transform Ribbon
The Add Column Ribbon
The View Ribbon
Dataset Shaping
Renaming Columns
Reordering Columns
Removing Columns
Merging Columns
Removing Records
Keep Rows
Remove Rows
Remove Blank Rows
Removing Duplicate Records
Sorting Data
Reversing the Row Order
Filtering Data
Selecting Specific Values
Finding Elements in the Filter List
Filtering Text Ranges
Filtering Numeric Ranges
Filtering Date and Time Ranges
Filtering Data
Conclusion
Chapter 4: Data Cleansing
Viewing a Full Record
Power BI Desktop Query Editor Context Menus
Changing Data Type
Detecting Data Types
Replacing Values
Transforming Column Contents
Text Transformation
Removing Leading and Trailing Spaces
Number Transformations
Calculating Numbers
Date Transformations
Time Transformations
Duration
Filling Down
Using the First Row As Headers
Grouping Records
Conclusion
Chapter 5: Data Mashup
The Power BI Desktop View Ribbon
Extending Data
Duplicating Columns
Splitting Columns
Splitting Column by a Delimiter
Splitting Columns by Number of Characters
Merging Columns
Custom Columns
Index Columns
Merging Data
Adding Data
Aggregating Data During a Merge Operation
Types of Join
Use the Original Column Name As the Prefix
Search Columns to Expand
Joining on Multiple Columns
Preparing Datasets for Joins
Correct and Incorrect Joins
The Columns Do Not Map
The Columns Map, but the Result Is a Massive Table with Duplicate Records
Examining Joined Data
The Expand and Aggregate Buttons
Appending Data
Adding the Contents of One Query to Another
Adding Multiple Files from a Source Folder
Changing the Data Structure
Unpivoting Tables
Pivoting Tables
Transposing Rows and Columns
Managing the Transformation Process
Modifying a Step
Renaming a Step
Deleting a Step or a Series of Steps
Adding a Step
Altering Process Step Sequencing
An Approach to Sequencing
Error Records
Removing Errors
Managing Queries
Organizing Queries
Grouping Queries
Create a New Group
Add a Query to a Group
Duplicating Queries
Referencing Queries
Add a Column As a New Query
Enable Data Load
Enable Data Refresh
Pending Changes
Copying Data from Power BI Desktop
Conclusion
Chapter 6: Creating a Data Model
Data Modeling in the Power BI Desktop Environment
The Power BI Desktop Data View
Data Model or Query?
The Power BI Desktop Data View Ribbons
The Modeling Ribbon
Managing Power BI Desktop Data
Manipulating Tables
Renaming Tables
Deleting a Table
Selecting a Column from the List of Available Column Names
Manipulating Columns
Renaming a Column
Deleting Columns
Moving Columns
Setting Column Widths
Power BI Desktop Data Types
Formatting Power BI Desktop Data
Currency Formats
Preparing Data for Dashboards
Categorize Data
Apply a Default Summarization
Define Sort by Columns
Sorting Data in Power BI Desktop Tables
Adding Hierarchies
Designing a Power BI Desktop Data Model
Data View and Relationship View
Relationship View Display Options
Maximizing a Table
Minimizing a Table
Creating Relationships
Creating Relationships Manually
Creating Relationships Automatically
Deleting Relationships
Managing Relationships
Deactivating Relationships
Advanced Relationship Options
Conclusion
Chapter 7: Extending the Data Model with Calculated Columns
Types of Calculations
New Columns
Naming Columns
Concatenating Column Contents
Tweaking Text
Simple Calculations
Math Operators
Rounding Values
Calculating Across Tables
Choosing the Correct Table for Linked Calculations
Cascading Column Calculations
Refreshing Data
Using Functions in New Columns
Safe Division
Counting Reference Elements
Statistical Functions
Applying a Specific Format to a Calculation
Simple Logic: the IF() Function
Exception Indicators
Creating Alerts
Comparison Operators
Flagging Data
Nested IF() Functions
Creating Custom Groups Using Multiple Nested IF() Statements
Multiline Formulas
Complex Logic
DAX Logical and Information Functions
Logical Operators
Formatting Logical Results
Making Good Use of the Formula Bar
Conclusion
Chapter 8: Adding Measures to the Data Model
A First Measure: Number of Cars Sold
Basic Aggregations in Measures
Using Multiple Measures
Cross-Table Measures
More Advanced Aggregations
Filter Context
Row Context
Query Context
Filter Context
Filtering Data in Measures
Simple Filters
Text Filters
Numeric Filters
More Complex Filters
Multiple Criteria in Filters
Using Multiple Filters
Calculating Percentages of Totals
A Simple Percentage
Removing Multiple Filter Elements
Visual Totals
The ALLEXCEPT() Function
Filtering on Measures
Displaying Rank
A Few Comments and Notes on Using Measures
Calculation Options
Conclusion
Chapter 9: Analyzing Data over Time
Simple Date Calculations
Date and Time Formatting
Calculating the Age of Cars Sold
Calculating the Difference Between Two Dates
Adding Time Intelligence to a Data Model
Creating and Applying a Date Table
Creating the Date Table
Adding Sort By Columns to the Date Table
Date Table Techniques
Adding the Date Table to the Data Model
Applying Time Intelligence
YearToDate, QuarterToDate, and MonthToDate Calculations
Analyze Data As a Ratio over Time
Comparing a Metric with the Result from a Range of Dates
Comparisons with Previous Time Periods
Calculating Sales for the Previous Year
Comparison with a Parallel Period in Time
Comparing Data from Previous Years
Comparing with the Same Date Period from a Different Quarter, Month, or Year
Rolling Aggregations over a Period of Time
Conclusion
Chapter 10: Text-Based Visualizations
Power BI Desktop Dashboards
Switching to Report View
Tables
Creating a Basic Table
Deleting a Table
Copying a Table
Changing the Table Size and Position
Resizing a Table
Moving a Table
Changing Column Order
Removing Columns from a Table
Types of Data
Enhancing Tables
Row Totals
Formatting Columns of Numbers
Font Sizes in Tables
Changing Column Widths
Adding and Formatting Titles
Modifying the Table Background
Table Borders
Sorting by Column
Table Granularity
Creating a Matrix
Row Matrix
Column Matrix
Sorting Data in Matrices
Cards
Formatting Cards
Multirow Cards
Formatting Multirow Cards
Switching Between Table Types
Conclusion
Chapter 11: Charts in Power BI Desktop
A First Chart
Creating a First Chart
Deleting a Chart
Basic Chart Modification
Basic Chart Types
Column Charts
Line Charts
Pie Charts
Essential Chart Adjustments
Resizing Charts
Repositioning Charts
Sorting Chart Elements
Donut Charts
Funnel Charts
Multiple Data Values in Charts
100% Stacked Column and Bar Charts
Scatter Charts
Scatter Charts to Display Flattened Hierarchies
Bubble Charts
Waterfall Charts
Dual-Axis Charts
Line and Clustered Column Chart
Line and Stacked Column Chart
Data Details
Drill Down
Enhancing Charts
Chart Legends
Legend Display
Legend Position
Title Display
Chart Title
Chart Data Labels
Chart Background
Data Colors
Axis Modification
Modifying the X Axis
Modifying the Y Axis
Chart Borders
Chart Aspect Ratio
Bubble Chart Play Axis
Conclusion
Chapter 12: Other Types of Visuals
Maps
Bing Maps
Maps in Power BI Desktop
Using Geographical Data
Geographical Data Types
Define the Data Category in the Data Model
Add Multiple Levels of Geographical Information
Adjusting the Map Display in Power BI Desktop
Positioning the Map Elements
Zooming In or Out
Multivalue Series
Highlighting Map Data
Filled Maps
Formatting Maps
Tree Maps
Formatting Tree Maps
Legend
Data Colors
Category Labels
Title
Background
Lock Aspect
Gauges
Formatting Gauges
Additional Visuals
The Power BI Visuals Gallery
Loading Custom Visuals
Enabling Custom Visuals
A Rapid Overview of a Selection of Custom Visuals
Aster Plots
Radar Charts
Bullet Charts
Word Clouds
Sunburst Charts
Streamgraphs
Tornado Charts
Histograms
Chord Charts
Sankey Diagrams
Conclusion
Chapter 13: Filtering Data
Filters
Visual-Level Filters
The Filters Well
Adding Filters
Applying Filters
The (All) Filter
Clearing Filters
Filtering Different Data Types
Numeric Data
Range Filter Mode
Numeric Filter Options
Date and Time Data
Date and Time Filters
Date Filter Options
Other Data Types
Advanced Text Filters
Applying an Advanced Text Filter
Clearing an Advanced Filter
Reverting to Basic Filtering
Text Filter Options
Specific Visualization-Level Filters
Multiple Filters
Page-Level Filters
Report-Level Filters
Removing Filters
Filter Field Reuse
Using the Filter Hierarchy
Filtering Tips
Don’t Filter Too Soon
Annotate, Annotate, Annotate
Avoid Complex Filters
Conclusion
Chapter 14: Using Slicers
Slicers
Adding a Slicer
Applying Slicers
Clearing a Slicer
Deleting a Slicer
Modifying a Slicer
Formatting Slicers
Slicer Orientation
Modifying the Outline
Adjusting Selection Controls
Adding or Removing the Select All Box
Enabling Single Select
Setting the Exact Size and X and Y coordinates of a Slicer
Slicer Header
Slicer Items
Using Charts As Slicers
Charts As Slicers
Highlighting Chart Data
Cross-Chart Highlighting
Highlighting Data in Bubble Charts
Charts As Filters
Column and Bar Charts As Filters
Specifying Visual Interactions
Choosing the Correct Approach to Interactive Data Selection
Conclusion
Chapter 15: Enhancing Dashboards
Adding Text Boxes to Annotate a Report
Adding a Text Box
Moving Text Boxes
Formatting a Text Box
Adding a Hyperlink
Removing a Hyperlink
Deleting Text Boxes
Modifying the Page Background Color
Images
Image Sources
Adding an Image
Removing an Image
Resizing Images
Formatting Images
Background Images
Adding a Background Image
Images in Charts
Some Uses for Independent Images
Adding Shapes
Formatting Shapes
Lines in Shapes
Shape Fill
Shape Rotation
Removing Shapes
Standardizing Shapes
Organizing Visuals on the Page
Layering Visuals
Aligning Visuals
Distributing Visuals
Exporting Data from a Visualisation
Conclusion
Chapter 16: PowerBI.com
Publishing Reports to PowerBI.com
Creating a Power BI Account
Using Power BI Desktop Files in PowerBI.com
Logging on to PowerBI.com
Adding a Power BI Desktop File
Interacting with a Report on PowerBI.com
Printing PowerBI.com Reports
Creating PowerBI.com Dashboards
Creating a New Dashboard
Adding Tiles to PowerBI.com Dashboards
Editing Dashboard Tiles
Deleting Tiles
Modifying Tile Details
Exporting the Data Behind the Tile
Pinning the Tile to Another Dashboard
Modifying Dashboards
Resizing Tiles
Adding Other Widgets (Images, Text Boxes, or Other Web Content)
Displaying Dashboards in Full Screen Mode
Print Dashboards
Sharing Dashboards
Creating New Reports in PowerBI.com
The Power BI App on Tablet Devices
PowerBI.com Gateways
Downloading a Gateway
Configuring a Gateway
Ad Hoc Data Refresh
Scheduled Data Refresh
Conclusion
Appendix A: Sample Data
Sample Data
Downloading the Sample Data
Images
Sample Databases
The CarSalesData database
The Analysis Services Database
Index
THE E XPER T ’S VOICE® IN B U S I N E S S I N T E L L I G E N C E Pro Power BI Desktop Free interactive data analysis with Microsoft Power BI — Adam Aspin www.it-ebooks.info
www.it-ebooks.info Pro Power BI Desktop Adam Aspin
www.it-ebooks.info Pro Power BI DesktopAdam Aspin Stoke-on-Trent Staffordshire, United Kingdom ISBN-13 (pbk): 978-1-4842-1804-4 ISBN-13 (electronic): 978-1-4842-1805-1DOI 10.1007/978-1-4842-1805-1Library of Congress Control Number: 2016938680Copyright © 2016 by Adam AspinThis 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. Exempted from this legal reservation are brief excerpts in connection with reviews or scholarly analysis or material supplied specifically for the purpose of being entered and executed on a computer system, for exclusive use by the purchaser of the work. Duplication of this publication or parts thereof is permitted only under the provisions of the Copyright Law of the Publisher's location, in its current version, and permission for use must always be obtained from Springer. Permissions for use may be obtained through RightsLink at the Copyright Clearance Center. Violations are liable to prosecution under the respective Copyright Law.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: Welmoed SpahrLead Editor: Jonathan GennickDevelopment Editor: Douglas PundickTechnical Reviewer: Ian RiceEditorial Board: Steve Anglin, Pramila Balen, Louise Corrigan, Jim DeWolf, Jonathan Gennick, Robert Hutchinson, Celestin Suresh John, Michelle Lowman, James Markham, Susan McDermott, Matthew Moodie, Jeffrey Pepper, Douglas Pundick, Ben Renow-Clarke, Gwenan SpearingCoordinating Editor: Jill BalzanoCopy Editor: Kim Burton-WeismanCompositor: SPi GlobalIndexer: SPi GlobalArtist: SPi GlobalDistributed 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, e-mail orders-ny@springer-sbm.com , or visit www.springer.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 rights@apress.com , or visit www.apress.com . Apress and friends of ED books 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 Special Bulk Sales–eBook Licensing web page at www.apress.com/bulk-sales .Any source code or other supplementary material referenced by the author in this text is available to readers at www.apress.com . For detailed information about how to locate your book’s source code, go to www.apress.com/source-code/ .Printed on acid-free paper
www.it-ebooks.info To the memories of my mother and grandmother
www.it-ebooks.info
www.it-ebooks.info Contents at a GlanceAbout the Author ..................................................................................................xxiiiAbout the Technical Reviewer ...............................................................................xxvAcknowledgments ...............................................................................................xxviiIntroduction ..........................................................................................................xxix ■Chapter 1: Introduction to Power BI Desktop ........................................................1 ■Chapter 2: Discovering and Loading Data with Power BI Desktop ......................35 ■Chapter 3: Transforming Datasets .......................................................................79 ■Chapter 4: Data Cleansing .................................................................................109 ■Chapter 5: Data Mashup ....................................................................................131 ■Chapter 6: Creating a Data Model ......................................................................175 ■Chapter 7: Extending the Data Model with Calculated Columns .......................205 ■Chapter 8: Adding Measures to the Data Model ................................................239 ■Chapter 9: Analyzing Data over Time ................................................................267 ■Chapter 10: Text-Based Visualizations ..............................................................301 ■Chapter 11: Charts in Power BI Desktop ...........................................................333 ■Chapter 12: Other Types of Visuals ....................................................................371 ■Chapter 13: Filtering Data .................................................................................401v
www.it-ebooks.info ■ CONTENTS AT A GLANCEvi ■Chapter 14: Using Slicers ..................................................................................429 ■Chapter 15: Enhancing Dashboards ..................................................................451 ■Chapter 16: PowerBI.com ..................................................................................471 ■Appendix A: Sample Data ..................................................................................501Index .....................................................................................................................503
www.it-ebooks.info ContentsAbout the Author ..................................................................................................xxiiiAbout the Technical Reviewer ...............................................................................xxvAcknowledgments ...............................................................................................xxviiIntroduction ..........................................................................................................xxix ■Chapter 1: Introduction to Power BI Desktop ........................................................1The Microsoft Self-Service Business Intelligence Solution ..............................................2Import Data from Diverse Sources .........................................................................................................2Model Your Data ......................................................................................................................................3Creating Dashboards and Reports ..........................................................................................................3Power BI Desktop Files ...........................................................................................................................3Installing Power BI Desktop .............................................................................................4Removing Power BI Desktop ..................................................................................................................9Running Power BI Desktop ...................................................................................................................10A First Power BI Desktop Dashboard..............................................................................10Loading the Source Data ......................................................................................................................11The Data Load Process ...................................................................................................14The Navigator Window ..........................................................................................................................15The Navigator Data Preview .................................................................................................................15Modifying Data .....................................................................................................................................16The Power BI Desktop Window ......................................................................................16Your First Visualizations .................................................................................................17Display Available Fields ........................................................................................................................18Add a Matrix of Sales per Country by Year ...........................................................................................19vii
分享到:
收藏