Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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!!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 39 | |
| 37 | |
| 29 | |
| 24 |
| User | Count |
|---|---|
| 122 | |
| 110 | |
| 83 | |
| 69 | |
| 68 |