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
Anonymous
Not applicable

How to get the opposite count of a filtered visual

So I have a column chart that gives me a count of items based on multiple different fields in the axis. What I want to do is flip this data so that I can see the count of items where these data fields don't apply. If someone has a suggestion please let me know. Thanks in advance and let me know if there is any additional information that I need to provide. Essentially I want the opposite of my data. 

7 REPLIES 7
Greg_Deckler
Community Champion
Community Champion

@Anonymous So like this? Inverse Aggregator - Microsoft Power BI Community



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

So each name would pop up in multiple rows. I would need to create something that can filter out names that contain each one of these values. So in this example if I wanted to show the count of names that don't relate to value 1 then I would get 1 name.  In the case of this table it would only be name:2345. I should be able to show this data in a visual or table. 

namedata values

1234

value 1
1234value 2
1234value 3
2345value 2
2345value 3
2345value 4

@Anonymous So more like: Inverse Selector - Microsoft Power BI Community

Let's see:

Measure = 
  VAR __SelectedNames = DISTINCT('Table'[name])
  VAR __AllNames = DISTINCT(ALL('Table'[name]))
RETURN
  COUNTROWS(EXCEPT(__AllNames,__SelectedNames))

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

@Greg_Deckler Do I still need a second table for this measure? I'm trying to make the comparison between this measure and the link you sent me. The link looks like exactly what I need. 

@Anonymous Probably not, would have to actually test it. But the ALL should get rid of the slicer filter context and so you *should* be able to get away with a single table.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

I tried it and didn't get the correct result. I think what I really need to do is create a new column. 

@Anonymous Would ned to see sample data.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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.