Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Session Agenda
DAX definition
DAX Calculated columns
DAX measures
The CALCULATE() Function
Relationships
Quick Measures
What is DAX?
or
=CALCULATE(
[Number of new customers],
[Year]=“2017”,
[Gender]=“M”
)
A little more complex
Difference from today =
[Unit Sales] –
CALCULATE(
[Unit Sales],
Sales[OrderDate]=DATE(2017,05,03)
)
Relationships
The ideal table design for Power BI is exactly opposite to
what you have learnt in Excel
Excel
Flatten everything into a single table using VLOOKUP or
INDEX/MATCH
Power BI
Keep the tables separate as Lookup Tables and Data Tables
Demo
Look at the alternate design
Everything still works
Quick Measures
New feature released in April 2017
Kinda like the menus in Get Data
Allows you to pick from a menu
It actually creates a real measure
You can learn by editing the measure after it is created
Demo
https://aka.ms/mdis17schedule