Free Trial

Alteryx Designer Desktop Discussions

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

filling in missing months

xariet
8 - Asteroid

Hi All

Thank you for your help

 

I have the following input

SchoolIDSchoolNameNumberStudentsNumberTeachersDateReportedDateSchoolRenamed
1SantaClaus50520160501 
1SantaClaus75720161001 
1SantaClaus100720161101 
1SantaClaus120920171101 
1SantaClaus100920180401 
1SaintNicholas10082018070120180701
1SaintNicholas110820180801 
1SaintNicholas120720180901 

 

Basically, we have number of students and teachers reported at the beginning of each month. But if the numbers didn't change then the reported date is missing.

I need to bring in all missing months with the data from previous entry. The desired output is below, I have put in bold all rows which have to be added. I have also attached my workflow, I used too to generate new rows, but not sure why it doesn't work..

 

SchoolIDSchoolNameNumberStudentsNumberTeachersDateReportedDateSchoolRenamed
1SantaClaus5052016050120160501
1SantaClaus5052016060120160501
1SantaClaus5052016070120160501
1SantaClaus5052016080120160501
1SantaClaus5052016090120160501
1SantaClaus7572016100120160501
1SantaClaus10072016110120160501
1SantaClaus10072016120120160501
1SantaClaus10072017010120160501
1SantaClaus10072017020120160501
1SantaClaus10072017030120160501
1SantaClaus10072017040120160501
1SantaClaus10072017050120160501
1SantaClaus10072017060120160501
1SantaClaus10072017070120160501
1SantaClaus10072017080120160501
1SantaClaus10072017090120160501
1SantaClaus10072017100120160501
1SantaClaus12092017110120160501
1SantaClaus12092017120120160501
1SantaClaus12092018010120160501
1SantaClaus12092018020120160501
1SantaClaus12092018030120160501
1SantaClaus10092018040120160501
1SantaClaus10092018050120160501
1SantaClaus10092018060120160501
1SaintNicholas10082018070120180701
1SaintNicholas11082018080120180701
1SaintNicholas12072018090120180701
2KrisKringle11062018100120181001
7 REPLIES 7
grazitti_sapna
17 - Castor

Hi @xariet . Please find below the workflow to achieve your desired output. Let me know if it helped.

grazitti_sapna_0-1667193054780.png

 

Sapna Gupta
binuacs
21 - Polaris

@xariet One way of doing this

 

binuacs_0-1667194358040.png

 

binuacs
21 - Polaris

@xariet Updated your workflow and attached it here.

 

binuacs_0-1667195508181.png

 

xariet
8 - Asteroid

thank you @binuacs , but I think you have attached my original workflow without changes...

xariet
8 - Asteroid

thank you @grazitti_sapna , I used part of your workflow for my solution

binuacs
21 - Polaris

@xariet sorry for that, attaching the workflow again

flying008
15 - Aurora

Hi,@xariet 

 

Another way to get your want output, and it fulfill your above post picture. (please see the last row.)

 

录制_2022_11_01_10_47_50_651.gif

 

Input     Output     
SchoolIDSchoolNameNumberStudentsNumberTeachersDateReported SchoolIDSchoolNameNumberStudentsNumberTeachersDateReportedDateSchoolRenamed
1SantaClaus50520160501 1SantaClaus5052016050120160501
1SantaClaus75720161001 1SantaClaus5052016060120160501
1SantaClaus100720161101 1SantaClaus5052016070120160501
1SantaClaus120920171101 1SantaClaus5052016080120160501
1SantaClaus100920180401 1SantaClaus5052016090120160501
1SaintNicholas100820180701 1SantaClaus7572016100120160501
1SaintNicholas110820180801 1SantaClaus10072016110120160501
1SaintNicholas120720180901 1SantaClaus10072016120120160501
2KrisKringle110620181001 1SantaClaus10072017010120160501
      1SantaClaus10072017020120160501
      1SantaClaus10072017030120160501
      1SantaClaus10072017040120160501
      1SantaClaus10072017050120160501
      1SantaClaus10072017060120160501
      1SantaClaus10072017070120160501
      1SantaClaus10072017080120160501
      1SantaClaus10072017090120160501
      1SantaClaus10072017100120160501
      1SantaClaus12092017110120160501
      1SantaClaus12092017120120160501
      1SantaClaus12092018010120160501
      1SantaClaus12092018020120160501
      1SantaClaus12092018030120160501
      1SantaClaus10092018040120160501
      1SantaClaus10092018050120160501
      1SantaClaus10092018060120160501
      1SaintNicholas10082018070120180701
      1SaintNicholas11082018080120180701
      1SaintNicholas12072018090120180701
      2KrisKringle11062018100120181001
Labels
Top Solution Authors