Free Trial

Alteryx Designer Desktop Discussions

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

Replicate Data for Missing Dates

mfrihart
5 - Atom
DateOrganization HierarchiesPlanning HierarchiesSpreadRateAvgYield
9/30/2024Region1TOTAL LOANS0.03910400.05030750.0894115
9/30/2024Region1TOTAL DEPOSITS0.01950930.05237280.0328635
9/30/2024Region2TOTAL LOANS0.02468890.05108870.0757776
9/30/2024Region2TOTAL DEPOSITS0.02789040.05188050.0239902
12/31/2024Region1TOTAL LOANS0.03635060.04553670.0818873
12/31/2024Region1TOTAL DEPOSITS0.02765960.05743730.0297777
12/31/2024Region2TOTAL LOANS0.02294230.04941400.0723563
12/31/2024Region2TOTAL DEPOSITS0.02315050.04475520.0216047
3/31/2025Region1TOTAL LOANS0.00623190.04455370.0507856
3/31/2025Region1TOTAL DEPOSITS0.02690810.05462940.0277214
3/31/2025Region2TOTAL LOANS-0.00886390.04758730.0387233
3/31/2025Region2TOTAL DEPOSITS0.03272280.05127660.0185538

 

I have data published quarterly that looks like this. I want to create rows for the missing month-end dates that replicates the data from the most recent quarter end for every combination of Organization Hierarchies and Planning Hierarchies. So my output will look like this: 

 

DateOrganization HierarchiesPlanning HierarchiesSpreadRateAvgYield
9/30/2024Region1TOTAL LOANS0.03910400.05030750.0894115
9/30/2024Region1TOTAL DEPOSITS0.01950930.05237280.0328635
9/30/2024Region2TOTAL LOANS0.02468890.05108870.0757776
9/30/2024Region2TOTAL DEPOSITS0.02789040.05188050.0239902
10/31/2024Region1TOTAL LOANS0.03910400.05030750.0894115
10/31/2024Region1TOTAL DEPOSITS0.01950930.05237280.0328635
10/31/2024Region2TOTAL LOANS0.02468890.05108870.0757776
10/31/2024Region2TOTAL DEPOSITS0.02789040.05188050.0239902
11/30/2024Region1TOTAL LOANS0.03910400.05030750.0894115
11/30/2024Region1TOTAL DEPOSITS0.01950930.05237280.0328635
11/30/2024Region2TOTAL LOANS0.02468890.05108870.0757776
11/30/2024Region2TOTAL DEPOSITS0.02789040.05188050.0239902
12/31/2024Region1TOTAL LOANS0.03635060.04553670.0818873
12/31/2024Region1TOTAL DEPOSITS0.02765960.05743730.0297777
12/31/2024Region2TOTAL LOANS0.02294230.04941400.0723563
12/31/2024Region2TOTAL DEPOSITS0.02315050.04475520.0216047
1/31/2025Region1TOTAL LOANS0.03635060.04553670.0818873
1/31/2025Region1TOTAL DEPOSITS0.02765960.05743730.0297777
1/31/2025Region2TOTAL LOANS0.02294230.04941400.0723563
1/31/2025Region2TOTAL DEPOSITS0.02315050.04475520.0216047
2/28/2025Region1TOTAL LOANS0.03635060.04553670.0818873
2/28/2025Region1TOTAL DEPOSITS0.02765960.05743730.0297777
2/28/2025Region2TOTAL LOANS0.02294230.04941400.0723563
2/28/2025Region2TOTAL DEPOSITS0.02315050.04475520.0216047
3/31/2025Region1TOTAL LOANS0.00623190.04455370.0507856
3/31/2025Region1TOTAL DEPOSITS0.02690810.05462940.0277214
3/31/2025Region2TOTAL LOANS-0.00886390.04758730.0387233
3/31/2025Region2TOTAL DEPOSITS0.03272280.05127660.0185538

 

