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

Top X ranges of sales that returns contribution

Hi, 

 

I have simple problem that is not easy to me at all. 

 

I have a table SHOPS with 2 columns, SALES and ADDRESS

 

Basically my task is to show:

  1. how many shops and which ones specifically contribute to the top 10% of total sales
  2. how many shops and which ones specifically are in the top 10-20% range of total sales
  3. how many shops and which ones specifically are in the top 20-30% range of total sales

 

I tried my best but everytime it analyzes the sales value of each shop and gives me result for each shop separatety.
 

However I want it to give me the list of all shops that contribute to each range by their sales combined. So I think it needs to calculate the total sales at first, then compare sales of each shop to the total sales, then sort it descendingly, then give me the list of the shops which sales combined fit in the ranges.

 

dummy example.. 

 

let's say total sales are 100K 

then..

top 10% is 10K in total (easy)

top 10-20% is also 10K in total (shops that have lower sales but combined equal 10K) 

top 20-30% is also 10K in total (shops that have even lower sales but combined also equal 10K)

 

sales value for shops:

shop A = 6K

shop B = 4K

shop C = 3K

shop D = 2,8K

shop E = 2,2K

shop F = 2K

shop G = 1,8K

etc

 

I need to see that..

in the top 10% there are..

shop A = 6K

shop B = 4K

 

in the top 10-20% there are..

shop C = 3K

shop D = 2,8K

shop E = 2,2K

shop F = 2K

 

etc

 

So in the end in the top 10 there will be just few shops

in the top 10-20% there will be more cause they generate less sales

and in the top 20-30% there will be even less cause they generate even less sales

but I need to see which are those (by address in this example)

 

it's been driving me nuts for hours now..

please help 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Lucky_Bamboo , Try the approach in this video

Pareto Analysis Again, 80% of sales, are Order by Measure when REL position is used: https://youtu.be/GpoITi_tRIw

 

You can change number from 80 to 20 etc

View solution in original post

2 REPLIES 2
Lucky_Bamboo
Frequent Visitor

 Works like a charm, my boss is happy, thank you sir 😉 

amitchandak
Super User
Super User

@Lucky_Bamboo , Try the approach in this video

Pareto Analysis Again, 80% of sales, are Order by Measure when REL position is used: https://youtu.be/GpoITi_tRIw

 

You can change number from 80 to 20 etc

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.