Write DAX Queries using DAX Studio Alex Barbeau

Slides:



Advertisements
Similar presentations
Chris Webb Crossjoin Consulting Ltd
Advertisements

Cloud, On-Premise, or Hybrid - Where are you making BI investment decisions and why? John P
Creating Reports Using Excel Pivot Tables Steve Honeycutt UNCG.
Microsoft Business Intelligence (BI). About Me Creating solutions for 20 years Traveling consultant at Glenture. Principal Consultant in Microsoft BI.
Building Ad-Hoc Reports using the SQL Server 2005 Reporting Services (SSRS) Report Builder (SQL307) Adrian Rupp Business Intelligence Solutions Specialist.
Realizing Business Insights with PowerPivot
Julie Strauss Senior Program Manager Lead Microsoft Corporation
SPONSORS. Microsoft PowerPivot for SQL Server, Excel 2010, and SharePoint 2010 Michael Herman Syntergy, Inc.
PowerPivot Hope Foley Perpetual Technologies. Who Am I?  Microsoft Team Lead  SQL Server DBA  (MCITP: Database Administration in 2005 and 2008)  In.
Vidas Matelis, Toronto SQL Server User Group November 13, 2008.
Session 8: Databases Teaching Computing to GCSE Level with Python.
David Dye.  Introduction  Introduction to PowerPivot  Working With PowerPivot.
1 2 3 The result is ALL Sales Territory Country.
Highline Class, BI 348 Basic Business Analytics using Excel Introduction to PowerPivot 1.
Advanced Tips And Tricks For Power Query
Intermacs Form Download Excel Tutorial Pivot Tables, Graphic Tools, Macros By: Devin Koehl.
How to train your users to create their own BI reports? So that you (IT) don’t have to Paras Doshi Consultant, SolidQ Chapter co-leader, PASS Business.
Intro to Power BI Azhagappan Arunachalam.  Senior Database Architect   PowerBICentral.com  (blog on getting started.
BISM Introduction Marco Russo
Introduction to the Power BI Platform Presented by Ted Pattison.
Self-Service Business Intelligence with Power BI Theresa Eller | sharepointmadam.com | slideshare.net/SharePointMadam.
Scripting Just Enough SSIS to be Dangerous. 6/13/2015 Visit the Sponsor tables to enter their end of day raffles. Turn in your completed Event Evaluation.
Overview of Security Investments in SQL Server 2016 and Azure SQL Database Jamey Johnston 1/15/2016Security Investments in SQL Server 2016 and Azure SQL.
A highway through the mountains of data with the SQL Server Tabular Model This presentation is a walk through in-memory database and reporting features.
OM. Platinum Level Sponsors Gold Level Sponsors Pre Conference Sponsor Venue Sponsor Key Note Sponsor.
Example Materials Power BI Desktop File (4/16): 6WPbWY5UTRhaHYwdDA/view?usp=sharing.
about me – Austin Senseman, CFA 5 years in Financial Services, Managed analytics for sales, marketing, risk, finance, &
Review DATA VISUALIZATION WITH TABLEAU ONLINE TUTORIAL Training Guide Fundamentals.
Building Stronger Relationships between Us… “Data People” and Them… “End Users.” Joshua M. Warne Business Intelligence Analyst Fishback Financial Corporation.
Tabular BI in SQL Server 2012
John Tran Business Program Manager, The Suddath Companies
SQL Server Analysis Services Fundamentals
45 Minutes to Your First Tabular Model
45 Minutes to Your First Tabular Model
Let’s Build a Tabular Model in Azure
W04 Connecting 3rd Party Application to ODBC
Introduction to Tabular Data Models
Power BI Performance Tips & Tricks
Connect to SQL Server and run select statements
Chelsea Dohemann Class will start at approximately 8:10am PowerPivot Chelsea Dohemann
6/12/2018 2:19 PM BRK3245 DirectQuery in Analysis Services: best practices, performance, and use cases Marco Russo SQLBI © Microsoft Corporation. All rights.
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.
Solving the Hard Problems
Cross UG Summit EMEA /6/2018 7:24 PM
Introduction to Tabular Data Models
Toolkit for DAX Optimization
Power BI Performance …Tips and Techniques.
Chapter 4 Application Software
SQL Server Analysis Services Fundamentals
SQL Server Analysis Services Fundamentals
Enriching your BI Semantic Models with Data Analysis Expressions (DAX)
DAX and the tabular model
“5 Minutes to WOW”, but HOW?
TechEd /24/2018 6:19 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
SQL Saturday New York City May 19th, 2018
Evaluation Context Concepts and Examples.
Modeling scenarios for DAX
Designing Complex Tabular Models
Pablo Castro Software Architect Microsoft Corporation
Data Modeling and Prototyping
Navigating Your GP Data
Introducing DAX July 11th, 2015.
Let’s Build a Tabular Model in Azure
Enriching your BI Semantic Models with Data Analysis Expressions (DAX)
A lightweight editor for SSAS Tabular Models built in .NET / WinForms
Using Power BI to Automate Data Cleaning and Visualization
Learning DAX? Five things to get you started fast
Data Modeling and Prototyping
DAX: Functions and Context That’s What It’s All About!
Presentation transcript:

Write DAX Queries using DAX Studio Alex Barbeau

Let’s get started 10/10/2015Write DAX Queries using DAX Studio2 |  Thank you Sponsors! o Please visit the sponsors during the vendor break from 2:45 – 3:15 and enter their end-of-day raffles  Event After Party o Dave and Buster’s in Southdale Center. 3 rd floor by Macy’s starting at 6:15  Want More Free Training? o PassMN meets the 3 rd Tuesday of every month.

Agenda  Why Query with DAX?  DAX Studio  Demos!  Questions? 3 |10/10/2015Write DAX Queries using DAX Studio3 |

DAX is a Query Language??  Indeed it is!  Measures are just one (very important) piece  It’s tables all the way down  Vectors and Matrices are a good theoretical start  A query returns a table  Queries are natively ‘Grouped By’ 4 |10/10/2015Write DAX Queries using DAX Studio4 |

Why Query Power BI/Tabular  You need a data source for:  Datazen  SSRS  SQL Server Reporting Services  External Reporting Tool  Your own self-service BI from existing models  Need to extract data from Power BI Desktop  DAX Development  Great way expand understanding of DAX 5 |10/10/2015Write DAX Queries using DAX Studio5 |

Note on Terminology  By Tabular I am referring to the framework behind the following software:  SSAS Tabular  Power Pivot in Excel  Power BI Desktop  Query structure is the same in all  Queries will use standard ‘Table’[Column] references and [Measure] references 6 |10/10/2015Write DAX Queries using DAX Studio6 |

Please ask Questions  Odds are others have similar questions  A full response may be delayed till a later slide  Some queries may be deliberately poorly written to demonstrate concepts and syntax  Basic familiarity with DAX assumed here-on  Columnar storage  CALCULATE(), VALUES(), FILTER() 7 |10/10/2015Write DAX Queries using DAX Studio7 |

DAX Development  Write queries and develop measures against a new or existing model  Power Pivot  Visual Studio  SSMS  SQL Server Management Studio  Excel (2013+)  Edit DAX from a table  Bit of an involved process  DAX Studio 8 |10/10/2015Write DAX Queries using DAX Studio8 |

DAX Studio  It Queries!  It Formats!  It Traces! 9 |10/10/2015Write DAX Queries using DAX Studio9 |

DAX Studio  Open Source tool for querying Tabular models   Developed (principally) by  Darren Gosbell  Marco Russo  Query Excel, Tabular, and Power BI Desktop  Let the team know what you think! 10 |10/10/2015Write DAX Queries using DAX Studio10 |

Today’s Model 11 |10/10/2015Write DAX Queries using DAX Studio11 |  Adventure Works Internet Sales

EVALUATE  Think of this like SELECT  Does nothing without an expression to  Wait for it  EVALUATE 12 |10/10/2015Write DAX Queries using DAX Studio12 |

ROW()  Return a row of values  ROW(, [,,,…])  is any “text within quotes”  is any DAX expression that returns a scalar 13 |10/10/2015Write DAX Queries using DAX Studio13 |

SUMMARIZE()  Build tables as you need them  SUMMARIZE(, [, ]…[,, ]…)   Any DAX expression that returns a table  A table reference counts   Any column in any table  A column in a related table is a good start ,  Just like ROW(), but now for the context defined above 14 |10/10/2015Write DAX Queries using DAX Studio14 |

ADDCOLUMNS()  Add values to a given table  ADDCOLUMNS(,, [,, ]…)   Any DAX expression that returns a table   Same as in ROW()   Any DAX expression that returns a scalar for a given row in the  SUMMARIZE() returns a table… 15 |10/10/2015Write DAX Queries using DAX Studio15 |

Best Practice Sidebar  Best Practice to wrap ADDCOLUMNS() around SUMMARIZE()  Reduces unnecessary calculations  Finer control over what is returned  Generally faster  Model dependent of course  Exception is ROLLUP() commands, out of scope for this session 16 |10/10/2015Write DAX Queries using DAX Studio16 |

CALCULATETABLE()  Efficient (generally) way to filter a query  CALCULATETABLE(,,,…)   A DAX expression that returns a table   Boolean expression or a table expression that defines a filter 17 |10/10/2015Write DAX Queries using DAX Studio17 |

DEFINE MEASURE  Re-usable measures just for your query  DEFINE MEASURE [ ] =   An existing table in the data model   Same as prior slides   A DAX expression that returns a scalar 18 |10/10/2015Write DAX Queries using DAX Studio18 |

SUMX()  Turning your query into a measure  SUMX(, )   An existing table in the data model   Same as prior slides   A DAX expression that returns a scalar 19 |10/10/2015Write DAX Queries using DAX Studio19 |

Resources  DAX Studio   SQLBI.com  Marco and Alberto wrote the book(s) on DAX  DAX function Reference   Community  MSDN Forums  US/home?forum=sqlkjpowerpivotforexcel US/home?forum=sqlkjpowerpivotforexcel  Model  |10/10/2015Write DAX Queries using DAX Studio20 |

Questions?  Comments?  Points of Rebuttal? 21 |10/10/2015Write DAX Queries using DAX Studio21 |

SQL Saturday Evaluations 10/10/2015Write DAX Queries using DAX Studio22 |  Remember to fill out your online evaluations for the event and any sessions you have attended. They will be online until 10/17/ valuation.aspx