SlideShare a Scribd company logo
1 of 82
DAX Level 1
• What version of PowerPivot do I have?
• What is DAX?
• Concepts – Data Model, Measures
• Exercise – Simulate Filtering
• DAX – Level 1
• Exercise – Writing DAX
DAX Level 1
History of Power Pivot
2010
History of Power Pivot
2010
Version 1
Excel 2010
History of Power Pivot
2010
Version 1
Excel 2010
2013
Version 2
Excel 2010 +
2013
History of Power Pivot
2010
Version 1
Excel 2010
2013
Version 2
Excel 2010 +
2013
2015
Version 2.x
Power BI
Desktop
History of Power Pivot
2010
Version 1
Excel 2010
2013
Version 2
Excel 2010 +
2013
2016
Version 2.x
Excel 2016
2015
Version 2.x
Power BI
Desktop
Excel->File->Options
File->Options
What is DAX?
Data Analysis eXpressions
DAX is a function language like
Excel.
SUM() COUNT() AVERAGE()
CALCULATE()
Minority Report
Minority Report
DAX is Minority Report Programing
- Measures that just work.
DAX is Minority Report Programing
- Measures that just work.
DEMO
DAX allows you to program what a
metric will do when it is dragged
around.
The model handles all the
relationships… but you still need to
worry about it.
“The hard part is
what you are not specifying.”
-Ken Raetz
Data Model
Tools & Knowledge Level
Week 1
Tools & Knowledge Level
Week 1Week 2
Tools & Knowledge Level
Week 1Week 2 Week 3
Tools & Knowledge Level
DAX Measures
DAX Measures
Sum()
Total Spend
Total Qty
Simulate Filtering
#1 - Pick a cell in the pivot
#1 - Pick a cell in the pivot
#2 - Picture filters reducing data in
the model
#3 - After filtering, apply math
#3 - After filtering, apply math
#3 – After filtering, apply math
Simulate Filtering Demo
Exercise - Simulate Filtering
Count()
Total Vendors
Total Items
Countrows()
Total Transactions
Distinctcount()
Vendors that Have Transactions
Items Purchased
Max(), Min(), Average()
Avg Unit Price
Max Unit Price
Min Unit Price
Divide()
Avg Vendor Spend Amt
Exercise 1
• Sum()
• Total Spend
• Total Qty
• Count()
• Total Vendors
• Total Items
• Countrows()
• Total Transactions
• Distinctcount()
• Vendors that Have
Transactions
• Items Purchased
• Max(), Min(), Average()
• Avg Unit Price
• Min Unit Price
• Max Unit Price
• Divide()
• Avg Vendor Spend Amt
DAX Level 2 & 3
• DAX - Level 2
• Concept - Calculated Columns
• DAX - Level 3
• Break
• Exercise - Writing DAX
DAX Level 2 & 3
DAX Level 2
YTD
March
YTD
March
YTD
March
CALCULATE()
Calculate()
On Contract
Off Contract
GPO Coverage
Compliance %
CALCULATE([measure], <filter1>, <filter2>, … <filterN>)
#1 - Pick a cell in the pivot
#1 - Pick a cell in the pivot
#2 – Got DAX Filters?
Sales 2016 = CALCULATE([Sales],'Calendar'[Year] = 2016)
Sales 2016 = CALCULATE([Sales],'Calendar'[Year] = 2016)
Sales 2016 = CALCULATE([Sales],'Calendar'[Year] = 2016)
Sales 2016 = CALCULATE([Sales],'Calendar'[Year] = 2016)
2016
#3 - Picture filters reducing data in
the model
2016
#4 - After filtering, apply math
#4 - After filtering, apply math
#4 - After filtering, apply math
2 Types of Filters:
Simple Filters & Advanced Filters
2 Types of Filters:
Simple Filters & Advanced Filters
CALCULATE([measure], <filter1>, <filter2>, … <filterN>)
2 Types of Filters:
Simple Filters & Advanced Filters
CALCULATE([measure], <filter1>, <filter2>, … <filterN>)
Simple Calculate Filter
Sales 2016 = CALCULATE([Sales],'Calendar'[Year] = 2016)
Fixed value
Simple Calculate Filter
Sales Customer BCD = CALCULATE([Sales], 'Customer'[Name] = "BCD")
Fixed value
Calculate()
On Contract
Off Contract
Optional
Compliance %
DAX Level 3
Concept – Calculated Columns
Demo Total Spend in the item table.
SumX() MaxX() AverageX()
Max Item Total Spend
What If Savings
MAXX('table',[measure])
What If Off was On Amount :=SUMX ('Item',
IF ([Off Contract Avg Unit Price] > [On Contract Avg Unit Pric
e],[Off Contract Qty] * [On Contract Avg Unit Price])
)
What If Savings :=SUMX ( 'Item', [What If Off was On Amou
nt] - [Off Contract] )
Exercise
• Calculate()
• On Contract
• Off Contract
• Optional
• Compliance %
• MaxX()
• Max Item Total Spend

More Related Content

What's hot

Tableau presentation
Tableau presentationTableau presentation
Tableau presentation
kt166212
 
