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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
oscarmqz
Advocate II
Advocate II

Filtered measure that ignores a slice

Hi I have a matrix with a single measure which is a delta

 

Pseudo formula is: CurrentValues - ValuesSelected (From a cycle slicer)

 

For the CurrentValues part I want to ignore the cycle slicer with the below formula

 

mSavingsDelta = CALCULATE(SUM('CIP-ReportingDataNEW'[Savings (K$)]),'CIP-ReportingDataNEW'[Source]="Current",ALL('CIP-ReportingDataNEW'[Cycle]))
 
This formula works just fine inside a card even selecting something in the cycle slicer, but it doesn't work on a matrix...
 
Capture.JPGCapture2.JPG
I can't edit the interaction with the slicer because I still need the second part of the delta formula to react to the slicer which will simply by - sum ('CIP-ReportingDataNEW'[Savings (K$)])
 
Any help is appreciated!
1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @oscarmqz ,

 

First create an unrelated Cycle table as slicer.

Then create a measure like this :

measure =
VAR mSavingsDelta =
    CALCULATE (
        SUM ( 'CIP-ReportingDataNEW'[Savings (K$)] ),
        'CIP-ReportingDataNEW'[Source] = "Current"
    )
VAR selectedvalue_ =
    CALCULATE (
        SUM ( 'CIP-ReportingDataNEW'[Savings (K$)] ),
        FILTER (
            'CIP-ReportingDataNEW',
            'CIP-ReportingDataNEW'[Cycle] = SELECTEDVALUE ( 'TABLE'[Cycle] )
        )
    )
RETURN
    mSavingsDelta - selectedvalue_

If the problem persists,could you share the sample pbix or sample data?

Please mask any sensitive data before uploading

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
V-lianl-msft
Community Support
Community Support

Hi @oscarmqz ,

 

First create an unrelated Cycle table as slicer.

Then create a measure like this :

measure =
VAR mSavingsDelta =
    CALCULATE (
        SUM ( 'CIP-ReportingDataNEW'[Savings (K$)] ),
        'CIP-ReportingDataNEW'[Source] = "Current"
    )
VAR selectedvalue_ =
    CALCULATE (
        SUM ( 'CIP-ReportingDataNEW'[Savings (K$)] ),
        FILTER (
            'CIP-ReportingDataNEW',
            'CIP-ReportingDataNEW'[Cycle] = SELECTEDVALUE ( 'TABLE'[Cycle] )
        )
    )
RETURN
    mSavingsDelta - selectedvalue_

If the problem persists,could you share the sample pbix or sample data?

Please mask any sensitive data before uploading

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks @V-lianl-msft this is what I ended up figuring out too. Appreciate your help guys!

Anonymous
Not applicable

HI @oscarmqz 

try

mSavingsDelta = CALCULATE(SUM('CIP-ReportingDataNEW'[Savings (K$)]),'CIP-ReportingDataNEW'[Source]="Current",ALLEXCEPT('CIP-ReportingDataNEW'[Cycle]))

Already tried that but using allexcept ignores all the attributes in the matrix showing the grand total for "current" in all the cells

 

Capture3.JPG

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.