Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
maxduff59
Helper II
Helper II

Use a Filter in a ALL condition

Hello,

I have a dataset of physical performance during games (distance covered, high-speed distance, acceleration, ...) and I created a measure to compute average according to several conditions like that : CALCULATE( Average with condition, ALL(Games)).

However, I would like to know if it is possible to add a condition inside the calculate fonction such as : CALCULATE( Average with condition, ALL(Games.Minutes > 60)).

I hope my explications are clear enough 😅
Thanks in advance for your time and your help 

3 REPLIES 3
ThomasWeppler
Super User
Super User

Just type CALCULATE( Average with condition, ALL(Games), ALL(Games.Minutes > 60))

 

Each , adds a new filter.

 

However I am not sure you want to use the all function since it returns all rows in a table without the use of any filter.

So, do you have an idea of which function will be a better use than ALL() ?

It depends on what you want to do, but I am not even sure you need anything. If you just pick the table and the colum and only wants to include rows where the value is higher than a specifik number you can just pick the table and colum and write something like this in Dax.

Games = 
CALCULATE(Average with condition,
table[colum] > 60))

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.