Forum Discussion
BenediktW
Advocate I
2 years agoVisual calculation: running sum - sorting issue
Hello together, I ve tried to utilize the new visual calculations to calculate running sums (cumulative percentage sales per customers as running totals). Anyhow, I have the problem that the ...
BenediktW
Advocate I
2 years ago
Finally I found a solution without runningsum but with visual calc, which is working properly:
FORMAT(SUMX( WINDOW(1, ABS, 0 ,REL, ALLSELECTED([Customer, ], [Sales]), ORDERBY([Sales], DESC
)), [Share total Sales]) , "Percent")
AnneKeli
1 year agoRegular Visitor
FINALLY!! THANK YOU!!! I have been searching for HOURS for this solution. I cannot believe it's this complex to change the sort order. THANK YOU, THANK YOU, THANK YOU
- jeroenterheerdt1 year ago
Microsoft Employee
We want to change this and are working through options here. What would you like to have seen?
- Lajouac1 year ago
Advocate I
Hi jeroenterheerdt !
I am very happy to have found this solution !
I would have imagined an ORDERBY parameter inside the running sum function, in able to choose the column to use to order the running sum.
Thanks for working on this !- jeroenterheerdt1 year ago
Microsoft Employee
cool, because that's exactly what I was thinking 🙂