Free Trial

Alteryx Designer Desktop Discussions

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

Multi-Row Formula help

dataviolet
7 - Meteor

Hi all! I'm trying to build a multi-row formula to repeat some labels, but i'm running into an issue where the number of times a label should repeat is not consistent--sometimes it is 5 times, sometimes it is 6 times. Here is my data:

What I haveWhat I want
Company1Company1
F4Company1
F5Company1
F6Company1
F7Company1
Company2Company2
F9Company2
F10Company2
F11Company2
F12Company2
Company3Company3
F14Company3
F15Company3
F16Company3
F17Company3
Company4Company4
F19Company4
F20Company4
F21Company4
F22Company4
F23Company4
F24Company4

 

How do I change my multi-row formula in order to transform my data on the left to the data on the right?

4 REPLIES 4
atcodedog05
22 - Nova
22 - Nova

Hi @dataviolet 

 

Formula would be 

IF left([field],1)="F" then [row-1:output] else [field] endif

 

Lets me prep a example🙂

atcodedog05
22 - Nova
22 - Nova

Hi @dataviolet 

 

Here is a workflow for the task.

Output:

atcodedog05_0-1607018837173.png

Formula:

IF Left([Name],1)="F" THEN [Row-1:Output] ELSE [Name] ENDIF

Workflow:

atcodedog05_1-1607018886496.png

 

Hope this helps 🙂 Feel to ask if you have any questions


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

dataviolet
7 - Meteor

awesome, thank you so much! I was overcomplicating this in my head.

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @dataviolet 

 

Cheers and Happy Analyzing 😀

 

Feel free to reach out if you face any issues 🙂

Labels
Top Solution Authors