Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to transform a database to have missing dates in the new data

Melanie1111
5 - Atom

Hi there, 

 

Hope you're doing well ! 

As a new user of Alteryx, I tried to transform my database. 

My wish is to convert the sample below. I've tried with

- the generate row tool, but didn't seem to work. 

- with m

Melanie1111_0-1628009626450.png

 

Any ideas ? 

 

Many thanks for your help ! 

Mélanie

 

6 REPLIES 6
atcodedog05
22 - Nova
22 - Nova

Hi @Melanie1111 

 

Append tool seems to be the option for this. Can you provide this data in excel so that i can prep up a workflow.

Melanie1111
5 - Atom

Hi, 

 

Please find attached the sample !

 

Many thanks for your help, I will try with the append tool too ! 

Mélanie

atcodedog05
22 - Nova
22 - Nova

Hi @Melanie1111 

 

Here is how you can do it.

 

Workflow:

atcodedog05_0-1628010214436.png

1. 1st summarize to get all unique accounts.

2. 2nd summarize to get all unique dates.

3. Using append tool to get combinations of account and dates.

4. Using join multiple to do an outer join.

5. Using formula to replace nulls with 0's

 

Hope this helps : )

Melanie1111
5 - Atom

Hi, 

 

Really simple and fast, many thanks for your help ! 

 

Mélanie

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @Melanie1111 

Cheers and have a nice day!

Maskell_Rascal
13 - Pulsar

@Melanie1111 - Depending on the gaps in your dates, you may want to use a Generate Rows approach. 

 

Input:

Maskell_Rascal_1-1628011988510.png

 

Workflow/Output:

Maskell_Rascal_2-1628012024901.png

 

This method would ensure that if there was no sales for any ID on a specific date, that date would still be included in the output. 

 

See attached workflow. 

 

Cheers!

Phil

Labels
Top Solution Authors