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
JPY
Helper II
Helper II

ALL function is not working

Hi all,

I am trying to create a measure to ignore the filtering. I used ALL to exclude the country factor as I want to compare each country's numbers against the total (called APJI). 

Measure: APJI = CALCULATE(AVERAGE(ASP[Net Value ASP USD]),ALL(ASP[Country],ASP[District]))

The table in the screenshot looks fine but when I try to select the country filter, the total will start to change.

Anyone knows how to resolve this issue? Here is the sample pbix 

 JPY_0-1654239192406.png

JPY_1-1654239502662.png

Thanks for your time!

Joyce

5 REPLIES 5
amitchandak
Super User
Super User

@JPY , Based on what I got try like

 

Measure: APJI = CALCULATE(AVERAGE(ASP[Net Value ASP USD]),ALL())

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak ,

Thanks but I still want the total change according to other filters such as HW/SW.. I only want to ignore the Country in this case. What should I do?

@JPY ,

Measure: APJI = CALCULATE(AVERAGE(ASP[Net Value ASP USD]),Removefilters(ASP[Country]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak ,

No it doesnt work.. I have tried this way before.

Could you please take a look at the pbix file? I am thinking this issue has to do with other slicers.

Hi @amitchandak ,

Just want to check with you if you have any idea on how to resolve the issue?

Thanks!

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.