Chapter 1
Chapter 1
in Power BI
I N T R O D U C T I O N TO DA X I N P OW E R B I
Jess Ahmet
Content Developer, DataCamp
What is DAX?
Data Analysis eXpressions
Function categories
Aggregation - SUM() , AVERAGE() , COUNT()
DAX reference:
h ps://docs.microso .com/en-us/dax/dax-function-reference
Aggregates multiple rows and adds a new eld that can be added to visualizations
Add a new column to an existing table Results in another eld that you can add to
a visualization
Calculated at data load or when the data is
refreshed Calculated at query time as you interact
and lter
Item Price Tax Price_w_tax
Total_price_w_tax = SUM(Price_w_tax)
A $ 20 25% $25
B $ 45 0% $45
C $ 100 15% $115
Add a new column to an existing table Results in another eld that you can add to
a visualization
Calculated at data load and when the data
is refreshed Calculated at query time as you interact
and lter
Item Price Tax Price_w_tax
Total_price_w_tax = SUM(Price_w_tax)
A $ 20 25% $25
B $ 45 0% $45
C $ 100 15% $115
Table: Sales
Transactional data for each order line of
a sale
Jess Ahmet
Content Developer, DataCamp
Let's practice!
I N T R O D U C T I O N TO DA X I N P OW E R B I