Free Trial

Alteryx Designer Desktop Discussions

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

Potential Macro Question

szwgl2022
7 - Meteor

Hello,

 

I have a data shown below. Say there are 6 items in total (some have group# and some don't) and I want to assign them in 3 groups and each group has 2 items. How do I assign group# to the remaining items in the order of group# (1,2,3...) and at the same time in the priority of item ID (assign 2,4,5...)?

The data can be much larger and I may need to assign them to like 20 groups each has 50 items.

szwgl2022_1-1657237520188.png

 

 

4 REPLIES 4
IraWatt
17 - Castor
17 - Castor

Hey @szwgl2022,

Here is an iterative macro set up:

IraWatt_0-1657238871524.png

IraWatt_1-1657238947426.png

 

There is some great videos on the community if you want to better understand macros Interactive Lessons - Alteryx Community.

Any questions or issues please ask :)
HTH!
Ira

szwgl2022
7 - Meteor

Thanks a lot! This is exactly what I need! 

szwgl2022
7 - Meteor

One clarification is that the "Number of Groups" you added in the Macro interface actually means the number of items/members in each group not the total group numbers, right?

IraWatt
17 - Castor
17 - Castor

@szwgl2022 Ah yes it means the number of items, badly labelled from me there 😅.  

Labels
Top Solution Authors