Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Solved! Go to Solution.
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.
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!
HI @oscarmqz
try
mSavingsDelta = CALCULATE(SUM('CIP-ReportingDataNEW'[Savings (K$)]),'CIP-ReportingDataNEW'[Source]="Current",ALLEXCEPT('CIP-ReportingDataNEW'[Cycle]))
Hope it resolves your issue? Did I answer your question? Mark my post as a solution! Appreciate your Kudos, Press the thumbs up button!! Linkedin Profile |
Already tried that but using allexcept ignores all the attributes in the matrix showing the grand total for "current" in all the cells
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
93 | |
77 | |
65 | |
53 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |