0
0
Power BIbi_tool~5 mins

CALCULATE function introduction in Power BI - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner

What does the CALCULATE function do in Power BI?

The CALCULATE function changes the context in which a calculation is done. It lets you apply filters to your data before calculating a result.

Click to reveal answer
beginner

Write the basic syntax of the CALCULATE function.

CALCULATE(expression, filter1, filter2, ...)<br>Where expression is what you want to calculate, and filter changes the data used.

Click to reveal answer
beginner

Why is CALCULATE important for dynamic reports?

Because it lets you change filters on the fly, so your numbers update based on what you want to see. This makes reports interactive and useful.

Click to reveal answer
beginner

Can CALCULATE be used without filters?

Yes, but it is mostly useful when you add filters. Without filters, it just returns the expression result in the current context.

Click to reveal answer
beginner

Give a simple example of CALCULATE to sum sales only for the year 2023.

CALCULATE(SUM(Sales[Amount]), Sales[Year] = 2023)<br>This sums sales but only where the year is 2023.

Click to reveal answer

What is the main purpose of the CALCULATE function in Power BI?

AChange the filter context for a calculation
BCreate a new table
CSort data alphabetically
DFormat numbers

Which of these is the correct syntax for CALCULATE?

ACALCULATE(expression * filter1)
BCALCULATE(filter1, filter2, expression)
CCALCULATE(expression + filter1 + filter2)
DCALCULATE(expression, filter1, filter2)

What happens if you use CALCULATE without any filters?

AIt returns the expression result in the current context
BIt returns zero
CIt creates an error
DIt deletes the data

Which of these is a valid filter inside CALCULATE?

AALL(Sales)
BSUM(Sales[Amount])
CSales[Year] = 2023
DFILTER(Sales)

Which of these best describes CALCULATE?

AA chart type
BA function to change calculation filters
CA data import tool
DA formatting option

Explain in your own words what the CALCULATE function does in Power BI.

Think about how you can change what data is used before adding numbers.
You got /3 concepts.

    Describe a simple example where you would use CALCULATE to find sales for a specific year.

    Use SUM and a filter like Sales[Year] = 2023 inside CALCULATE.
    You got /3 concepts.