Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Generate ID

Yury_Brunt
7 - Meteor

Hello,

 

I'm looking for a solution generate an ID. As displayed in the example below.

The grouping must be based on a number of records or a time periode, both fixed and random.

 

So i have created a workflow to generate the basic data. It is just the ID i'm looking for.

 

Thanks,

 

 22-Mar-18 10-28-28.png

22-Mar-18 10-17-05.png

 

4 REPLIES 4
BenMoss
ACE Emeritus
ACE Emeritus

I'm not sure I follow exactly what you are looking for here?

Could you be clear with what the data looks like that you want to generate an ID for, if you can post sample data as a file even better!

 

And then what the resulting data would look like with the new ID field.

 

Ben

Yury_Brunt
7 - Meteor

Hi Ben,

 

Thank you for your reply.

Please find attached an example of generated data.

 

What I need for test purposes is an extra column added to this data set. The column should have an ID/sting.

For example: the first 8 records will have ID_1, the next 8 ID_2, the next 8 ID_3, and so on.

 

If it is possible to make this random that would be even better, something like: first 8 records will have ID_1, the next 6 ID_2, the next 9 ID_3, and so on.

 

The ultimate solution would be to create the ID's based on a random time period between let say 6 to 8 hours.

 

I hope this is a better explanation.

 

Thanks,

Yury

BenMoss
ACE Emeritus
ACE Emeritus

An even grouping is definitely possible and I have attached the logic to achieve that here.

The random increase is a bit more complex and i'll have to have a think about it.


Ben

Yury_Brunt
7 - Meteor

Thank you @BenMoss.

I will accept the solution, but if you figured out a way to do this dynamic that would be great!

 

Regards,

Yury

 

Labels