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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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