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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Calculate total of Measures

Hi All,

 

I am trying to calculate the total of measure that is created using two other measures. But I am not able to achieve it.

 

The difference column is calculated by subtracting Previous month values from Total CWIP values for each row. I am getting correct difference but the total should have -ve. Instead I am getting +ve.

 

I am suspecting that instead of total of Difference column it is subtracting Total of Previous Month from Total of Total CWIP column.

Power BI.png

1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

You can use 

Measure = 
SUMX(
    SUMMARIZE(
        'Table',
        'Table'[Year],
        'Table'[Month]
    ),
    [Difference]
)




Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

View solution in original post

3 REPLIES 3
v-gizhi-msft
Community Support
Community Support

Hi,

 

Please try this:

Measure = SUMX ( GROUPBY ( 'Table', 'Table'[Year], 'Table'[Month] ), [Difference] )

Hope this helps.

 

Best Regards,

Giotto

Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

You can use 

Measure = 
SUMX(
    SUMMARIZE(
        'Table',
        'Table'[Year],
        'Table'[Month]
    ),
    [Difference]
)




Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Anonymous
Not applicable

Thanks Mariusz.

 

It worked

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.