The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I am working on a dashboard that will serve to compare information for two different systems at work that should have the same information and need to measure the variation; however, as calculation is the same and I am using a matrix, the values for the measures are duplicated and I just one to leave one, the other portion could be blanked out.
Code and screenshot below:
Any help on this?
Measure code:
Solved! Go to Solution.
Try this measure. I rewrote it with variables for readability.
% Variation Dec-2020 =
VAR vKeyFigure =
MAX ( Data[Key Figure] )
VAR vDepDemand =
CALCULATE ( SUM ( Data[Dec-2020] ), Data[Key Figure] = "Dependent Demand" )
VAR vSamurai =
CALCULATE (
SUM ( Data[Dec-2020] ),
Data[Key Figure] = "Samurai Actuals/Gross Fcst"
)
VAR vResult =
DIVIDE ( vDepDemand, vSamurai ) - 1
RETURN
IF ( vKeyFigure = "Dependent Demand", BLANK (), vResult )
Proud to be a Super User!
Hi @Chava1881
If the above posts help, please kindly mark it as a answer to help others find it more quickly. thanks!
If not, please kindly elaborate more.
Try this measure. I rewrote it with variables for readability.
% Variation Dec-2020 =
VAR vKeyFigure =
MAX ( Data[Key Figure] )
VAR vDepDemand =
CALCULATE ( SUM ( Data[Dec-2020] ), Data[Key Figure] = "Dependent Demand" )
VAR vSamurai =
CALCULATE (
SUM ( Data[Dec-2020] ),
Data[Key Figure] = "Samurai Actuals/Gross Fcst"
)
VAR vResult =
DIVIDE ( vDepDemand, vSamurai ) - 1
RETURN
IF ( vKeyFigure = "Dependent Demand", BLANK (), vResult )
Proud to be a Super User!
This works perfectly, thank you!!