Alteryx Designer Desktop Discussions

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

Please help me append region to company numbers

ck2019
9 - Comet

worHi all

 

Struggling with this one but know it'll be obvious once/if some kind folk can help with this quandry:

 

I have some information presented in this format

 

Entity
123
1314
1231239
1231234
Region A
 
123123231
12131
Region B
 
123123654
13435124
1235463
1231321689
Region C

 

That I need to get into this format

 

EntityRegion
123Region A
12313Region A
123123Region A
234Region A
2352342Region B
2342343Region B
345345Region C
34353254Region C
345433Region C
233542Region C

 

 

Tried generating rows and appending based on record ID position of the region but I just can't quite get there so would be very grateful for some assistance please!

 

Thanks in advance 

CK

2 REPLIES 2
Luke_C
17 - Castor

Hi @ck2019 

 

Here's how I'd do this:

  1. Use a formula tool to isolate the regions into their own field
  2. Add a record ID, reverse sort
  3. Use a multi-row formula to 'fill down' the rest of the records for each region
  4. Sort back and remove the empty and region entity recrods.

Luke_C_0-1647362782569.png

 

ck2019
9 - Comet

Thank you @Luke_C - my hero!

Labels