ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

MTD/YTD Calculation

hannaaxelsson00
5 - Atom

Hi! I need some help on a current workflow. I need to add a new column in the workflow to calculate and show Month to Date (MTD) and Year to Date (YTD) actuals. Depending on what period we are in, the MTD actuals should calculate "YTD Current Period" - "YTD Previous Period". If it's P11, it should calculate the data from P11-P10, if it's P12, P12-P11, etc. (see excel attachment).

 

I have attached a screenshot of our period/month mapping as well, since we start our fiscal year in October. 

The reporting period is = DateTimeMonth(DateTimeToday()) and the purpose of the mapping file is to identify the current month and previous month. 

 

Solved: YTD - Calculate YTD Amount based on month name - Alteryx Community I tried to use this YTD calculation and adjust it for my data but since "Name" = YTD + [Period], not a month, I am not sure how this formula would help my case. 

 

Does anyone have a solution or workflow to calculate MTD and YTD for cells depending on the headers name?

2 REPLIES 2
Raj
16 - Nebula

Can you please add a column of expected output with question.

hannaaxelsson00
5 - Atom

Hi! The expected output is included in the excel sheet, header name is "MTD actuals" and "YTD actuals". 

Labels
Top Solution Authors