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

Assigning unique ID to each date that are assigned to an ID.

stj1120
8 - Asteroid

Hi all,

 

In the dataset there is a unique ID column and each ID has two date fields. I tried to generate the dates that are between these two dates for each ID. For each date I'm trying to generate unique number to it. I'm able to get the unique number to each date right from the start date to end date of each ID. But, it starts with 0,1,2,3. My result should start with 1,2,3 etc. 

 

You can see it in the below screenshot. 

 

Capture.PNG

 

Please check the attached workflow and help me with the right logic.

 

Thank you.

 

Best regards,

teja.

 

 

 

1 REPLY 1
alexnajm
18 - Pollux
18 - Pollux

if [ID]= [Row-1:ID] then [Row-1:New Field]+1 else [Row-1:New Field]+1
endif

Labels
Top Solution Authors