We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

creating a decades column

ALTSkelly
8 - Asteroid

I'm unsure how to create a new column with the corresponding decade 

 

YEAR

1920

1998

1988

1995

2002

2002

2013

2021

 

I want to group them in their decades but I want the two 20's decades separated as 20's 1 and 20's 2. 

3 REPLIES 3
IraWatt
17 - Castor
17 - Castor

Hey @ALTSkelly,

This should work:

IraWatt_0-1652393755569.png

 

The formula gets the 3rd digit and appends it to  "0's " then adds the left most digit.

HTH,

Ira

 

Qiu
21 - Polaris
21 - Polaris

@ALTSkelly 
I feel it is more something like this?
I use a Multirow tool to check if there only one ore more same decades.

0513-ALTSkelly.PNG

Ben_H
11 - Bolide

Hi @ALTSkelly

 

By separating the two 20's by 1 and 2 I take it you want to differentiate 1900s vs 2000s?

 

If so why not just have the decade include the 19 or 20? i.e. -

 

Ben_H_1-1652437455088.png

Ben_H_2-1652437464309.png

 

Regards,

 

Ben

Labels
Top Solution Authors