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
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
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.