Data Integration with Power Query

Slides:



Advertisements
Similar presentations
Technical BI Project Lifecycle
Advertisements

Implementing Business Analytics with MDX Chris Webb London September 29th.
Introduction to Building a BI Solution 권오주 OLAPForum
Best Practices for Data Warehousing. 2 Agenda – Best Practices for DW-BI Best Practices in Data Modeling Best Practices in ETL Best Practices in Reporting.
Our Powers Combined: Query, Pivot, Map, and View A quick tour through the 4 pillars of Power BI February 11, 2014.
BI Funcasts The Mac-Guyver Techniques BI - The Mac-Guyver Techniques : Office Sharepoint Excel Services Gunter Staes –
The Last Mile: Delivering the Facts – Client Side Analysis.
Data Management Console Synonym Editor
Advanced Tips And Tricks For Power Query
SSIS – Deep Dive Praveen Srivatsa Director, Asthrasoft Consulting Microsoft Regional Director | MVP.
Intro to Power BI Azhagappan Arunachalam.  Senior Database Architect   PowerBICentral.com  (blog on getting started.
Business Systems Analyst at MD Anderson Cancer Center Microsoft Office Specialist certified in SharePoint 2013 President of Houston SharePoint User Group.
Information Design Tool Overview and Best Practices Natasha Kishinevsky – Business Intelligence Manager.
Power View Overview April 25, POWER VIEW Presentation ready visualizations for the masses.
MAKING BUSINESS INTELLIGENT Brought to you by your local PASS Community! Self Service ETL with Power Query Welcome.
Take Your Data Analysis and Reporting to the Next Level by Combining SAS Office Analytics, SAS Visual Analytics, and SAS Studio David Bailey Tim Beese.
Bartek Doruch, Managing Partner, Kamil Karbowiak, Managing Partner, Using Power BI in a Corporate.
What's New in the New Dynamics AX Conrad Volkmann, Microsoft Development Center Copenhagen.
John Tran Business Program Manager, The Suddath Companies
Victoria Power BI User Group Meeting
SELECT, IMPLEMENT & USE TODAY’S ADVANCED BUSINESS SYSTEMS
SharePoint 2007 Business Intelligence
Getting started with Power BI and Dynamics CRM
Convergence /6/2018 © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Advantages of sas for reporting
Getting started with Power BI
Make Power BI Your Own with the Power BI APIs
5/22/2018 1:39 AM BRK2156 Power BI Report Server: Self-service BI and enterprise reporting on-premises Christopher Finlan Senior Program Manager © Microsoft.
Power BI Performance Tips & Tricks
Chelsea Dohemann Class will start at approximately 8:10am PowerPivot Chelsea Dohemann
Introduction to SQL Server Analysis Services
Microsoft Power BI with Azure Services
<Enter course name here>
Leveraging BI in SharePoint with PowerPivot and Power View
Solving the Hard Problems
Power BI – Exploring New Frontiers
2007 Office System Integration
Applying Data Warehouse Techniques
Make Power BI Your Own with the Power BI APIs
Populating a Data Warehouse
Power BI – Exploring New Frontiers
Data Analysis with Power BI
Linda Nguyen, John Swinehart, Yiwen (Cathy) Sun, Nargiza Nosirova
Populating a Data Warehouse
ITI 257 Data Analysis with Power BI
Make Power BI Your Own with the Power BI APIs
Applying Data Warehouse Techniques
Populating a Data Warehouse
Power Query Discovery and connectivity to a wide range of data sources
Applying Data Warehouse Techniques
Microsoft Dynamics.
Building your First Cube with SSAS
Power BI with Analysis Services
Become a Power BI Superstar under 1 hour!
Welcome to SQLSaturday #767! Hosted by Lincoln SQL Server User Group
Donald Donais Minnesota SharePoint Users Group – April 2019
Applying Data Warehouse Techniques
Let’s Build a Tabular Model in Azure
Power BI at Enterprise-Scale
Power BI – Exploring New Frontiers
Playing with (M)agic: Introduction to Writing M Code in Power BI
SSIS Data Integration Data Warehouse Acceleration
Introduction to power query
Applying Data Warehouse Techniques
Microsoft Excel PowerPivot ….light & Easy
Become a Power BI Superstar under 1 hour!
Power BI for the Consumer
Power BI Desktop.
Implementing ETL solution for Incremental Data Load in Microsoft SQL Server Ganesh Lohani SR. Data Analyst Lockheed Martin
Data Modeling and Prototyping
Presentation transcript:

Data Integration with Power Query

Let’s talk about me Nick Chobotar Business Intelligence (BI) Analyst, I am out of Philadelphia office. I specialize in development and implementation of business intelligence solutions using Microsoft BI stack in combination with dimensional data modelling techniques. My experience includes design and development of data warehouses and data marts, ETL and standardization of data from various conventional and unconventional data sources, design and development of tabular SSAS semantic solutions as well as dashboards and end user reporting. Contact: nick.chobotar@nihilentinc.com

Let’s talk about Nihilent Technologies, Inc. BI & Advanced Analytics Cloud Transformation Services Enterprise Transformation Consulting Customer Relationship Management Application Development Portals & Collaboration 1,500+ Employees 14,000+ Migrated Cloud Users & devices Healthcare Manufacturing Financial Services Retail

Proven Delivery Healthcare Manufacturing Financial Services Retail

Agenda Power Query introduction Power Query M Language Basics Type system Joins Parameters Model Overview and Design Data extraction from various sources: SQL Server (Product Subcategory) Odata (Product) OneDrive (Product Category) List.Generate (Sales fact – mockup) DimDate (Calendar) dimension Data transformation Query grouping

Power Query Evolution Early 2013 Data Explorer excel add-in Late 2013 Power Query excel add-in 2016 Excel (native) 2015 part of Power BI Desktop 2017 Power Apps 2017 SQL Server 2018 Power BI Web service (Datapools in preview)

Power Query SDK The Power Query SDK provides an M language service for Visual Studio, and a framework for building Data Connectors for Microsoft Power BI. This extension adds support for the .mproj project type as well as syntax highlighting and intellisense for .pq files

Power Query M Language Basics

Standard Library Functions M function 25 Categories 1) Accessing data functions 2) Action functions 3) Binary functions 4) Combiner functions 5) Comparer functions 6) Date functions 7) DateTime functions 8) DateTimeZone functions 9) Duration functions 10) Error handling 11) Expression functions 12) Function values 13) List functions 14) Lines functions 15) Logical functions 16) Number functions 17) Record functions 18) Replacer functions 19) Splitter functions 20) Table functions 21) Text functions 22) Time functions 23) Type functions 24) Uri functions 25) Value functions =#shared is my best friend powerpivotpro.com NOTE: All functions are prefixed with its category e.g. Text.Upper(), Number.Round(), List.Max(), Date.Year()

