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

Cumulative total sales %

Hi!

 

I'm struggling calculating the cumulative sales % for my products. Basically i want to do a pareto analysis so i know the number of products that give me the 80% of my sales. In the attached file you can see the table and how should it look. In this example, 13 of my products make the 80% of my past 12 months sales. Also, i should be able to filter by zone, brand, type, etc and show me how many products make the 80% of my sales. 

 

Thanks! Here is the attached file. 

1 ACCEPTED SOLUTION

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


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

View solution in original post

7 REPLIES 7
Ashish_Mathur
Super User
Super User

Hi,

On what basis have you decided the order in which the rows have to be sorted?  Do they have to be sorted by the Content column in ascending order?  This is important to know because the numbers in the Cumulative column will depend on that.


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

Hello @Ashish_Mathur , it should be sorted ascended by sales past 12 months.

 

Thanks!

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


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

Thank you @Ashish_Mathur . If i want to filter by zone so the table shows me the cumulative sales only of the products in the zone "start", how can i do that? 

Migsmix_0-1660439658786.png

 

thanks!!

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


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

@Migsmix 

is this what you want?

Measure = sumx(FILTER(all('Table'),'Table'[Content]<=max('Table'[Content])),'Table'[Sales Past 12 months])

Measure 2 = [Measure]/CALCULATE(sum('Table'[Sales Past 12 months]),all('Table'))

1.PNG

pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hello @ryan_mayu , the table should be sorted ascendent by sales past 12 months. Also, if i use a filter like brand, type or zone, the table should be recalculated to show those products that make de 80% of the sales in the brand "Font" or Zone "Final". With this i can see the number of products that make de 80% of the past 12 sales and also see the which products are.

 

Thanks!

 

Thanks!

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.