Power Bi Course 4
Power Bi Course 4
• DAX: Syntax
DAX
• Download “contoso sales sample for power bi”
• https://www.microsoft.com/en-us/download/details.aspx?id=46801
DAX Functions
• DAX Aggregate Functions
• DAX Measures & Calculate Column Functions
• Basic DAX Date & Time Functions
• DAX: Logical & Filter Functions
DAX Aggregate Functions
1. SUM function
Using newly created measure (total sales by brand/manufacturer)
2. AVERAGE
3. Count function (count the number of products)
4. Countblank (to see missing and blanks cells)
5. Distinctcount (counts each unique value-count stores from sales table/storek )
6. Countrows (in a table)
7. Formatting a function
Comment, delete, edit and renaming a function
DAX Measures & Calculate Column Functions
3. Company wants to calculate the profit margin ratio (this ratio is in %age), the formula
is as follows (Total Profit/Total Sales)
Show with line chart, in which year company has higher profit margin
DAX: Practice Session
4. Create a AvgProfit measure which takes the average of all the profit.