Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
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!!
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 23 | |
| 21 | |
| 17 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 51 | |
| 39 | |
| 29 | |
| 24 |