Power Query Types Built in Types: Complex Types: binary, date, datetime, datetimezone, duration, logical, null, number, text, time Complex Types: Tables Lists Records Functions

Types Demo

Joins Merge Queries with UI Create a Join with M

Joins Demo

Parameters Parameter is a query that returns a single value that could be used by multiple queries. Three ways of working with parameters: Home -> Manage Parameters button -> Click New New Query -> Blank Query (right click Covert To Parameter) New Query -> Blank Query ( Parameter as a query name) Common uses: Elimination of hardcoding Data filtering Changing data sources

Parameters Demo

Model Overview Data Sources Transformations Finished Model OneDrive Generated Fact SQL Server OData Generated Calendar Data Sources Transformations Finished Model

Model Diagram

Fact Table with List.Generate Generates a list of values given four functions that generate the initial value initial, test against a condition condition, and if successful select the result and generate the next value next. List.Generate( A starting condition, When to stop, How to make the next record, What to put into the list ) Excellent technique for mocking data Fact table fields: Date ProductID, Quantity, UnitCost, UnitSalesPrice

Date (Calendar) Dimension Year QuarterNumber QuarterIndex Quarter MonthNumber MonthIndex Month MonthName MonthNameShort WeekNumber WeekIndex Week DayOfYear DayOfQuarter DayOfMonth DayOfWeek DayName DayNameShort Weekday WeekdayFlag WorkdayFlag CurrentYear CurrentQuarter CurrentMonth CurrentWeek Today CurrentYTD CurrentQTD CurrentMTD CurrentWTD QuarterVisual

SQL Server DimProductSubcategory Dimension Query Folding - pushing certain data transformations back to the data source. List of the most common transformations Query folding Filtering (on rows or columns) Joins Aggregates and GROUP BY Pivot and unpivot Numeric calculations Simple transformations, such as UPPER Do not write custom M before query folding steps !!!! Audit steps or Groups SQL Server Profiler Power Query (right click applied step - “View Native Query”)

OneDrive DimProductCategory Dimension let sharingUrl = "insert URL here", base64Value = Binary.ToText(Text.ToBinary(sharingUrl, TextEncoding.Utf8), BinaryEncoding.Base64), encodedUrl = "https://api.onedrive.com/v1.0/shares/u!" & base64Value & "/root/content", Source = Web.Contents(encodedUrl) in Source https://docs.microsoft.com/en-us/onedrive/developer/rest-api/api/shares_get

Odata DimProduct Dimension AdventureWorks OData Feed sample CompanySales Documents ManufacturingInstructions ProductCatalog TerritorySalesDrilldown WorkOrderRouting Source: https://blogs.msdn.microsoft.com/derrick_vanarnams_blog/2012/09/05/announcing-the-adventureworks-odata-feed-sample/

Questions

References: Power Query SDK https://marketplace.visualstudio.com/items?itemName=Dakahn.PowerQuerySDK Power Apps https://powerapps.microsoft.com/ro-ro/blog/load-data-from-external-data-sources-to-the-common-data-service-using-power-query-2/ Searchable Power Query M reference https://www.powerquery.io/