Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 500 500
March 3 200 700
March 5 300 1000
March 18 100 1100
Apri 3 250 250 --> it starts over in a new month
Apr 7 300 550
Thanks
Solved! Go to Solution.
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])
Proud to be a Super 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
Proud to be a Super User!
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])
Proud to be a Super User!
Hey thank you, can this be done in a table visual? I tried but got me an error
are you creating a meausre? I created a column .
Proud to be a Super 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
Proud to be a Super User!
User | Count |
---|---|
75 | |
74 | |
44 | |
31 | |
27 |
User | Count |
---|---|
99 | |
89 | |
52 | |
48 | |
46 |