SQL Saturday New York City May 19th, 2018

Slides:



Advertisements
Similar presentations
Arjun Krishnamoorthi  Power View enables self-service BI by providing simple to use ad-hoc reporting for business users and decision.
Advertisements

Jeremy Boyd Director – Mindscape MSDN Regional Director
Building Ad-Hoc Reports using the SQL Server 2005 Reporting Services (SSRS) Report Builder (SQL307) Adrian Rupp Business Intelligence Solutions Specialist.
Introducing Reporting Services for SQL Server 2005.
James Akrigg Microsoft Ltd Integrating InfoPath Forms Into Workflow Solutions And Business Processes.
Building Dashboards SharePoint and Business Intelligence.
BI Practice March-2006 COGNOS 8BI TOOLS COGNOS 8 Framework Manager TATA CONSULTANCY SERVICES SEEPZ, Mumbai.
Peter Peng. Agenda Introducing A simple example More complex examples (in part 2) Developing (in part 3)
Module 2: Authoring Basic Reports. Overview Creating a Basic Table Report Formatting Report Pages Calculating Values.
Business Systems Analyst at MD Anderson Cancer Center Microsoft Office Specialist certified in SharePoint 2013 President of Houston SharePoint User Group.
Introduction to the Power BI Platform Presented by Ted Pattison.
Power View Overview April 25, POWER VIEW Presentation ready visualizations for the masses.
Excel Services Displays all or parts of interactive Excel worksheets in the browser –Excel “publish” feature with optional parameters defined in worksheet.
Write DAX Queries using DAX Studio Alex Barbeau
MAKING BUSINESS INTELLIGENT Brought to you by your local PASS Community! Self Service ETL with Power Query Welcome.
Agenda Integration points between Excel and Power BI How can I decide between the two technologies Do I need to chose? Q&A.
Getting more enterprise value out of your Lawson data
Welcome! Power BI User Group (PUG)
Power BI for the Enterprise
Discussion Points for GP Reporting
What’s new in SQL Server 2017 for BI?
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.
Frontline Analytics | Brett Powell
Power BI Performance Tips & Tricks
Creating Enterprise Grade BI Models with Azure Analysis Services
Relationship modeling patterns in SSAS and Power bi
SQL Server Reporting Service & Power BI
Data Virtualization Community Edition
6/16/2018 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
6/19/2018 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
Data Platform and Analytics Foundational Training
Leveraging BI in SharePoint with PowerPivot and Power View
Solving the Hard Problems
Data Virtualization Demoette… Parameterized Queries
Power BI Security Best Practices
Modeling and Analytics Features Coming in Analysis Services vNext
Introduction to Tabular Data Models
Tutorial 8 Objectives Continue presenting methods to import data into Access, export data from Access, link applications with data stored in Access, and.
Exam Braindumps
Welcome! Power BI User Group (PUG)
Boosting SSAS Productivity with Tabular Editor
Introduction to tabular models
Introduction to tabular models
SSRS Reporting Midwestern Baptist Theological Seminary.
Enriching your BI Semantic Models with Data Analysis Expressions (DAX)
Microsoft SQL Server 2008 Reporting Services
Intro to SQL Server Reporting Services (SSRS)
H*ckin Sweet Reports with Power BI
DAX and the tabular model
Welcome! Power BI User Group (PUG)
Enhance BI Applications and Simplify Development
Welcome! Power BI User Group (PUG)
Power BI in the Wild Power BI at Innovative Architects Julie Smith
Populating a Data Warehouse
Processing Analysis Services Tabular Models
Data Modeling and Prototyping
Power BI with Analysis Services
Become a Power BI Superstar under 1 hour!
Navigating Your GP Data
Introducing DAX July 11th, 2015.
Welcome to SQLSaturday #767! Hosted by Lincoln SQL Server User Group
Let’s Build a Tabular Model in Azure
Power BI at Enterprise-Scale
Enriching your BI Semantic Models with Data Analysis Expressions (DAX)
Dashboard in an Hour Using Power BI
Using Power BI to Automate Data Cleaning and Visualization
Welcome to 2019 SQL Saturday in Los Angeles (#891)
Become a Power BI Superstar under 1 hour!
Power BI Desktop.
Data Modeling and Prototyping
Presentation transcript:

SQL Saturday New York City May 19th, 2018 DAX Query Use Cases Brett Powell BI Consultant, Author

What is a DAX Query? DAX Measures DAX Queries Scalar values DAX Queries Table values EVALUATE clause Table parameter to measure DAX Query Authoring Tools SQL Server Management Studio DAX Studio DAX Measures in Power BI DAX Queries in SSMS

Leverage DAX Queries Across Tools & Scenarios User: custom table for their tool of choice or need Scenario: custom table for individual report(s) or isolated use case Store and reuse queries across data models (e.g. Dev/Prod) Report Projects in Visual Studio Reports in Report Builder BI Dev Tables in Excel Reports Power BI Report Power User Data Model Analysis Services Database *Power BI Dataset (Premium) SQL Server Management Studio DAX Studio BI Admin & Dev

Use Cases for DAX Queries Paginated Reports in Power BI Report Server or SQL Server Reporting Services (SSRS) Drillthrough Expressions in Analysis Services Detail Rows in Analysis Services 2017+ Performance Tuning Capture and analyze queries from Power BI Test performance of DAX measures Embed Queries (Tables) in DAX Measures Query or queries drive measure results Data Model Tables (Import Mode) Analysis Services or Power BI Excel Data Tables Query local or external data model Custom Application DAX queries against Analysis Services Data Model Troubleshooting Missing rows, missing values Calculated Tables in Power BI and Analysis Services and more….

Introductory Examples

Use Case: Excel Table via Custom ODC Analyze in Excel or Power BI Publisher for Excel Obtain ODC (Office Data Connection) to source model Embed DAX Query in ODC File Optionally embed multiple queries in Excel 1. Custom ODC 3. New Query in Excel 2. Retrieve Query as Table

Use Case: Ad Hoc Analysis; Troubleshooting How many rows per table? What’s the distribution of rows by date? Any missing rows or values? Find the details of any exceptions? Row Counts Rows with Blank Values Row Counts in SSMS

Use Case: Import Analysis Services to PBI Desktop Single Table Simplified self-service reporting via aggregated and filtered table Pass DAX query from Power BI Desktop Self-Service Model Merge Analysis Services data with other data source DAX and M (Power Query) queries Support limited self-service (sandbox) Parameterized DAX query Table in Power BI Desktop Query Dependencies in Power BI Desktop

DAX Query Structure and Functions

Common DAX Table Functions CALCULATETABLE SUMMARIZECOLUMNS FILTER VAR ALL INTERSECT VALUES EXCEPT DATATABLE UNION ADDCOLUMNS DISTINCT TOPN NATURALINNERJOIN SELECTCOLUMNS SUMMARIZE CROSSJOIN GENERATE Table SUMMARIZECOLUMNS FILTER CALCULATETABLE

DAX Query Structure and Examples DEFINE (Optional) Measures or Variables EVALUATE (Required) Table or Table Expression ORDER BY (Optional) START AT (Optional) Full DAX Query Syntax DAX Query Results: SQL Server Management Studio (SSMS)

DAX Query Examples Select Columns Filter Conditions Grouping Columns Relationships implied Filter Conditions CALCULATETABLE FILTER, TOPN Grouping Columns SUMMARIZECOLUMNS() SUMMARIZE() Aggregations Use measures of model Optionally create measures for query DAX Query Example DAX Query Results: SQL Server Management Studio (SSMS)

DAX Queries in Power BI Report Server Reports

Report Project in SQL Server Data Tools (SSDT) Paginated Reports Why paginated reports? Printer-friendly, multi-page reports Leverage SSRS experience and reports Migrate source of reports to Analysis Services Mature, robust report design features Development Tools: Report Builder SQL Server Data Tools (SSDT) Paginated Report Report Project in SQL Server Data Tools (SSDT)

Paginated Report Examples Internet Sales Analysis Standard paginated report (.RDL) First Year Customer Report Pages of customer details Printer-friendly Reseller Analysis Reseller Details linked report Drillthrough action via parameter Internet Sales User Analysis Parameters for interactive filtering Single and multi-value parameters Paginated Report Linked Paginated Report

Embedding DAX Queries in Measures

DAX Queries in Measures Examples Filter measure by table FILTER and CALCULATETABLE Multi-table OR conditions CROSSJOIN SUMMARIZE Multiple Sets of Customers UNION NATURALINNERJOIN Multiple Sets and Filters FILTER, SUMMARIZE, and CALCULATETABLE

Thank You

Contact Information Brett Powell Brett.Powell@FrontlineAnalytics.net LinkedIn Twitter: @BrettPowell76 Blog: Insight Quest Amazon: Author Page