It feels simple but I am struggling to execute. 

3 REPLIES 3
Gunnar-Scheck
5 - Atom

Hi, 

 

I have attached a copy of my workflow that I created to solve this. You'll probably need to adapt it to your own needs. Below is a copy of my results and the workflow as a whole. 

 

In short, what I did was produce a list of dates from the earliest date in the data (9/30/2024) through the end date, which is the current month's date (4/30/2025). From there, I created 4 lines for each end of month and a record ID for each row and month. I combined the existing data to the new full end of month list and from there, used several multi-row formula tools to carry down the existing data to the months that had no data. 

 

Hope this helps!

 

 

flying008
15 - Aurora

Hi, @mfrihart 

 

FYI.

 

IMHO, the requirements for implementing this scenario can be divided into 3 steps:


1- Calculate and fill in all missing months based on the existing date.


2- Count the types based on the existing date and map them to the complete time interval above.


3- Append the original row to the corresponding month and count row.


The advantage of this is that it can be implemented dynamically, no matter how many types or rows there are in each month, even if the number or types of each month is different, no human intervention is required.

 

 

录制_2025_04_24_13_30_12_98.gif

 

DateOrganization HierarchiesPlanning HierarchiesSpreadRateAvgYield
2024-9-30Region1TOTAL LOANS0.0391040.05030750.0894115
2024-9-30Region1TOTAL DEPOSITS0.01950930.05237280.0328635
2024-9-30Region2TOTAL LOANS0.02468890.05108870.0757776
2024-9-30Region2TOTAL DEPOSITS0.02789040.05188050.0239902
2024-10-31Region1TOTAL LOANS0.0391040.05030750.0894115
2024-10-31Region1TOTAL DEPOSITS0.01950930.05237280.0328635
2024-10-31Region2TOTAL LOANS0.02468890.05108870.0757776
2024-10-31Region2TOTAL DEPOSITS0.02789040.05188050.0239902
2024-11-30Region1TOTAL LOANS0.0391040.05030750.0894115
2024-11-30Region1TOTAL DEPOSITS0.01950930.05237280.0328635
2024-11-30Region2TOTAL LOANS0.02468890.05108870.0757776
2024-11-30Region2TOTAL DEPOSITS0.02789040.05188050.0239902
2024-12-31Region1TOTAL LOANS0.03635060.04553670.0818873
2024-12-31Region1TOTAL DEPOSITS0.02765960.05743730.0297777
2024-12-31Region2TOTAL LOANS0.02294230.0494140.0723563
2024-12-31Region2TOTAL DEPOSITS0.02315050.04475520.0216047
2025-1-31Region1TOTAL LOANS0.03635060.04553670.0818873
2025-1-31Region1TOTAL DEPOSITS0.02765960.05743730.0297777
2025-1-31Region2TOTAL LOANS0.02294230.0494140.0723563
2025-1-31Region2TOTAL DEPOSITS0.02315050.04475520.0216047
2025-2-28Region1TOTAL LOANS0.03635060.04553670.0818873
2025-2-28Region1TOTAL DEPOSITS0.02765960.05743730.0297777
2025-2-28Region2TOTAL LOANS0.02294230.0494140.0723563
2025-2-28Region2TOTAL DEPOSITS0.02315050.04475520.0216047
2025-3-31Region1TOTAL LOANS0.00623190.04455370.0507856
2025-3-31Region1TOTAL DEPOSITS0.02690810.05462940.0277214
2025-3-31Region2TOTAL LOANS-0.00886390.04758730.0387233
2025-3-31Region2TOTAL DEPOSITS0.03272280.05127660.0185538

 

Qiu
21 - Polaris
21 - Polaris

@mfrihart 
I try with approach and find it is very interesting one. Maybe we can submit it as a weekly challenge idea 😁
I use a mapping file for the relation between Month and Quarter and it is easy to maintain as well.

0424-mfrihart.png

Labels
Top Solution Authors