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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Create a DAX measure that ignores all filters

Hi there,

 

Not sure my dream is possible and i've been fiddling with 'ALL' to no avail. 

I have a measure which is =SUM('Table'[Invoice Count])

And I want a second measure, exactly the same function, but that will ignore any filter applied within my report. I know I can edit interactions to achieve this, but the reason I want the unchangeable measure is because I want the changeable measure to change colour based on whether it is higher, lower or the same as the unchangeable measure. For this, I need a static measure.

 

This way, when people apply filters to the data, they can see the original unfiltered number next to the filtered number, which will tell them whether the filter has increased or decreased the value, and be a nice pretty colour. 

 

Thanks in advance for any suggestions 🙂

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@Anonymous 2 ways:

CALCULATE(SUM('Table'[Invoice Count]),ALL('Table'))

SUMX(ALL('Table'),[Invoice Count]))


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...

View solution in original post

6 REPLIES 6
amitchandak
Super User
Super User

@Anonymous , I think you already have a solution 🙂 . Also, explore - ALLCROSSFILTERED

 

calculate(SUM('Table'[Invoice Count]),ALLCROSSFILTERED('Table'))

https://www.linkedin.com/pulse/five-recent-power-bi-functions-you-should-use-more-often-amit-chandak/

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
PaulDBrown
Community Champion
Community Champion

@Anonymous 

How about:

ALL measure = CALCULATE( [your measure], ALL( Table))

 

Edit: looks like @Greg_Deckler  "beat" me by 23 seconds and actual options!





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






@PaulDBrown - That's a riot! 🙂



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...

@PaulDBrown , I think, It is really difficult to be faster than @Greg_Deckler for me, atleast. I think the only way I can be faster than him, that he sees a problem a couple of mins after I do.  😀

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
Greg_Deckler
Community Champion
Community Champion

@Anonymous 2 ways:

CALCULATE(SUM('Table'[Invoice Count]),ALL('Table'))

SUMX(ALL('Table'),[Invoice Count]))


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

Thanks @Greg_Deckler this worked for me! 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors