Forum Discussion
Total year-to-date calculation
Hi guys,
I'm looking for a way to create a measure that calculated a "running" YTD value.
I've got a "date" field with fiscal years (18/19, 19/20, 20/21) and a "sales". I have created a 18/19 YTD sales by using the following command:
6 Replies
- Greg_Deckler
Community Champion
Anonymous There is a Running Total quick measure. Or, you might find these helpful:
You may find this helpful - https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000
Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008- AnonymousNot applicable
Thank you for the reply.
However, offhand the TOTALYTD is not working.
I've set the end date to "30/6". However, for instance for the fiscal year 19/20 starting 1/7 2019 and ending 30/6 2020, it still just shows the entire total, including the data from june....
- Greg_Deckler
Community Champion
Anonymous As in the TOTALYTD function or the equivalent non TI DAX code?
- AnonymousNot applicable
I'm using the TOTALYTD function, but the outcome of the function as not as expected (desired).
- Greg_Deckler
Community Champion
Anonymous That's generally the case. TI functions are the worst. That's why I linked you to the article where I created equivalents for all of them.
- AnonymousNot applicable
Hi Anonymous ,
Hard to imagine the data, can you show some sample data and expected result?
Best Regards,
Jay