Forum Discussion
JajatiDev
Helper II
4 years agoPareto Chart with DAX Function
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 assi...
- Anonymous4 years ago
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
Whitewater100
Solution Sage
4 years agoHello:
You can try a couple calculated columns, after one initial measure
Measure ... Order Lines = SUM(Table[CountofOrderLines])
Cumulated Orders =
CALCULATE(
[Order Lines] ,
ALL( Table ),
Table[Order Lines] >= EARLIER( Table[Order Lines ))
Cumulated Percentage = DIVIDE( Table[Cumulated Orders] , SUM( Table[CountofOrderLines] ) , 0 )
I hope this helps!