DAX Level 1 - 3: In this session we explain DAX and cover other foundational concepts in PowerPivot such as the Data Model, Measures and Calculated Columns as well as the important skill of understanding how filtering works in the Data Model.
2. • 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
47. 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
81. 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] )
82. Exercise
• Calculate()
• On Contract
• Off Contract
• Optional
• Compliance %
• MaxX()
• Max Item Total Spend