Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Iterative macro - alternative solution

Rico_Widmayer
7 - Meteor

Hi community 😊

 

I am very curious if somebody knows a better solution to my current problem:

 

May table looks like this: First column contains an ID which occurs multiple times and second column contains the values.

Record IDValue
1100
1122
199
1134
290
285
235
222
387
3345
332
345
421
454
433
445
599
5190
5345
534

 

What I like to have is a different structure of this table. I want to have all IDs next to each other (hope thats the correct term). So that it looks like this. There is probably a transform tool for that, but I just do not get it ? 

I implemented a solution via Interative macro, but as the RecordIDs are more than 4,000 the performance is terrible. 

 

I would highly appreciate any kind of help. I am probably just over-complicating things...

 

Thank you!!!

 

Record IDValueRecord ID2Value2Record ID3Value3Record ID4Value4Record ID5Value5
1100290387421599
112228533454545190
1992353324335345
1134222345445534
4 REPLIES 4
Luke_C
17 - Castor
17 - Castor

Hi @Rico_Widmayer 

 

The make columns tool can get you this presentation, it looks like it can only support 1000 record IDs, though. 

Luke_C_0-1665583728869.png

 

 

DataNath
17 - Castor
17 - Castor

Would imagine this is crazy overboard but managed to put something together that tackles this:

 

DataNath_0-1665583952857.png

Felipe_Ribeir0
16 - Nebula

Hi @Rico_Widmayer 

 

Another way of doing this:

 

Felipe_Ribeir0_2-1665584529032.png

 

 

Rico_Widmayer
7 - Meteor

Thank a lot to all! All solutions worked for my purpose 🙂 

Labels