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

Alteryx Designer Desktop Discussions

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

Multirow Formula: How do I fill down referring another column?

HW1
9 - Comet

I want to fill down a new column with repeated values till the anchor column changes and then the same is repeated.

So I used the multi-row tool to fill down however I am not getting the formula quite right

 

e.g. 

 

Customer NumberNameSite NameAddressCityState
1,011.00JRT Alexandria  - N2JRT Alexandria 2E/46-62 Maddox StreetAlexandriaN2
1,011.00John R Turk AlexandriaJohn R Turk Alexandria2E/46-62 Maddox StreetAlexandriaNSW5
1,011.002JRT Artarmon  - N2JRT Artarmon 77 Reserve RoadArtarmonN2
1011.002John R Turk ArtarmonJohn R Turk Artarmon77 Reserve RoadArtarmonNSW2

 

 

Expected to repeat Name column till Customer Number changes:

 

Customer NumberNameSite NameAddressCityStateNew Field
1011.00JRT Alexandria  - N2JRT Alexandria 2E/46-62 Maddox StreetAlexandriaN2JRT Alexandria  - N2
1011.00John R Turk AlexandriaJohn R Turk Alexandria2E/46-62 Maddox StreetAlexandriaNSW5JRT Alexandria  - N2
1011.002JRT Artarmon  - N2JRT Artarmon 77 Reserve RoadArtarmonN2JRT Artarmon  - N2
1011.002John R Turk ArtarmonJohn R Turk Artarmon77 Reserve RoadArtarmonNSW2JRT Artarmon  - N2

 

 

I used this formula:

 

IF [Customer Number] = [Row+1:Customer Number]
THEN [Row+1:Name] = [Name]
ELSE [Name]
ENDIF

 

However I am getting:

 

Customer NumberNameSite NameAddressCityStateNew Field
1011.001JRT Alexandria  - N2JRT Alexandria 2E/46-62 Maddox StreetAlexandriaN20
1011.001John R Turk AlexandriaJohn R Turk Alexandria2E/46-62 Maddox StreetAlexandriaNSW5John R Turk Alexandria
1011.002JRT Artarmon  - N2JRT Artarmon 77 Reserve RoadArtarmonN20
1011.002John R Turk ArtarmonJohn R Turk Artarmon77 Reserve RoadArtarmonNSW2John R Turk Artarmon

 

Please find attached example workflow

 

Help with the correct formula would be greatly appreciated.

 

Thanks

 

1 REPLY 1
sparksun
11 - Bolide

change the formula to:

 

IF [Customer Number] = [Row-1:Customer Number]
THEN [Row-1:Name]
ELSE [Name]
ENDIF

 

Then you will get what you want:

sparksun_0-1627438048233.png

 

Labels
Top Solution Authors