TẠI SAO POWER BI LÀ GIẢI PHÁP PHÂN TÍCH DỮ LIỆU TỐI ƯU NHẤT CHO DOANH NGHIỆP? Đối với các doanh nghiệp, việc phân tích, phân luồng dữ liệu trong hoạt động kinh doanh, vận hành là điều vô cùng quan trọng, thậm chí quyết định tính sống còn. Để thực hiện được nhiệm vụ quan trọng này, rất nhiều doanh nghiệp trên thế giới và ở cả Việt Nam đang sử dụng Power Business Intelligence – Power BI như một nền tảng tối ưu trong phân tích kinh doanh, phân tích dữ liệu thông thường cũng như dữ liệu đặc biệt, phục vụ cho các yêu cầu cụ thể, tùy tình hình thực tại (ad hoc data). Với Power BI cho doanh nghiệp, các tổ chức có thể nhận biết được thông tin cốt lõi từ dữ liệu, tạo nên “văn hóa dữ liệu”, nơi các quyết định được đưa ra dựa trên thực tế thay vì sự cảm tính chủ quan. Nếu là một người thường xuyên phải lập và phân tích các báo cáo quản trị của doanh nghiệp, #PowerBI chính là phần mềm dành cho bạn. Nó cung cấp giải pháp thể hiện các dạng báo cáo theo cách thức đơn giản, trực quan hơn, chỉ ra được mối liên hệ tương quan dữ liệu, đồng thời cho phép chia sẻ dễ dàng, trong khi vẫn duy trì tính bảo mật. Là giải pháp do Microsoft phát triển, Power BI cho phép người dùng xây dựng báo cáo ngay trên Laptop qua trình duyệt và quan sát báo cáo trên các thiết bị di động như điện thoại (Smartphone) hay máy tính bảng (Tablet). Trong bài viết dưới đây, hãy cùng phân tích 10 lý do khiến Power BI trở thành một công cụ mạnh mẽ, hữu ích và được ứng dụng rộng khắp như hiện nay. 1) Tương tác trực quan, dễ dàng tích hợp với các phần mềm tin học khác - Power BI mang lại giá trị lớn nhờ khả năng trực quan hoàn hảo và Dashboard điều khiển tương tác đem lại cái nhìn toàn cảnh về hiệu suất của doanh nghiệp. Nhằm hỗ trợ các chuyên gia phân tích, Power BI cung cấp Dashboard miễn phí để điều hướng “kéo và thả” dữ liệu theo mong muốn, cùng kho thư viện trực quan khổng lồ cho phép tạo những báo cáo lớn một cách đơn giản và trích xuất cực nhanh. Nếu muốn sở hữu những bản báo cáo đẹp mắt, sinh động thì bạn hoàn toàn có thể tin tưởng Power BI. Nằm trong dòng sản phẩm doanh nghiệp của hãng phần mềm Microsoft nên Power BI tích hợp chặt chẽ với các sản phẩm lưu trữ thông tin phổ biến khác của Microsoft như Microsoft Excel, Azure và SQL Server cùng các giải pháp quản lý của Microsoft gồm Microsoft Flow (quản lý quy trình) và Microsoft Dynamics (giải pháp ERP). 2) Truy cập không giới hạn vào dữ liệu cục bộ và dữ liệu đám mây - Power BI có thể thực hiện data mashup, kết hợp dữ liệu từ nhiều nguồn khác nhau và #phân_tích_dữ_liệu bán cấu trúc (semistructured data). Nó giúp người dùng tập trung lưu trữ tất cả thông tin cục bộ và dữ liệu đám mây, nhờ đó, người dùng có thể truy cập liền mạch mọi lúc, mọi nơi, không bị giới hạn không gian và thời gian làm việc. Bạn cũng có thể sử dụng các liên kết đã được xây dựng trước để cải thiện khâu nhập liệu từ các giải pháp như Marketo, Salesforce, Google Analytics…Power BI có thể kết nối được với mọi loại hình kho lưu trữ dữ liệu tại chỗ khác nhau như SQL Server, Oracle hoặc Hadoop. Đối với kho lưu trữ điện toán đám mây như Google BigQuery hay Azure, Power BI có sẵn các trình kết nối được nhà phát triển xây dựng trước nhằm tạo nên trải nghiệm đa nhiệm nhất. 3) Power BI cho phép truy cập báo cáo và dashboards ngay lập tức - Power BI cho phép bạn chia sẻ thông tin dữ liệu và báo cáo với người khác, không bị phụ thuộc vào điều kiện địa lý, thời gian hay thiết bị. Hệ thống này cũng có tính linh hoạt vì nó hoạt động với các hệ điều hành hàng đầu – Windows, iOS và Android. Khi những người có quyền truy cập tiến hành chỉnh sửa, cập nhật dữ liệu, hệ thống sẽ thông báo ngay đến chủ sở hữu để nhanh chóng phân tích kịp thời. 4) Tích hợp không giới hạn với ứng dụng của bên thứ ba - Các nhà phát triển Microsoft Power BI đảm bảo rằng hệ thống có thể được tích hợp trong bất kỳ hệ sinh thái phần mềm nào. Nhờ đó, #Power_BI_cho_doanh_nghiệp có thể kết nối với rất nhiều phần mềm và công cụ phổ biến của bên thứ ba. Hiện tại, Microsoft vẫn liên tục nghiên cứu mở rộng khả năng kết nối của hệ thống này, cho phép người dùng nhập thêm nhiều cơ sở dữ liệu và nguồn dữ liệu. 5) Chia sẻ an toàn các báo cáo và phân tích dữ liệu - Người dùng có thể xuất các báo cáo trực quan trực tiếp lên mạng Internet và gửi qua email cho những người liên quan. Để đảm bảo an ninh, chúng ta có thể thiết lập giới hạn quyền truy cập vào báo cáo hoặc thiết lập các vùng dữ liệu đặc thù, chỉ cho phép những người nhất định truy cập. Ví dụ: các nhân viên bán lẻ của một siêu thị tại Hà Nội chỉ có thể xem dữ liệu bán hàng tại chi nhánh của mình, trong khi Giám đốc kinh doanh có thể xem dữ liệu bán hàng trên toàn quốc. 6) Khả năng mô hình hóa dữ liệu - Mô hình hóa dữ liệu là một trong những chức năng được sử dụng để kết nối nhiều nguồn dữ liệu trong phần mềm Power BI, bằng các mối liên kết nhằm chỉ ra các nguồn dữ liệu có mối liên hệ với nhau ra sao. Nhờ đó, những bản báo cáo giữa các phòng ban sẽ không còn rời rạc mà mang tính thống nhất, tổng thể.Với chức năng mô hình hóa dữ liệu, bạn có thể tạo các tính toán tùy chỉnh trên những Dashboard hiện có. Kết quả tính toán sẽ được trình bày trực tiếp trong các báo cáo quản trị trực quan.Tính chất này của Power BI phù hợp với tất cả các lĩnh vực kinh doanh, trong hoạt động vận hành cũng như quản lý hiệu suất nhân viên, kiểm soát dòng tiền… có thể áp dụng để xây dựng mọi mẫu báo cáo quản trị trong tất cả doanh nghiệp, phòng ban. 7) Thêm nguồn dữ liệu - Power BI có thể kết nối với hơn 60 giải pháp phổ biến mà ngày nay các công ty thường sử dụng, ví dụ như Spark, Hadoop, SAP. Người dùng không phải mô hình hóa dữ liệu trong hệ thống nguồn, mà dữ liệu có thể được tích hợp trực tiếp với #phần_mềm_Power_BI. 8) Không đòi hỏi phải có kiến thức lập trìnhĐối với những ai thường xuyên phải thực hiện nhiệm vụ phân tích theo yêu cầu cụ thể, Power BI chính là nền tảng giúp bạn làm công việc hàng ngày một cách đơn giản, dễ dàng, thực hiện phân tích, tính toán nhanh, khả năng hiển thị lớn giúp tiết kiệm thời gian. Khác với nhiều phần mềm quản trị, bạn không cần thiết phải có kiến thức lập trình để làm việc với công cụ này. 9) Tài liệu Power BI hướng dẫn sử dụng sẵn có - Hầu hết người dùng Việt Nam đã quá quen với giao diện của Microsoft, do đó sẽ nhanh chóng làm quen với Power BI mà không mất quá nhiều thời gian. Để hỗ trợ người dùng tìm ra giải pháp làm việc tốt nhất, ông lớn công nghệ cũng cung cấp sẵn rất nhiều bản chỉ dẫn, video, bài viết… #tài_liệu_power_bi nhằm tối đa hóa tiềm năng công cụ.10) Khả năng tìm kiếm thông minh - Chức năng tìm kiếm thông minh QA của Power BI là một trong những tiện ích nổi trội, thường xuyên được nhắc đến nhất. Với chức năng này, người dùng có thể đưa ra những câu hỏi tự nhiên như khi đang “search” trên các nền tảng tìm kiếm Google, Yahoo, Bing, Cốc Cốc… và xem kết quả, biểu đồ liên quan đến truy vấn. Tiện ích này cho phép quét các thông tin ẩn chỉ trong vài giây, thậm chí có thể chỉ ra được mối tương quan, các trường hợp ngoại lệ hoặc cho thấy xu hướng. KẾT LUẬN: Trong thời đại của Big Data (Dữ liệu lớn), thách thức lớn nhất của doanh nghiệp quản trị dữ liệu. Việc sử dụng Power BI sẽ thúc đẩy các tổ chức chinh phục thử thách khó khăn đó. Khi tài nguyên của mỗi quốc gia không còn là khoáng sản nữa, mà là dữ liệu, Power BI sẽ là một trong những “chìa khóa” của tương lai, kỷ nguyên của phân tích và con số. #quản_lý_dữ_liệu
Trang 24 How to Succeed at Self-Service Analytics
Trang 62 Data Bars Advanced Controls Dialog Box
3 The Visualization Analytics Tab
1 Types of Analytics Lines
2 Controls for Editing Analytics Lines
Trang 83 Repeating and Changing the Data Import
1 Refreshing Data in Power BI Desktop
2 Modifying Queries
3 The Advanced Editor and the Power Query Formula Language
4 Data Source Permissions
4 Relationships and Intermediate Tables
1 Creating an Intermediate Table from a Data Source
3 Transformations on the Query Editor Transform Tab
4 Transformations on the Query Editor Add Column Tab
2 Model Building
3 Chapter 11 Creating a Tabular Model in Power BI
1 Relationships
Trang 92 Using a DAX Variable
3 Using Return in a Measure
Trang 111 Versions
Trang 122 Power BI Desktop Optimizations
2 Installing Power BI Report Server
1 The Power BI Report Server Installation Executable
Trang 29Copyright Act of 1976, no part of this publication may bereproduced or distributed in any form or by any means, orstored in a database or retrieval system, without the priorwritten permission of the publisher
ISBN: 978-1-26-045862-6
MHID: 1-26-045862-8
The material in this eBook also appears in the print version ofthis title: ISBN: 978-1-26-045861-9, MHID: 1-26-045861-X
eBook conversion by codeMantra
Version 1.0
All trademarks are trademarks of their respective owners.Rather than put a trademark symbol after every occurrence of
a trademarked name, we use names in an editorial fashiononly, and to the benefit of the trademark owner, with no
intention of infringement of the trademark Where such
designations appear in this book, they have been printed withinitial caps
McGraw-Hill Education eBooks are available at special
quantity discounts to use as premiums and sales promotions orfor use in corporate training programs To contact a
representative, please visit the Contact Us page at
www.mhprofessional.com
Information has been obtained by McGraw-Hill Education
Trang 30McGraw-Hill Education, or others, McGraw-Hill Educationdoes not guarantee the accuracy, adequacy, or completeness ofany information and is not responsible for any errors or
omissions or the results obtained from the use of such
information
TERMS OF USE
This is a copyrighted work and McGraw-Hill Education andits licensors reserve all rights in and to the work Use of thiswork is subject to these terms Except as permitted under theCopyright Act of 1976 and the right to store and retrieve onecopy of the work, you may not decompile, disassemble,
reverse engineer, reproduce, modify, create derivative worksbased upon, transmit, distribute, disseminate, sell, publish orsublicense the work or any part of it without McGraw-HillEducation’s prior consent You may use the work for your ownnoncommercial and personal use; any other use of the work isstrictly prohibited Your right to use the work may be
ACCESSED THROUGH THE WORK VIA HYPERLINK
OR OTHERWISE, AND EXPRESSLY DISCLAIM ANY
Trang 31MERCHANTABILITY OR FITNESS FOR A PARTICULARPURPOSE McGraw-Hill Education and its licensors do notwarrant or guarantee that the functions contained in the workwill meet your requirements or that its operation will be
uninterrupted or error free Neither McGraw-Hill Educationnor its licensors shall be liable to you or anyone else for anyinaccuracy, error or omission, regardless of cause, in the work
limitation of liability shall apply to any claim or cause
whatsoever whether such claim or cause arises in contract, tort
or otherwise
Trang 32A combat pilot in WWII, Air Force Reservist, and recreationalpilot, he “slipped the surly bonds of earth” one last time on
July 9, 2019
Trang 33Brian Larson has focused his writing and consulting career
around Microsoft reporting and analytics tools That
association began for Brian as a consulting member of theoriginal Microsoft SQL Server Reporting Services
development team In that role, he contributed to the originalcode base of Reporting Services Brian is currently a partnerand chief creative officer for Superior Consulting Services inMinneapolis, Minnesota
Brian has presented at national conferences and events,including the PASS Community Summit and the MicrosoftBusiness Intelligence Conference, and has provided trainingand mentoring across the country In addition to this book,
Brian is the author of Microsoft SQL Server 2016 Reporting
Services, Fifth Edition and Delivering Business Intelligence with Microsoft SQL Server 2016, Fourth Edition, and he is co-
author of Visualizing Data with Microsoft Power View, all
from McGraw-Hill Education
Brian is a Phi Beta Kappa graduate of Luther College inDecorah, Iowa, with degrees in physics and computer science
He has 34 years of experience in the computer industry and 30years of experience as a consultant creating custom databasesolutions Brian is a Microsoft Certified Solutions Expert(MCSE) in Data Management and Analytics
Brian and his wife, Pam, have been married for 34 years.Pam will tell you that their first date took place at the campuscomputer center If that doesn’t qualify someone to write atechnology book, then Brian doesn’t know what does Brian
Trang 34About the Technical Editor
Dan Corley is a business intelligence architect with a strongpassion for and expertise in the Microsoft data platform andbusiness analytics technologies He has worked in businessintelligence for 20 years, architecting, managing, and
developing business intelligence solutions in a variety ofindustries Dan lives with his wife and eight children inLakeville, Minnesota
Trang 35Chapter 10 Power BI Transformation Reference
Chapter 11 Creating a Tabular Model in Power BI
Trang 37Power BI as a Data Warehouse/Data MartWhere to Find What You Need
Obtaining Power BI Desktop SoftwareSample Code and Supporting MaterialsInformation on Power BI New Features andEnhancements
How to Succeed at Self-Service Analytics
Chapter 2 Successful Self-Service Analytics
What Is Business Intelligence?
Defining KPIs
Trang 38DesireRealistic ExpectationsOngoing Care and FeedingWell-Defined KPIs
Actionable KPIsReliable Sources of DataImplementation: Best PracticesTake an Iterative Implementation ApproachUtilize a Data Warehouse/Data Mart
Cleanse and Validate During Data GatheringCreate User-Friendly Data Models
Publish LatencyProvide Training and SupportUse the Right Tool for the JobEstablish Standards and LimitsSuccessfully Using Power BI
Part II Interacting with Power BI
Chapter 3 Power BI Architecture
The Power BI ArchitecturePower BI DesktopThe Power BI ServiceThe Power BI Report ServerThe Power BI Mobile AppPower BI Desktop OptimizationsPower BI Updates
Microsoft On-premises Data Gateway
Trang 39Chapter 4 Using Power BI Visualizations
Power BI DesktopObtaining What You NeedOpening the Report/Preparing theEnvironment
Interacting with a Power BI ReportWorking with a Single Report ItemInteracting with Multiple Report ItemsChanging the Data with Slicers and FiltersSlicers
FiltersNavigating Power BI ReportsDrill Down and DrillthroughButtons
BookmarksAdditional Data Interactions
A Cloudy Forecast
Chapter 5 Using the Power BI Service (PowerBI.com)
PowerBI.comThe Organization of PowerBI.comConnecting to PowerBI.com
The Navigation PaneWorkspaces
ReportsDashboardsWorkbooksDatasets
Trang 40Additional ButtonsHow It All Gets Made
Part III Creating Visualizations
Chapter 6 Basic Data Visualizations
Learn By DoingStarting PointBasic VisualizationsMaximum Miniatures ManufacturingOur First Report Page
Text-based VisualizationsGraphical VisualizationsInteractivity
SlicersFiltersDrillthroughGeographic VisualizationsBing Map VisualizationsShape Map VisualizationsGIS Map VisualizationsOther Visual Elements
Text Boxes, Images, and ShapesFancy Formatting
Chapter 7 Visualization Formatting
The Visualization Format Tab
Trang 41Card and Multi-row CardPie Chart, Donut Chart, Treemap, and MapsFunnel
GaugeKPISlicerButton, Shape, and ImageAdvanced Formatting Dialog BoxesConditional Formatting Advanced ControlsDialog Box
Data Bars Advanced Controls Dialog BoxThe Visualization Analytics Tab
Types of Analytics LinesControls for Editing Analytics LinesThemes
New Ways to Interact and Visualize
Chapter 8 Advanced Interactivity and Custom
Visualizations
Controlling InteractivityControlling InteractionsSynchronizing SlicersCreating InteractivityCustom Tooltips
Trang 42Customizing VisualizationsCustom Visualizations from the MarketplaceCustom Visualizations from R and PythonCreating a Custom Shape Map
Moving on to Modeling
Part IV Building Data Models
Chapter 9 Loading Data with Power BI
Gathering DataGet DataPower BI Connection TypesTransforming Data During the Data ImportThe Power BI Query Editor
A New Sample: World PopulationRepeating and Changing the Data ImportRefreshing Data in Power BI DesktopModifying Queries
The Advanced Editor and the Power QueryFormula Language
Data Source PermissionsRelationships and Intermediate TablesCreating an Intermediate Table from a DataSource
Manually Creating Intermediate TablesParameters
Putting Parameters to Use
Trang 43Chapter 10 Power BI Transformation Reference
Transformation ReferenceInformational-Only TransformationsTransformations on the Query Editor HomeTab
Transformations on the Query EditorTransform Tab
Transformations on the Query Editor AddColumn Tab
Model Building
Chapter 11 Creating a Tabular Model in Power BI
RelationshipsCreating RelationshipsUser-Friendly ModelsHiding Columns from the End UserColumn Names and DescriptionsFormatting and Categories
One Final RelationshipData Categories
Hierarchies, Groups, and BinsMeasuring Up
Chapter 12 Measures and Calculated Columns
Calculated ColumnsCreating a Calculated ColumnThe Context for Calculated ColumnsMeasures
Trang 44Row-by-Row CalculationsThe FILTER() FunctionDAX Variables
Declaring DAX Variables and Assigning aValue
Using a DAX VariableUsing Return in a MeasureEverything DAX
Chapter 13 DAX Language Reference
DAX OperatorsComparison OperatorsArithmetic OperatorsText Operator
Logical OperatorsDAX Functions
Modifying ContextTable-Valued FunctionsAggregate FunctionsDAX Functions for Time AnalyticsParent/Child Relationships
Additional DAX FunctionsAdditional Modeling
Chapter 14 Additional Power BI Desktop Features
Trang 45Linguistic SchemasDisplay FolderWhat-If ParametersRoles
Performance AnalyzerCapturing Performance InformationViewing the DAX Query
Import and ExportExcel Workbook ContentPower BI TemplatesSpreading the Word
Part V Sharing Content
Chapter 15 Sharing Content on the Power BI Service
(PowerBI.com)
The Power BI Service and Data RefreshThe On-premises Data GatewayThe On-premises Data GatewayArchitecture
Installing the On-premises Data GatewayManaging the On-premises Data GatewayManaging the On-premises Data Gateway(personal mode)
Setting a Dataset for Scheduled RefreshThe Power BI Service and Sharing
Using ShareUsing Content Packs
Trang 46Chapter 16 Saving to the Power BI Report Server
Power BI Service and Power BI Report ServerComparison
VersionsPower BI Desktop OptimizationsInstalling Power BI Report ServerThe Power BI Report Server InstallationExecutable
The Report Server Configuration ManagerThe Report Catalog
FoldersThe Web PortalSaving a Report to the Power BI ReportServer
SecurityFolder and Report SecurityRow-Level Security
Branding the Power BI Report ServerModifying the Site Name
Creating a Brand PackagePowered Up and Ready to Go
Index
Trang 47Acknowledgments
project of this size is not completed alone I need to thankmany people for their assistance, professionalism, dedication,and support
First, as always, a thank-you to Wendy Rinaldi, my originalcontact person at McGraw-Hill Education, who allowed me tolean on her as part editor, part coach, part literary agent, andpart psychoanalyst Her professionalism, humor,
understanding, and faith have helped see me through manyeditions of many titles
A huge thank-you to the rest of the McGraw-Hill
Professional staff, who saw the project through to the end, keptprodding me as deadlines passed, and made sure there reallywas a book when all was said and done
I am also indebted to Lisa Schmid and Paul Purington, myco-owners at Superior Consulting Services (SCS) They
agreed to allow me to take on this project on company timeand have agreed to create and support the ancillary materials
on the SCS website (www.teamscs.com) that will keep this arelevant guide to a highly dynamic product
An incredibly large thank-you to my wife, Pam, who, asalways, serves as my best editor, alpha tester, and guardian ofquality Her incredible attention to detail has made this a muchbetter learning tool
Last, but certainly not least, to you, the reader, who plunked
Trang 48Microsoft Power BI
All the best,
Brian Larson
blarson@teamscs.com
Trang 49Understanding Business Intelligence and Power BI
Trang 50BI can be used All are valid ways to utilize Power BI, and allproduce results valuable to our organizations The way youinteract with Power BI will depend on your role in your
organization, what insights you are looking to gain throughPower BI, and what other individuals are assisting and
Trang 51The final section of this chapter tells you where to go foradditional information that supports the content of this book.The code for all the examples and exercises in this book isavailable online Because Power BI is constantly growing andevolving, updates to the content of this book are also available
on my company’s website
THE TOOL CHEST CALLED
POWER BI
Microsoft Power BI is not a single tool It is important tounderstand this fact as you plan your approach to this book.Instead, Power BI is a set of tools These tools began theirlives as separate entities existing in a couple different
environments After several iterations and machinations,
Microsoft brought these tools together into a single
environment—the tool chest we call Power BI
In most cases, when parts and pieces are assembled to tryand make a whole new entity, we end up with a sort of
Frankenstein’s monster (a monster tapdancing to “Puttin’ on
the Ritz” for those of you who remember the movie Young
Frankenstein) Power BI is one of those rare cases where the
parts fit together extremely well The process of creating abusiness intelligence (BI) infrastructure flows well from onetool to the next, and back again, as needed
At the same time, you do not need to touch all the tools inthe tool chest to get value from Power BI It is possible to pick
up the BI process midstream, selecting some tools while
leaving others in their compartments This is especially true if
Trang 52The BI Process
Before we look specifically at the tools in the Power BI toolchest, we need to take a quick look at the basic BI process.How do we take data that is created and managed by our line-of-business systems—our enterprise resource planning (ERP)systems, our accounting systems, our human resource systems,and so on—and put it into an environment where we can use it
to draw insights into our entire organization? There are fivemain steps to that process, as shown in Figure 1-1
Figure 1-1 The business intelligence (BI) process
Gather
For ease and speed of analysis, data is gathered from varioussources and placed in a single location As data is gathered, it
is also transformed This transformation results in data that iscleansed of errors and inconsistencies The transformation alsoaligns the data with the rest of the data store, allowing it tofunction as a consistent whole
Store