We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to populate rows for one column

vickymorris7
5 - Atom

I have a database where the project name needs to be repeated per person. Below is a snapshot of the initial data versus want I would like it to be. I tried the multi row formula however it just wouldn't work.

 

This is the formula used - IF Is empty([Project]) AND Contains ([Row-1:Project],[project]) THEN [project] elseif !is empty([Row-1:Name]) then [Row-1:Project] else [Project] endif

 

ProjectDateNameDuration
1234   
 02/23/2023ABC2.00
 02/23/2023DEF3.00
   5.00
Total 123  5.00
567   
    
 02/23/2023GHI1.00
 02/23/2023ABC2.00
 02/23/2023ESD3.00
 02/23/2023WAS4.00
Total 567  10.00

 

to this

 

ProjectDateNameDuration
1234   
123402/23/2023ABC2.00
123402/23/2023DEF3.00
   5.00
Total 123  5.00
567   
    
56702/23/2023GHI1.00
56702/23/2023ABC2.00
56702/23/2023ESD3.00
56702/23/2023WAS4.00
Total 567  10.00
2 REPLIES 2
chuckleswk
11 - Bolide

This is a roundabout way to get to what you want. Because you don't know how many rows are in-between the [Project] and the next [Date] it's hard to do a multi-row with a lookback.

 

chukleswk_0-1687447837217.png

 

chuckleswk
11 - Bolide

I did some re-work on this because without knowing how many projects/rows you have you could end up with a rather large number of appends causing your job to run longer than it needs to or error out. This new flow will only add the project to the correct rows:

 

chukleswk_0-1687449208565.png

 

Labels
Top Solution Authors