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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
gregsuash
Regular Visitor

ALL function on lower level of aggregation

Hi guys,

 

I am newbie to PBI and trying to solve one thing. 

 

I want to see the values in the Matrix when the values for TOTAL for whole time horizon is greater than some value (eg. 100 000). 

 

So I created a measure with simple CALCULATE and ALL function inside and on the lowest level used in Matrix it is working fine. 

gregsuash_0-1649279173183.png

 

When I add it as a filter it works as I expect - I see only 2 categories 

 

gregsuash_2-1649279329786.png

 

 

But in the main table I want to see it only on the Country level - I want to get rid of the business here but then it is looking for it on the higher level of aggregation and I see such a values:

 

gregsuash_3-1649279361541.png

 

How can I create a measure that will look on the lowest level in my data to use it properly this ALL function but show the values on the higher level of aggregation? 

 

I will be very grateful for any tips. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @gregsuash ,

 

You may consider to use isinscope() or isfiltered() function to return different measures for different levels.

https://docs.microsoft.com/en-us/dax/isinscope-function-dax 

https://docs.microsoft.com/en-us/dax/isfiltered-function-dax 

For example:

measure3 = IF(ISINSCOPE(column),[measure1],[measure2])

 

Best Regards,

Jay

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @gregsuash ,

 

You may consider to use isinscope() or isfiltered() function to return different measures for different levels.

https://docs.microsoft.com/en-us/dax/isinscope-function-dax 

https://docs.microsoft.com/en-us/dax/isfiltered-function-dax 

For example:

measure3 = IF(ISINSCOPE(column),[measure1],[measure2])

 

Best Regards,

Jay

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.