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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Need to aggregate multiple values into single value/ignore the filter context (DAX)

Hi

I have a formula as follows that provides the correct data but not as I want it displayed (eg when in Excel pivot table)

What I want it to do is to provide the same total value regardless of whether I add the "mtrc_nm" into the rows area of the pivot table

 

Here is the formula:

mtrc_all_tcob_ttl:= CALCULATE ([mtrc_ttl], AND(TCOB[mtrc_nm] <> "rma_crdt" , TCOB[mtrc_nm] <> "net_rev")

 

Here is how it looks in the pivot table:

image1.png

 

 

 

 

 

 

 

However, the following image is how I want it to appear -ie; I want it to ignore the "mtrc_nm" dimension (I think this is called ignoring the filter context??)

image2.png

 

 

 

 

 

I think I need to use the "ALL" or "ALLEXCEPT" function somehow but can't figure it out.

 

Appreciate any advice!!

thanks

Fergal

2 REPLIES 2
MattAllington
Community Champion
Community Champion

mtrc_all_tcob_ttl:= CALCULATE ([mtrc_ttl], ALL(TCOB[mtrc_nm])



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.
Anonymous
Not applicable

hi Matt

thanks for the info but that would not exclude the metrics I need excluded

[mtrc_nm] <> "rma_crdt" and [mtrc_nm] <> "net_rev"

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.