Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Question on Creating FY Field

ghtill
7 - Meteor

Hello, I am still getting used to Alteryx and could use some help in creating a field called FY. Basically a FY is calculated as:

 

((Summer B (yr), Fall (yr), Spring (yr +1), Summer A (yr+1))

 

Any help would be appreciated or even pointed into the right direction. 

 

Current:

YearSeasonCode
2018SummerA
2018FallB
2019SpringA
2019SummerB
2019FallA
2020SpringA
2020SummerA
2020SummerB

 

Expected:

YearSeasonCodeFY
2018SummerAFY17
2018FallBFY18
2019SpringAFY18
2019SummerBFY19
2019FallAFY19
2020SpringAFY19
2020SummerAFY19
2020SummerBFY20
2 REPLIES 2

Hi @ghtill , this formula should get you what you need. Make sure the year is an integer first. 

 

 if [Code]="B" or [Season] = "Fall" then "FY"+ right(tostring([Year]),2)
elseif [Code]="A" or [Season] = "Summer" then "FY"+
right(tostring([Year]-1),2) else "N/A" endif

 

michelle_mathews_0-1660845807272.png

 

ghtill
7 - Meteor

thanks! @michelle_mathews I only had to add an additional "or" to the elseif statement of [season] = spring incase spring was not a code A

Labels