Data Warehouse Modeling
Data Warehouse ModelingData Warehouse Modeling
Data Warehouse Modeling
vivekjv
 
Five Things I Wish I Knew the First Day I Used Tableau
Five Things I Wish I Knew the First Day I Used TableauFive Things I Wish I Knew the First Day I Used Tableau
Five Things I Wish I Knew the First Day I Used Tableau
Ryan Sleeper
 

What's hot (20)

Power BI Data Modeling.pdf
Power BI Data Modeling.pdfPower BI Data Modeling.pdf
Power BI Data Modeling.pdf
 
Learning Tableau - Data, Graphs, Filters, Dashboards and Advanced features
Learning Tableau -  Data, Graphs, Filters, Dashboards and Advanced featuresLearning Tableau -  Data, Graphs, Filters, Dashboards and Advanced features
Learning Tableau - Data, Graphs, Filters, Dashboards and Advanced features
 
Tableau Desktop Material
Tableau Desktop MaterialTableau Desktop Material
Tableau Desktop Material
 
Power BI Overview
Power BI OverviewPower BI Overview
Power BI Overview
 
Data Visualization with Tableau - by Knowledgebee Trainings
Data Visualization with Tableau - by Knowledgebee TrainingsData Visualization with Tableau - by Knowledgebee Trainings
Data Visualization with Tableau - by Knowledgebee Trainings
 
Tableau
TableauTableau
Tableau
 
My tableau
My tableauMy tableau
My tableau
 
Tableau free tutorial
Tableau free tutorialTableau free tutorial
Tableau free tutorial
 
Tableau presentation
Tableau presentationTableau presentation
Tableau presentation
 
Data Warehouse Modeling
Data Warehouse ModelingData Warehouse Modeling
Data Warehouse Modeling
 
Power Bi Basics
Power Bi BasicsPower Bi Basics
Power Bi Basics
 
Introduction to Azure Databricks
Introduction to Azure DatabricksIntroduction to Azure Databricks
Introduction to Azure Databricks
 
Tableau LOD Expressions | Edureka
Tableau LOD Expressions | EdurekaTableau LOD Expressions | Edureka
Tableau LOD Expressions | Edureka
 
Data Visualization With Tableau | Edureka
Data Visualization With Tableau | EdurekaData Visualization With Tableau | Edureka
Data Visualization With Tableau | Edureka
 
Five Things I Wish I Knew the First Day I Used Tableau
Five Things I Wish I Knew the First Day I Used TableauFive Things I Wish I Knew the First Day I Used Tableau
Five Things I Wish I Knew the First Day I Used Tableau
 
SQL Server Stored procedures
SQL Server Stored proceduresSQL Server Stored procedures
SQL Server Stored procedures
 
Power query
Power queryPower query
Power query
 
Tableau slideshare
Tableau slideshareTableau slideshare
Tableau slideshare
 
Tableau ppt
Tableau pptTableau ppt
Tableau ppt
 
Introduction of sql server indexing
Introduction of sql server indexingIntroduction of sql server indexing
Introduction of sql server indexing
 

Viewers also liked

Viewers also liked (14)

DAX for dummies / DAX pour les NULS !
DAX for dummies / DAX pour les NULS !DAX for dummies / DAX pour les NULS !
DAX for dummies / DAX pour les NULS !
 
DAX and Power BI Training - 005 DAX Level 4
DAX and Power BI Training - 005 DAX Level 4DAX and Power BI Training - 005 DAX Level 4
DAX and Power BI Training - 005 DAX Level 4
 
Introduction to DAX - Part 1
Introduction to DAX - Part 1Introduction to DAX - Part 1
Introduction to DAX - Part 1
 
DAX and Power BI Training - 003 Beginner Power BI Reports
DAX and Power BI Training - 003 Beginner Power BI ReportsDAX and Power BI Training - 003 Beginner Power BI Reports
DAX and Power BI Training - 003 Beginner Power BI Reports
 
Lecture slide..act26
Lecture slide..act26Lecture slide..act26
Lecture slide..act26
 
Conheça o Power BI
Conheça o Power BIConheça o Power BI
Conheça o Power BI
 
マイクロソフトにおけるオープンソース戦略 ソフトウェア開発者が実現できること
マイクロソフトにおけるオープンソース戦略 ソフトウェア開発者が実現できることマイクロソフトにおけるオープンソース戦略 ソフトウェア開発者が実現できること
マイクロソフトにおけるオープンソース戦略 ソフトウェア開発者が実現できること
 
Resumen aplicaciones excel
Resumen aplicaciones excelResumen aplicaciones excel
Resumen aplicaciones excel
 
Stn q4 and year end 2016 earnings call ppt final (feb 23 2017) 10-30 am
Stn q4 and year end 2016 earnings call ppt final (feb 23 2017) 10-30 amStn q4 and year end 2016 earnings call ppt final (feb 23 2017) 10-30 am
Stn q4 and year end 2016 earnings call ppt final (feb 23 2017) 10-30 am
 
