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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors