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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Chava1881
Helper II
Helper II

Duplicated Calculation / Leave only one row of data on measures

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? 

Chava1881_0-1601411859132.png

 

Measure code:

% Variation Dec-2020 = (DIVIDE(
CALCULATE(
SUM(Data[Dec-2020]),
Data[Key Figure] = "Dependent Demand"
),
CALCULATE(
SUM(Data[Dec-2020]),
Data[Key Figure] = "Samurai Actuals/Gross Fcst"
)
)) -1

 

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@Chava1881,

 

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 )

 

DataInsights_0-1601505060226.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
v-diye-msft
Community Support
Community Support

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.

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
DataInsights
Super User
Super User

@Chava1881,

 

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 )

 

DataInsights_0-1601505060226.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




This works perfectly, thank you!!

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.