Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Missing dates need completing

Sammy22
8 - Asteroid

I have a large dataset for previous 2 years of data as below which has daily data but some days are missing. I need a row for every date even if it is missing (weekends etc). so below i would end up with 2/2/2021 with the price the same as the 1st. How can i add in the missing dates and make the price the same as the previous day?

 

DateCodePrice
1/2/2021a2
1/2/2021b3
1/2/2021c5
3/2/2021a4
3/2/2021b4
3/2/2021c4
1 REPLY 1
atcodedog05
22 - Nova
22 - Nova

Hi @Sammy22 

 

Here is how you can do it.

Workflow:

atcodedog05_0-1630080571593.png

 

1. Using formula tool to convert to Alteryx date format. If your date is already in format you can skip this step.

2. Using sort tool sort ascending on date and code.

3. Using multi-row formula group on code getting next date.

4. Using generate row tool to generate missing dates.

5. Using sort tool sort ascending on date and code.

 

Hope this helps : )

Labels