Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
bkr
Helper I
Helper I

Double Cumulative Pareto Chart sorted by incline

Dear Folks,

 

I'm struggling preparing a pareto chart in which both axes are cumulative and sorted by incline.

I start with the following calculated Summarytable:

ProjectSalesCost
A1000500
B10080
C300150
D1000400

 

What I want is:

1. Calculate how much sales I get for one dollar of costs. This is the incline.

2. Now sort the table by incline in a descending manner

3. Calculate cumulative values for both sales and Costs

ProjectSalesCostIncline = Sales/CostCumulative SalesCumulative Cost
D10004002,51000400
A100050022000900
C300150223001050
B100801,2524001130

 

Ultimately I want to prepare a double cumulative pareto chart sorted by incline.

 

The only thing I managed so far is to calculate the incline in my summarytable but I could not sort it and calculate the cumulative values thereafter.

 

Any helpful suggestions are appreciated

3 REPLIES 3
Anonymous
Not applicable

Hi @bkr 
Here is my approach
Step 1: Create a custom column in Power Query

Incline = [Sales]/[Cost]
Step 2: Sort Incline column in desc order

Step 3: Add index column
Step 4: Create following measure 

Cumulative Cost = CALCULATE(SUM('Table'[Cost]),FILTER(ALL('Table'),'Table'[Index]<=MAX('Table'[Index])))

Cumulative Sales = CALCULATE(SUM('Table'[Sales]),FILTER(ALL('Table'),'Table'[Index]<=MAX('Table'[Index])))

 

Hi Vimal,

 

thanks for your answer. I think the cumulative part should work your way, but I need to do this with an on the fly calculated summarytable. I cannot create this table in Power Query unfortunately.

Anonymous
Not applicable

@bkr Please try this approach 

for incline and index column

Create calculated column instead of custom and index column in dax

 

Incline = DIVIDE('Table'[Sales],'Table'[Cost],0)
Index = RANKX('Table','Table'[Incline]+INT('Table'[Sales])/10000000,,DESC)

Please make sure you divide the  sales by a large number so that there are no ties in rank calculation

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.