0% found this document useful (0 votes)
49 views1 page

DAX_Functions_Cheat_Sheet

The document is a cheat sheet for Power BI DAX functions, detailing the purposes and examples of key functions like CALCULATE(), ALL(), ALLSELECTED(), and ALLEXCEPT(). Each function is explained with its use case, such as changing filter contexts, calculating grand totals, and maintaining specific filters. This resource serves as a quick reference for users to apply these functions effectively in their data analysis.

Uploaded by

Keshav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views1 page

DAX_Functions_Cheat_Sheet

The document is a cheat sheet for Power BI DAX functions, detailing the purposes and examples of key functions like CALCULATE(), ALL(), ALLSELECTED(), and ALLEXCEPT(). Each function is explained with its use case, such as changing filter contexts, calculating grand totals, and maintaining specific filters. This resource serves as a quick reference for users to apply these functions effectively in their data analysis.

Uploaded by

Keshav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Power BI DAX Function Cheat Sheet

CALCULATE()

Purpose: Changes the filter context in which an aggregation is calculated.

Example:

Sales 2024 = CALCULATE(SUM(Sales[Amount]), YEAR(Sales[Date]) = 2024)

Use: Apply custom filters when calculating totals, averages, etc.

ALL()

Purpose: Removes all filters from a column or table.

Example:

Total Sales All = CALCULATE(SUM(Sales[Amount]), ALL(Sales))

Use: To calculate grand totals or ignore slicer/visual filters.

ALLSELECTED()

Purpose: Removes filters from visuals but keeps slicer/page/report-level filters.

Example:

Total Sales Selected = CALCULATE(SUM(Sales[Amount]), ALLSELECTED(Sales))

Use: To calculate percentages based on user slicer selections.

ALLEXCEPT()

Purpose: Removes all filters except the one(s) specified.

Example:

Product Total All Time = CALCULATE(SUM(Sales[Amount]), ALLEXCEPT(Sales, Sales[Product]))

Use: Useful for group-based comparisons (e.g., Product-wise total across all time).

You might also like