Professional Documents
Culture Documents
I N T R O D U C T I O N TO P O W E R B I
Lis Sulmont
Curriculum Manager
What is DAX?
Data Analysis Expressions
INTRODUCTION TO POWER BI
DAX functions
Functions
Prede ned formulas that perform calculations on speci c values called arguments
Microsoft documentation:
https://docs.microsoft.com/en-us/dax/dax-function-reference
INTRODUCTION TO POWER BI
DAX functions examples
SUM()
Syntax: SUM(<column>)
LEFT()
Syntax: LEFT(<text>, <num_chars>)
Description: Returns the speci ed number of characters from the start of a text.
INTRODUCTION TO POWER BI
Power BI Intellisense
INTRODUCTION TO POWER BI
Power BI Intellisense
INTRODUCTION TO POWER BI
Creating calculations
INTRODUCTION TO POWER BI
Creating calculated columns
INTRODUCTION TO POWER BI
Creating calculated tables
Example uses:
Blank table
Copy an existing table
INTRODUCTION TO POWER BI
Creating calculated measures
De ned calculations
INTRODUCTION TO POWER BI
Calculated measures vs columns
Calculated columns:
For evaluating each row
Example: Profit
The Sales Amount column minus the Cost column and the Tax column
Calculated measures:
For aggregating multiple rows
INTRODUCTION TO POWER BI
Creating calculations
INTRODUCTION TO POWER BI
AdventureWorks Data Warehouse
Fact Table:
FactSales.csv
Dimension Tables:
DimCustomer.csv
DimProduct.xlxs
DimSalesTerritory.csv
DimDate.csv
INTRODUCTION TO POWER BI
Demo time!
I N T R O D U C T I O N TO P O W E R B I
Calculated tables
and columns
I N T R O D U C T I O N TO P O W E R B I
Lis Sulmont
Curriculum Manager, DataCamp
Let's practice!
I N T R O D U C T I O N TO P O W E R B I
Calculated measures
I N T R O D U C T I O N TO P O W E R B I
Lis Sulmont
Curriculum Manager, DataCamp
Let's practice!
I N T R O D U C T I O N TO P O W E R B I
Calculated measures
and Quick Measures
I N T R O D U C T I O N TO P O W E R B I
Lis Sulmont
Curriculum Manager, DataCamp
Calculate function
Syntax: CALCULATE(Aggregation, filter, [filter]...)
Aggregation:
SUM() , COUNT() , AVERAGE() , etc
Filter:
ProductColor = "RED"
INTRODUCTION TO POWER BI
Quick measures
INTRODUCTION TO POWER BI
Quick Measures
Complex measures without writing DAX
INTRODUCTION TO POWER BI
Time-based calculations
A date dimension allows us to calculate time values easily
e.g., year to date, quarter over quarter growth
INTRODUCTION TO POWER BI
Demo time!
I N T R O D U C T I O N TO P O W E R B I
Calculate function
and Quick Measures
I N T R O D U C T I O N TO P O W E R B I
Lis Sulmont
Curriculum Manager
Let's practice!
I N T R O D U C T I O N TO P O W E R B I
Time-based
calculations
I N T R O D U C T I O N TO P O W E R B I
Lis Sulmont
Curriculum Manager, DataCamp
Let's practice!
I N T R O D U C T I O N TO P O W E R B I
Congratulations!
I N T R O D U C T I O N TO P O W E R B I
Lis Sulmont
Curriculum Manager, DataCamp
Chapter 1: Getting Started with Power BI
Data, Model, and Report view
INTRODUCTION TO POWER BI
Chapter 2: Visualizing data
Different types of visualization
Hierarchies
Drill-down paths
Sorting
Filtering
Controlling interactivity
INTRODUCTION TO POWER BI
Chapter 3: Creating Calculations with DAX
DAX (Data Analysis Expressions) functions
Calculated measures
Quick Measures
INTRODUCTION TO POWER BI
Congratulations!
I N T R O D U C T I O N TO P O W E R B I