Free Trial

Alteryx Designer Desktop Discussions

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

Customized Value Set Dynamically

ankitgupta
7 - Meteor

Hi All, I am trying to solve one scenario and seeking help...

 

I have a data set like below, 

 

NameValue
2017101
2017112
2017123
2018014
2018025
2018036

 

Output that I am looking for is below, a new column is required which sets 201710 as 201710_Y1_M1, 201711_Y2_M2 (2017 is a special case as my product launched in this year in month 10 so I want to call it as Y1_M1. Rest will go from M1 to M12 each year

 

NameValueName_New
2017101201710_Y1_M1
2017112201711_Y1_M2
2017123201712_Y1_M3
2018014201801_Y2_M1
2018025201802_Y2_M2
2018036201803_Y2_M3
2 REPLIES 2
Thableaus
17 - Castor
17 - Castor

Hi @ankitgupta 

 

Using Tile Tool you have a simple solution:

TileToolSol.PNG

 

- Use Formula Tool to get the year

- Use Tile Tool to get a sequenced order

- Use Formula Tool again to set up your field

 

WF attached.

 

Cheers,

ankitgupta
7 - Meteor

Thanks a ton @Thableaus 

 

-Ankit

Labels
Top Solution Authors