Alteryx Designer Desktop Discussions

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

How to add year based on particular date

Anuj_1196
5 - Atom
ValDate30/08/2023 
 relative periodWant
LFY030/06/2023
FY+1130/06/2024
FY+2230/06/2025
FY+3330/06/2026
FY+4430/06/2027
FY+5530/06/2028
5YR CAGR/Average 5YR630/06/2199
TY730/06/2200
4 REPLIES 4
ShankerV
17 - Castor

Hi @Anuj_1196 

 

Please make use of the datetimeadd() function to get the desired output.

 

Many thanks

Shanker V

Anuj_1196
5 - Atom

Thanks for your time. Unfortunately, I couldn't achieve desire output with datetimeadd().

 

ShankerV
17 - Castor

Hi @Anuj_1196 

 

One way of doing this.

 

ShankerV_0-1683610028904.png

 

datetimeformat(DateTimeAdd(datetimeparse([ValDate],"%d/%m/%y"),[Relative Period],"year"),"%d/%m/%Y")

 

ShankerV_1-1683610050987.png

 

 

Many thanks

Shanker V

Anuj_1196
5 - Atom

Thanks for the help. I tried using Multi Row Formula and it worked.

 

Labels