YTD Formulas

Solved!
ian-martin
Level 1
YTD Formulas

I am having issues trying to create a column that outputs the year-to-date sum of another column. I am not sure if there is a formula that can be applied in the prepare recipe. Has anyone been able to replicate a YTD Column before?

0 Kudos
1 Solution
Turribeach

For cumulative sums you can use the Window Recipe:

https://knowledge.dataiku.com/latest/data-preparation/visual-recipes/tutorial-window-recipe-deep-div...

For YTD you can set the Partition to a column with the Year and Order to your Date column.

View solution in original post

1 Reply
Turribeach

For cumulative sums you can use the Window Recipe:

https://knowledge.dataiku.com/latest/data-preparation/visual-recipes/tutorial-window-recipe-deep-div...

For YTD you can set the Partition to a column with the Year and Order to your Date column.