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

Alteryx - Random column filler

Lollino
5 - Atom

Hello everyone!

I'm new to this community but very happy to join. For a project on excel I want to automate the division of jobs among different teams. I have a column that labels each task as "daily" and I would like Alteryx to create a new column which counts the number of "daily" in the sheet and basically split the tasks among 8 teams. The final output would be another column in which of the tasks are 80, the first 10 raws would contain "group1", the next 10 "group 2" and so on.

I'm still new to Alteryx so thanks a lot for the help!

7 REPLIES 7
mbarone
16 - Nebula
16 - Nebula

Do you have a mock up of incoming data and the results you'd want?  Might help to see an actual example.

Lollino
5 - Atom

For example, the first print has to turn into the second one

Lollino_0-1620042180160.png

Lollino_1-1620042230218.png

I hope that in this way is clearer but basically all the tasks marked as daily have to be assigned proportionally (not perfectly tough) to the 8 teams.

 

mbarone
16 - Nebula
16 - Nebula

Without knowing anything about your dataset other than what you provided, I would connect a formula tool, do a Rand() function on the "status", then connect a sort tool and sort on the random field (doesn't matter if it's ascending or descending since it's random).  This will provide a truly random ordering of your data.  Then connect a tile tool with an "equal records" method where the number of tiles = 8.   The resulting Tile_Num field will be your Team Numbers that each record is assigned to.

Pingu
10 - Fireball

Hello @Lollino , for me it is not fully clear what you need. But what about this?

mbarone
16 - Nebula
16 - Nebula

forgot a simple screenshot:
2021-05-03 08_21_55-Alteryx Designer x64 - New Workflow3_.png

Pingu
10 - Fireball

Clearly I should leave advice to the masters. Yet to learn about the Tile tool. That saves a lot of hassle.

mbarone
16 - Nebula
16 - Nebula

@Pingu -It's always a good thing to offer a solution!  There's usually many ways to accomplish the same goal in Atleryx .  That's how you learn - if you had not posted, you wouldn't have seen my response.  The Tile Tool is a great little lesser-known tool that doesn't get enough love.  It can do a whole lot!
Cheers!

Labels