I am trying to make a pareto chart and am running into issues on the last step. I need to divide Distinct Running Sum Categ/Distinct Total Sum Categ to get the Cumulative %. The pareto should end at 100% but it goes to 102% because the numerator values are larger than the denominator.
I need every row value in Distinct Total Sum Categ to be 766, same as the grand total value in the Distinct Sum Categ or the final value in the Distinct Running Sum Categ. The current formula I have for Distinct Total Sum Categ is:
Distinct Total Sum Categ = CALCULATE(DISTINCTCOUNT(Table'[Column]),ALLSELECTED())
Is there a way to write a measure where I just take the grand total or max running sum value of 766 to use in my cumulative % calculation? I tried MAXX but it didn't give me the results I needed.
Or maybe there's a way to change my Cumulative % formula so that the denominator can automatically be 766? This will have to change dynamically as the values in the rest of the table change. The current formula is this.
Distinct Cummulative Categ % = [Distinct Running Sum Categ]/[Distinct Total Sum Categ]