Forum Discussion
Need help with cumulative total without date
- 2 years ago
output :
measure :
Measure = CALCULATE( [spend], WINDOW( 0,ABS, 0,REL, ALLSELECTED(Spend[Supplier Name]), ORDERBY([spend] ,DESC) ) )If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution ✅
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠 - 2 years ago
forgot to mention :
create a measure
spend = sum(table_name[spend])
If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution ✅
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠 - 2 years ago
try this one :
spend = SUM(Spend[Supplier Spend])rnk =RANKX(ALLSELECTED('Spend'[Supplier Name]), [Spend], , DESC, Dense)Running Total =VAR CurrentRank = [rnk]RETURNCALCULATE([spend],FILTER(ALLSELECTED(Spend[Supplier Name]),[rnk] <= CurrentRank))let me know if this works for you .
output :
measure :
Measure =
CALCULATE(
[spend],
WINDOW(
0,ABS,
0,REL,
ALLSELECTED(Spend[Supplier Name]),
ORDERBY([spend] ,DESC)
)
)
If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution ✅
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠
- pdory2 years agoFrequent Visitor
Thanks for the reply. Not sure what I did wrong but I'm getting this error. It does not let me refer to the Spend table.
- Daniel291952 years ago
Community Champion
forgot to mention :
create a measure
spend = sum(table_name[spend])
If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution ✅
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠- Daniel291952 years ago
Community Champion
if it works for you , kindly mark it as a an accepted solution ✅.
It might help someone else to find the solution more easily. Thanks for spreading the good vibes! 🤠