Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Use of Multi-Row Function

atorres050
5 - Atom

Hi! 

 

I am trying to use the Multi-row function in order to make my data go from the example (1) to example (2) below. I am not exactly sure how to use this function (or if I am even trying to use the right function) in order to make the necessary changes. Thanks!

 

Example (1) - Initial Input

Apple Example.PNG

Example (2) - Final Output

Apple Example 2.PNG

 

 

 

 

2 REPLIES 2
jdunkerley79
ACE Emeritus
ACE Emeritus

I think a Multi Row formula with an expression like:

IIF(ToNumber([Input],1),
    IIF(ISNULL([Row-1:Header]),[Row-1:Input],[Row-1:Header]),
    NULL())

Should do what you need.

 

If the Input is a number then it reads the header from the line above.

 

I have attached a sample to get you started

atorres050
5 - Atom

Thank you so much!

Labels
Top Solution Authors