Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi everyone
I have a cumulative sum issue that I can not fathom.
See the image of my page, I have pasted the equations in to a text box so that they can be seen. I created a cumulative sum for my 2019 invoice values and on the right you can see the table and it works sweet as a nut.
I then copied that and created a 2018 version so I can do a line chart comparision by month for invoicing. And it does not work. The two sets of equations used look exactly the same to me.
Just a note the year filter eqtn was my way of forcing a financial year April to March. Works for 2019 so seems legit.
I added a base Invoice total sum in tot h 2018 table and that is working correctly. Any suggestions?
(I have seen the "sameperiodlastyear" command, but have not tried it here yet, but will do next time)
try
Cummalative ytd = TOTALYTD(sum(Sales[Sales Amount]),filter(all(Sales[Sales Date]),Sales[Sales Date]<=maxx('Date',('Date'[Date Filer]))),"3/31")
Cummalative lytd = TOTALYTD(sum(Sales[Sales Amount]),filter(all(Sales[Sales Date]),Sales[Sales Date]<=maxx('Date',DATEADD('Date'[Date Filer],-1,YEAR))),"3/31")
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.
My Recent Blog - https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601
This does not work......
Does it need a slicer to select the year?
The measure you have suggested are with the titles as you wrote them. They do not accumulate the totals?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 37 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |