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
cailingjie0405
Frequent Visitor

Problem with Cumulative %

Hi Community,

I am doing a Pareto analysis and I calculated the cumulative % using the following formula:

 

Cumulative % = var currentUSD= [SumUSD]
var totalspend = CALCULATE([SumUSD],ALLSELECTED(Product) return
CALCULATE(
[SumUSD] ,
FILTER(ALLSELECTED(Product), [SumUSD] >= currentUSD)
) / totalspend
 
It works good and it shows as (sorry for the ugly chart)
cailingjie0405_0-1626285500009.png

However, we I add in a new filed (quantity). The first value of the cumulative % becames blank. I am not sure why this happend. Can you please advice?

cailingjie0405_0-1626290492201.png

 

Thanks in Advance!

2 ACCEPTED SOLUTIONS
v-kkf-msft
Community Support
Community Support

Hi @cailingjie0405 ,

 

Don't know your model, maybe you can try the following measure:

 

Cumulative % = 
CALCULATE(
    SUMX('Product', [SumUSD]) ,
    FILTER(
        ALLSELECTED('Product'[Product Names]), 
        [SumUSD] >= SUM('Product'[USD])
    )
) / SUMX( ALLSELECTED('Product'[Product Names]), [SumUSD] )

vkkfmsft_0-1626657645216.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

Ashish_Mathur
Super User
Super User

Hi,

Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
v-kkf-msft
Community Support
Community Support

Hi @cailingjie0405 ,

 

Does your problem have been solved? If it is solved, please mark a reply which is helpful to you.

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

 

Best Regards,
Winniz

Ashish_Mathur
Super User
Super User

Hi,

Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-kkf-msft
Community Support
Community Support

Hi @cailingjie0405 ,

 

Don't know your model, maybe you can try the following measure:

 

Cumulative % = 
CALCULATE(
    SUMX('Product', [SumUSD]) ,
    FILTER(
        ALLSELECTED('Product'[Product Names]), 
        [SumUSD] >= SUM('Product'[USD])
    )
) / SUMX( ALLSELECTED('Product'[Product Names]), [SumUSD] )

vkkfmsft_0-1626657645216.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Thank you. It works good

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.