Forum Discussion
Anonymous
5 years agoNot applicable
Runing total by row
Hi, i have seen this asked a few times but i have been unable to use this for my task I have a column for Wind direction and one for timestamp as well as various other columns that are filtering ...
Samarth_18
5 years agoCommunity Champion
Hi Anonymous
You can create a measure with below code:-
cumulative_total=
CALCULATE (
SUM ( 'table'[<values column>] ),
FILTER ( ALL ( 'table'[date] ), 'table'[date] <= MAX ( 'table'[date] ) )
)Thanks,
Samarth
Anonymous
5 years agoNot applicable
i tried that as it does appear to be a popular solution but it doesnt seem to work for me.
ive uploaded a dummy power BI file here:
https://1drv.ms/u/s!AqgwstyhNHf8gsphsHZD3rVqVPMtQg?e=PWPRZs
- ryan_mayu5 years agoSuper User
Anonymous
pls try this
Measure = CALCULATE(sum(test[Valid Data]),FILTER(test,'test'[WD (bins)]=max('test'[WD (bins)])&&'test'[Date]<=max('test'[Date])))if you want the total to display the correct value , create another measure
Measure 2 = sumx(test,[Measure])