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
Anonymous
Not applicable

Gains/Pareto chart

Hi, 

 

I'm trying to make a graph, where I can express what percentage of items sold equals to what cumulative sales amount. E.g., 50% of the total sales are represented by x% of items. Below is an example chart:

Image result for cumulative gains chart

A small example of my dataset can be seen below: 

Sales AmountItemDate
412400001372019-06-18 00:00:00.000
850400001372019-06-19 00:00:00.000
883400001372019-06-20 00:00:00.000
650400001372019-06-21 00:00:00.000
13400001532019-06-18 00:00:00.000
44400001532019-06-19 00:00:00.000
122400001532019-06-20 00:00:00.000
88400001532019-06-21 00:00:00.000
1.182400001672019-06-18 00:00:00.000
5.065400001672019-06-19 00:00:00.000
4.665400001672019-06-20 00:00:00.000
4.743400001672019-06-21 00:00:00.000

I have around 4000 items for the past 2 months, så I'd like to be able to filter on dates as well. How can this be achieved? 

 

Thanks in advance

1 ACCEPTED SOLUTION

@Anonymous  i am afraid the visual you are asking for does not exist in power bi.  Maybe you can find one in the custom visuals but i couldn't see anything

 

i have made a few adjustments which maybe you can see a bit better what you were asking for.    Because there are the same amount of items for everyday you wont see any adjustment between the 33% split between all of them per day but the sales adjust tallying up to 100% depending on what day/s you have selected





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




View solution in original post

7 REPLIES 7
vanessafvg
Super User
Super User

@Anonymous  ive sort of worked out the basics for you, see if this works.





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

@vanessafvg  Thank you, but I actually managed to get that far by myself. 

 

I'm struggling with finding out, how to have both axis be percentages. Essentially, I'm trying to get a coordinate set of percentages: 
%cumulative_sales, %cumulative_items and be able to modify/filter the date range for this calculation. Using measures only gets mere halfway there. 

@Anonymous  i am not sure i actually understand what you are asking.  please show me exactly what you are looking for if you convert the graph to a scatter plot you will have both cordinates plotted.  If you put the date in a slider it will shift according to the date?

 

can you please identify what exactly your issue is, is it a visual that you are looking for, you say i you have the %'s arleady, it would have been better for you to give me everything you have done so far so that i didn't duplicate what had been done already.

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

@vanessafvg 

 

The calculations you made are based on the dates. The %cumulative sales and %cumulative items are calculated correctly (I think), but the problem is to plot them as "what part of the sale is caused by what part of the items". 

 

As an example from the data I originally posted.

 

ItemTotal sale%Item %%cumulative Sale%cumulative item 
4000016783,64%33,33%83,64%33,33%
400001531,43%33,33%85,07%66,67%
4000013714,93%33,33%100,00%100,00%

Here %cumulative. item should be on the x-axis and %cumulative. sale is the y. Graphing this would yield a somewhat concave graph, which allows to look at what share of the sale is explained by some share of the items. 

 

Furthermore, I should be able to filter on the dates, so that the calculations are based on e.g. 3 of the above days and not all 4. Changing the date range, should change the calculations. 

 

Also, I already posted the type of visual/result I am looking for in the OG post. 

 

@Anonymous  i am afraid the visual you are asking for does not exist in power bi.  Maybe you can find one in the custom visuals but i couldn't see anything

 

i have made a few adjustments which maybe you can see a bit better what you were asking for.    Because there are the same amount of items for everyday you wont see any adjustment between the 33% split between all of them per day but the sales adjust tallying up to 100% depending on what day/s you have selected





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




vanessafvg
Super User
Super User

@Anonymous  please provide your data in text format





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

@vanessafvg done

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.