Learn Power BI with Power Pivot, Power Query, Power View, Power Map and Q&A
Learn Power BI with Power Pivot, Power Query, Power View, Power Map and Q&ALearn Power BI with Power Pivot, Power Query, Power View, Power Map and Q&A
Learn Power BI with Power Pivot, Power Query, Power View, Power Map and Q&A
 
Excel avanzado 2010
Excel avanzado 2010Excel avanzado 2010
Excel avanzado 2010
 
reveal.js 3.0.0
reveal.js 3.0.0reveal.js 3.0.0
reveal.js 3.0.0
 
Visual Data Representation Techniques Combining Art and Design
Visual Data Representation Techniques Combining Art and DesignVisual Data Representation Techniques Combining Art and Design
Visual Data Representation Techniques Combining Art and Design
 
Visual Design with Data
Visual Design with DataVisual Design with Data
Visual Design with Data
 

Similar to DAX and Power BI Training - 002 DAX Level 1 - 3

BusinessIDNameStreetAddressCityState1001Computer Accessories Etc362
BusinessIDNameStreetAddressCityState1001Computer Accessories Etc362BusinessIDNameStreetAddressCityState1001Computer Accessories Etc362
BusinessIDNameStreetAddressCityState1001Computer Accessories Etc362
TawnaDelatorrejs
 
Access 2010 Unit D PPT
Access 2010 Unit D PPTAccess 2010 Unit D PPT
Access 2010 Unit D PPT
okmomwalking
 
AI與大數據數據處理 Spark實戰(20171216)
AI與大數據數據處理 Spark實戰(20171216)AI與大數據數據處理 Spark實戰(20171216)
AI與大數據數據處理 Spark實戰(20171216)
Paul Chao
 
Access 2013 Unit D
Access 2013 Unit DAccess 2013 Unit D
Access 2013 Unit D
jarana00
 

Similar to DAX and Power BI Training - 002 DAX Level 1 - 3 (20)

Hello my name is DAX
Hello my name is DAXHello my name is DAX
Hello my name is DAX
 
Excel to Power BI
Excel to Power BIExcel to Power BI
Excel to Power BI
 
CMIS 330 WEEK 4 SDD
CMIS 330 WEEK 4 SDDCMIS 330 WEEK 4 SDD
CMIS 330 WEEK 4 SDD
 
Management productivity tools1
Management productivity tools1Management productivity tools1
Management productivity tools1
 
Management productivity tools1
Management productivity tools1Management productivity tools1
Management productivity tools1
 
Common productivity tools: Advanced Word Processing Skills, Advanced Spreadsh...
Common productivity tools: Advanced Word Processing Skills, Advanced Spreadsh...Common productivity tools: Advanced Word Processing Skills, Advanced Spreadsh...
Common productivity tools: Advanced Word Processing Skills, Advanced Spreadsh...
 
BusinessIDNameStreetAddressCityState1001Computer Accessories Etc362
BusinessIDNameStreetAddressCityState1001Computer Accessories Etc362BusinessIDNameStreetAddressCityState1001Computer Accessories Etc362
BusinessIDNameStreetAddressCityState1001Computer Accessories Etc362
 
Office
OfficeOffice
Office
 
Winning performance challenges in oracle standard editions
Winning performance challenges in oracle standard editionsWinning performance challenges in oracle standard editions
Winning performance challenges in oracle standard editions
 
Performance Tuning Oracle's BI Applications
Performance Tuning Oracle's BI ApplicationsPerformance Tuning Oracle's BI Applications
Performance Tuning Oracle's BI Applications
 
Mdx basics
Mdx basicsMdx basics
Mdx basics
 
Mdx Basics
Mdx BasicsMdx Basics
Mdx Basics
 
Winning performance challenges in oracle standard editions
Winning performance challenges in oracle standard editionsWinning performance challenges in oracle standard editions
Winning performance challenges in oracle standard editions
 
Access 2010 Unit D PPT
Access 2010 Unit D PPTAccess 2010 Unit D PPT
Access 2010 Unit D PPT
 
Getting power bi
Getting power biGetting power bi
Getting power bi
 
AI與大數據數據處理 Spark實戰(20171216)
AI與大數據數據處理 Spark實戰(20171216)AI與大數據數據處理 Spark實戰(20171216)
AI與大數據數據處理 Spark實戰(20171216)
 
Access 2013 Unit D
Access 2013 Unit DAccess 2013 Unit D
Access 2013 Unit D
 
Hundreds of queries in the time of one - Gianmario Spacagna
Hundreds of queries in the time of one - Gianmario SpacagnaHundreds of queries in the time of one - Gianmario Spacagna
Hundreds of queries in the time of one - Gianmario Spacagna
 
Pivotal OSS meetup - MADlib and PivotalR
Pivotal OSS meetup - MADlib and PivotalRPivotal OSS meetup - MADlib and PivotalR
Pivotal OSS meetup - MADlib and PivotalR
 
Cloud computing_processing frameworks
Cloud computing_processing frameworksCloud computing_processing frameworks
Cloud computing_processing frameworks
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Recently uploaded (20)

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 

DAX and Power BI Training - 002 DAX Level 1 - 3