Key Power BI Functions Every Analyst Should Master
DAX Functions:
1. CALCULATE():
Purpose: Modify context or filter data for calculations.
Example: CALCULATE(SUM(Sales[Amount]), Sales[Region] = "East")
2. SUM():
Purpose: Adds up column values.
Example: SUM(Sales[Amount])
3. AVERAGE():
Purpose: Calculates the mean of column values.
Example: AVERAGE(Sales[Amount])
4. RELATED():
Purpose: Fetch values from a related table.
Example: RELATED(Customers[Name])
5. FILTER():
Purpose: Create a subset of data for calculations.
Example: FILTER(Sales, Sales[Amount] > 100)
6. IF():
Purpose: Apply conditional logic.
Example: IF(Sales[Amount] > 1000, "High", "Low")
7. ALL():
Purpose: Removes filters to calculate totals.
Example: ALL(Sales[Region])
8. DISTINCT():
Purpose: Return unique values in a column.
Example: DISTINCT(Sales[Product])
9. RANKX():
Purpose: Rank values in a column.
Example: RANKX(ALL(Sales[Region]), SUM(Sales[Amount]))
10. FORMAT():
Purpose: Format numbers or dates as text.
Example: FORMAT(TODAY(), "MM/DD/YYYY")
You can refer these Power BI Interview Resources to learn more: https://whatsapp.com/channel/0029VaGgzAk72WTmQFERKh02
Like this post if you want me to continue this Power BI series 👍♥️
Share with credits: https://t.me/sqlspecialist
Hope it helps :)
Post #2105
6.77K
- ❤ 10
- 👍 2