Free Trial

Alteryx Designer Desktop Discussions

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

Multi- row Formula

mzlee
7 - Meteor

Hello, 

 

I joined different files with a common sheet and I am looking to join everything per type.

 

After joining After joining all the sheets on the left column this is how data looks now, but I need it to look like the left. There are so many sheets and was hoping I can use the multirow formula but I might be setting it up wrong.   

 

 

Capture alteryx.JPG

3 REPLIES 3
CoG
14 - Magnetar

You can create a new column with the Multi-Row Formula Tool called "SortID" with the formula:

IF [Type] = "Type" THEN 0 ELSEIF [Type] = "Unreconciled items" THEN 3 ELSEIF [Type] = "Reconciled items" THEN 7 ELSEIF [Row-1:Type] = "Unreconciled items" THEN 4 ELSEIF [Row-1:Type] = "Reconciled items" THEN 8 ELSEIF IsNull([Type]) || [Type] = "" THEN 12 ELSE [Row-1:SortID] ENDIF

 

Next sort on [SortID] Ascending, and you should get something similar to what you are looking for although some extra cleanup and formatting will be necessary to get rid of extra stuff, but this formula should make doing so quite simple.

Qiu
21 - Polaris
21 - Polaris

@mzlee 
I copied the Formula of @CoG  and it works.
I just have to add some filter to remove the duplicated "Reconciled items" and "Unreconciled items" rows.

1202-mzepeda-A.png1202-mzepeda-B.png

mzlee
7 - Meteor

thank you both! it worked!

Labels
Top Solution Authors