Forum Discussion
4month rolling total
- Anonymous3 years ago
HI I add an index column , then calculate it in below formular. then you can delete index column
= Table.AddColumn(#"Added Index", "Custom", each List.Sum(Table.SelectRows(#"Added Index",(a)=>a[Index]<=[Index]+3 and a[Index]>=[Index] and a[Clients]=[Clients])[Value]))
HI I add an index column , then calculate it in below formular. then you can delete index column
= Table.AddColumn(#"Added Index", "Custom", each List.Sum(Table.SelectRows(#"Added Index",(a)=>a[Index]<=[Index]+3 and a[Index]>=[Index] and a[Clients]=[Clients])[Value]))
- vanessacalalang3 years agoFrequent Visitor
Hi Anonymous ,
I tried this solution and it worked. Although when I put it in matrix and used the "Custom" value that was created from this formula, the Row Subtotal is not correct. Is there a way to reflect the correct Row Subtotal? Thanks!
Cheers,
Vanessa- vanessacalalang3 years agoFrequent Visitor
Hi Youngli
Please disregard my innocence. I got it. Thank you so much for your help.
Cheers,
Vanessa