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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

filtering a measure

SUMX(FILTER(Cancellations, Cancellations[status]="order confirmed"),1) 

Im trying to get a static figure for "order confirmed" even when i select other status's on another slicer, is this possible? 

1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

ALL  function should help you in your scenario, please refer to the online document.

https://docs.microsoft.com/en-us/dax/all-function-dax

 

Also one sample for your reference, here we can create a measure as below to work on it.

Measure =
CALCULATE (
    SUM ( 'Table'[value] ),
    FILTER ( ALL ( 'Table' ), 'Table'[status] = "order confirmed" )
)

 

Capture.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

ALL  function should help you in your scenario, please refer to the online document.

https://docs.microsoft.com/en-us/dax/all-function-dax

 

Also one sample for your reference, here we can create a measure as below to work on it.

Measure =
CALCULATE (
    SUM ( 'Table'[value] ),
    FILTER ( ALL ( 'Table' ), 'Table'[status] = "order confirmed" )
)

 

Capture.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Anonymous
Not applicable

Hi @Anonymous ,

 

the simplest way, probably, is disconnect the visual from the filter/slicer in Format->Edit Interactions.

If you need other elements of the visual to react on the slicer, but this measure to stay the same. This is the DAX formula, which you can adapt to your scenario:

 

Measure = CALCULATE(sum('Table'[Column2]), All('Table'[Column1]), 'Table'[Column1] = 2)

However filter changes on the Column1, the measure keeps showing sum(Column2) for Column1=2 (respecting all other filters).

 

Kind regards,

JB

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.