Forum Discussion
midoban
3 years agoNew Member
Cumulative Spend
Hi I need to have a cumulative spend column in power bi but using different filters Can someone help me on this one?
midoban
3 years agoNew Member
hi amit,
here's a sample data in excel. same thing i want to show in power bi
amitchandak
3 years agoSuper User
midoban , with help from window function
Cumm Based on supplier = CALCULATE([Spend], Window(1,ABS,0,REL, ALLSELECTED('Table'[supplier]),ORDERBY('Table'[Brand],asc)))
or
Cumm Based on supplier = CALCULATE([Spend], Window(1,ABS,0,REL, ALLSELECTED('Table'[supplier],'Table'[Brand]),ORDERBY('Table'[Brand],asc),,partitionBy('Table'[Brand])))