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
Vesteda
New Member

No Total/Cumulative anymore when SUM separated in simple measure

Hey there,

 

Somehow the cumulative doesn't show with the following simple measures. I think I miss something very basic here.

 

I use the following measures:

 

Mutations = 
DIVIDE (
    CALCULATE (
    [Ended Contracts] * 12 )
    ,[Total Buildings], 0 )

Both measures [Total Buildings] and [Ended Contracts] are simple COUNT/SUM functions over a column.

 

The measure above works, but doesn't show a TOTAL.

When I instead of the two measures, without the count measures, use the COUNT within the measure it DOES show the total.

 

Mutations cumulative = 
CALCULATE ([Mutations],
    FILTER (
        ALLSELECTED (Facts),
        Facts[Date] <= MAX ( Facts[Date] )
    )
)

The above also worked fine when I directly use the COUNT function within [Mutatiegraad]. As soon as I splitted the measures, it does not work anymore. It shows the right percentage the first month, and the months after it shows 0%. It does show a total, but it also counts as 0%.

 

Any suggestions?

 

Kind regards,

Igor

 

2 REPLIES 2
v-lid-msft
Community Support
Community Support

Hi @Vesteda ,


How about the result after you follow the suggestions mentioned in my original post?Could you please provide more details about it If it doesn't meet your requirement?

 

Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-lid-msft
Community Support
Community Support

Hi @Vesteda ,

 

According to your describe, I make a sample and test using your measure, but it works fine on my side.

 

No-Total-Cumulative-anymore-when-SUM-separated-in-simple-measure-1.pngNo-Total-Cumulative-anymore-when-SUM-separated-in-simple-measure-2.png

 

If the data model does not match yours, kindly share your sample data to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

 

BTW, pbix as attached.

 

Community Support Team _ DongLi
If this post helps, then please consider Accept it as the solution to help the other members find it more

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.