Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi,
This is a follow-up to my previous query.
I am trying to create a DAX function to convert the below table into a Pareto Chart.
x-axis: SC_TAT days
y-axis: CountOfOrderLines
Please assist with the DAX function that would capture the cumulative, total and percentage in one measure which can then be converted into a chart.
Regards,
Jajati Dev
| SC_TAT (Days) | CountOfOrderLines | Cumulative | Total | Percentage |
| 0 | 6643 | |||
| 1 | 597 | |||
| 2 | 201 | |||
| 3 | 226 | |||
| 4 | 291 | |||
| 5 | 397 | |||
| 6 | 300 | |||
| 7 | 306 | |||
| 8 | 340 | |||
| 9 | 268 | |||
| 10 | 236 | |||
| 11 | 179 | |||
| 12 | 206 | |||
| 13 | 171 | |||
| 14 | 199 | |||
| 15 | 213 | |||
| 16 | 141 | |||
| 17 | 118 | |||
| 18 | 170 | |||
| 19 | 143 | |||
| 20 | 118 | |||
| 21 | 136 | |||
| 22 | 114 | |||
| 23 | 109 | |||
| 24 | 130 | |||
| 25 | 88 | |||
| 26 | 96 |
Solved! Go to Solution.
Hi @JajatiDev ,
Please check the formulas.
Cumulative = SUMX(FILTER(ALLSELECTED('Table'),'Table'[SC_TAT (Days)]<=MAX('Table'[SC_TAT (Days)])),'Table'[CountOfOrderLines])Total = SUMX(ALLSELECTED('Table'),'Table'[CountOfOrderLines])Percentage = format(SUMX('Table','Table'[CountOfOrderLines])/[Total],"percent")
Pbix as attached.
Best Regards,
Jay
Hi,
How to build a pareto chart for one column?
I have a column - "Failures", in which errors occur repeatedly. On the column chart, unique names of the failure should appear on the X axis, and on the Y axis, the number of times it repeated should appear. The pareto chart will be a line of the % occurrence of a given failure from the entire table.
Thanks for the help in advance
Hi @JajatiDev ,
Please check the formulas.
Cumulative = SUMX(FILTER(ALLSELECTED('Table'),'Table'[SC_TAT (Days)]<=MAX('Table'[SC_TAT (Days)])),'Table'[CountOfOrderLines])Total = SUMX(ALLSELECTED('Table'),'Table'[CountOfOrderLines])Percentage = format(SUMX('Table','Table'[CountOfOrderLines])/[Total],"percent")
Pbix as attached.
Best Regards,
Jay
Hi:
You my be looking for this version. It's on the file upload. It's more in order of day number.
Hello:
Did my reply answer your initial question? Thanks..
Hi:
I updated the calcs. Please see attached file. I hope this solves your question! Thanks.https://drive.google.com/file/d/1AmZdKZ0R0YYwGR4bpT36QFM8U_yePF7k/view?usp=sharing
I hope this helps!
Hello:
You can try a couple calculated columns, after one initial measure
Measure ... Order Lines = SUM(Table[CountofOrderLines])
Hi jajatidev,
Please find attached required help,
I took your datas and saved table as Pareto.
After 2 measures :
cumulative =
VAR compteur =
SELECTEDVALUE ( Pareto[SC_TAT (Days)] )
VAR result =
CALCULATE (
SUM ( Pareto[CountOfOrderLines] ),
ALL ( Pareto ),
Pareto[SC_TAT (Days)] <= compteur
)
RETURN
result
and the percentage :
cumulative percent =
VAR compteur =
SELECTEDVALUE ( Pareto[SC_TAT (Days)] )
VAR totalorederline =
CALCULATE ( SUM ( Pareto[CountOfOrderLines] ), ALL ( pareto ) )
VAR cumulative =
CALCULATE (
SUM ( Pareto[CountOfOrderLines] ),
ALL ( Pareto ),
Pareto[SC_TAT (Days)] <= compteur
)
VAR result =
DIVIDE ( cumulative, totalorederline )
RETURN
result
Hi James,
Thanks for the quick response.
Could you please share the .pbix file for me to review because while trying to replicate I am not getting the desired result?
Regards,
Jajati Dev
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 7 | |
| 7 |