Forum Discussion
algoritmia_pbi
3 years agoRegular Visitor
roll up values in column
Hi I have a dataset like the following and would like to have something similar to the third column Date Sales Column I need: Sales rollup March 1 ...
- 3 years ago
you can try this
Column = sumx(FILTER('Table','Table'[date]<=EARLIER('Table'[date])&&year('Table'[date])=YEAR(EARLIER('Table'[date]))&&month('Table'[date])=month(EARLIER('Table'[date]))),'Table'[sales]) - 3 years ago
pls try this
Measure = sumx(FILTER(ALL('Table'),'Table'[date]<=max('Table'[date])&&YEAR('Table'[date])=YEAR(MAX('Table'[date]))&&MONTH('Table'[date])=MONTH(MAX('Table'[date]))),'Table'[Sales2])pls see the attachment below
ryan_mayu
3 years agoSuper User
are you creating a meausre? I created a column .
algoritmia_pbi
3 years agoRegular Visitor
Yes ryan_mayu it's a measure, sorry if I didn't mentioned it
- ryan_mayu3 years agoSuper User
pls try this
Measure = sumx(FILTER(ALL('Table'),'Table'[date]<=max('Table'[date])&&YEAR('Table'[date])=YEAR(MAX('Table'[date]))&&MONTH('Table'[date])=MONTH(MAX('Table'[date]))),'Table'[Sales2])pls see the attachment below