Forum Discussion
Accumulated data without date
- 1 year ago
Hi kusanagi
Please check your rate measure
3A01----Rate should be 54.69
Create a measure for running totalrunning total =VAR _rnk = RANKX(ALLSELECTED('Table'[Item]),[qty_m],,DESC,Dense)VAR r_t =CALCULATE([qty_m],FILTER(ALLSELECTED('Table'[Item]),_rnk >= RANKX(ALLSELECTED('Table'[Item]),[qty_m],,DESC,DENSE)))
RETURNr_tCreate measure for total (overall)total_m =CALCULATE(SUM('Table'[Qty]),ALLSELECTED('Table'))
last measure to get your result
cum_% =DIVIDE( [running total], [total_m], 0)
If this answers your questions, kindly accept it as a solution and give kudos. - 1 year ago
Hi kusanagi ,
This is a good use case for the visual calculations that will allow you to have a cumulative calculation over the rate values.
https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-visual-calculations-overview
In this case you need to use a runningsum over the percentage the syntax will be similar to this_:
Running sum = RUNNINGSUM([%GT qty], ORDERBY([qty], DESC))
Hi kusanagi ,
I wanted to follow up regarding the information MFelix provided. It appears to align with your initial requirements and may support our progress.
If you are still reviewing or require further information, please let us know. We are available to assist as needed.
Thanks