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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
RingoMoon
Frequent Visitor

How to make REMOVEFILTERS or ALL work in this scenario?

My measure looks like this

 

 

CALCULATE(
COUNTROWS(VALUES(Metrics[Sales Area])),
REMOVEFILTERS(Metrics[Metric])
)

 

 


And my data looks something like this:

Sales AreaMetric
Area 1Metric A
Area 2Metric B
Area 1Metric B
Area 2Metric C
Area 1Metric C


If I put Sales Area in a slicer and select Area 1 and Area 2 together with the metric unfiltered I get 2 as a value in the card but if I have it filtered to Metric A, I get 1 as a value. How do I make it so that I get the unfiltered metric value which is 2 even if I have Metric A selected in the slicer? REMOVEFILTERS didn't seem to work in this case.


Sample pbix

REMOVEFILTERS.pbix

2 ACCEPTED SOLUTIONS
Kaviraj11
Super User
Super User

Hi, 

 

You can use edit interaction features to disabled the interactions between visuals:

Change how visuals interact in a report - Power BI | Microsoft Learn

Kaviraj11_0-1728315977187.png

 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

parry2k
Super User
Super User

@RingoMoon I don't think any of these solutions work, except @Kaviraj11 ones which is to disable the interaction and the core reason for auto exist, google it or watch this video. Auto Exist - Importance of star schema in Power BI. Why ALL function doesn't work? (youtube.com)



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

4 REPLIES 4
parry2k
Super User
Super User

@RingoMoon I don't think any of these solutions work, except @Kaviraj11 ones which is to disable the interaction and the core reason for auto exist, google it or watch this video. Auto Exist - Importance of star schema in Power BI. Why ALL function doesn't work? (youtube.com)



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

MNedix
Super User
Super User

@RingoMoon 

Plenty of options to choose from. Aside the solutions provided by @Kaviraj11 and @rajendraongole1 you can also try

M1 = CALCULATE(
COUNTROWS(VALUES('Metrics'[Sales Area])),
FILTER(ALL('Metrics'),'Metrics'[Metric]<>BLANK())
)

 

Cheers,



If the post helped then please give it a Kudos and mark it as the solution so others can see it.
Cheers,
Kaviraj11
Super User
Super User

Hi, 

 

You can use edit interaction features to disabled the interactions between visuals:

Change how visuals interact in a report - Power BI | Microsoft Learn

Kaviraj11_0-1728315977187.png

 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





rajendraongole1
Super User
Super User

Hi @RingoMoon - can you try below modified logic

CALCULATE(
COUNTROWS(VALUES(Metrics[Sales Area])),
REMOVEFILTERS(Metrics[Metric]),
ALL(Metrics[Metric])
)

 

Hope it works. 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.