Alteryx Designer Desktop Discussions

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

Creating an indicator based on the blanks in the columns

sriniprad08
11 - Bolide

Hi Team,

 

I have a situation where i need to create an indicator based on the blanks. For e.g below if i have one blank consecutive then the indicator should be 1 year, if two blanks consecutive then 2 years etc.. i have marked in yellow.

 

Please let me know how to go about this 

 

thanks,

Sri

ID20162017201820192020indicator
11133333333 1 year
11233333333  2 year
222 222   3 year
33333    4 year
4443333333333Regular
555 33 3333Regular
10 REPLIES 10
sriniprad08
11 - Bolide

sriniprad08_0-1606317762514.png

 

 

PhilipMannering
16 - Nebula
16 - Nebula

Hi @sriniprad08 

 

See one potential solution below,

PhilipMannering_0-1606318095169.png

Though I'm not sure what defines the indicator to be Regular for IDs 444 and 555...?

 

Thanks,

Phil

 

PhilipMannering
16 - Nebula
16 - Nebula

Solved for having 'Regular' where 2020 is not null. See attached.

sriniprad08
11 - Bolide

Hi @PhilipMannering 

 

Thank you for the quick reply. Really appreciate that. However i have edited my question not sure if you have seen that. the criteria is "regular" because there are no blanks.

 

ID20162017201820192020indicator
11133333333 1 year
11233333333  2 year
222 222   3 year
33333    4 year
4443333333333Regular
555 33 3333Regular
PhilipMannering
16 - Nebula
16 - Nebula

Hey @sriniprad08 Check my most recent reply (apart from this one..) also. Should have solved for this.

atcodedog05
22 - Nova
22 - Nova

Hi @sriniprad08 

 

Here is a workflow for the task.

Output:

atcodedog05_0-1606319198947.png

Workflow:

atcodedog05_1-1606319213115.png

 

Hope this helps 🙂 Feel to ask if you have any questions


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

atcodedog05
22 - Nova
22 - Nova

Guess i got stalled and ended being late 😅

sriniprad08
11 - Bolide

hi @atcodedog05 

 

Thank you so much mate 🙂

 

Cheers,

Sri

sriniprad08
11 - Bolide

Hi @PhilipMannering ,

 

Thank you so much. 🙂

 

Cheers,

Sri

Labels