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.
SOLVED

Help Needed - Forecast Submission Union with Real Sales

Sojo089
5 - Atom

Dear community,

 

Hopefully, this post finds you all well! I would really appreciate help with a small problem I've got.

 

This is my requirement. Please find this useful information to understand the problem.

 

Forecast Submission: Refers to the submission made in one specific month. It shows as S.2021-09 which stands for the forecast submitted during the month of September for the following months: current month + the next 23 months.

 

Sales database: Refers for the sales from 2018-01 until the present month.

 

Table Examples.

 

FCST Table

SubmissionSKU2021-012021-022021-03...
S.2021-011111100110120...
S.2021-021111N/A115120...
S.2021-031111N/AN/A200...
..................

 

Sales Table 

SKU2021-012021-022021-03...
11119040050...

 

Desired Goal

 

So basically as you can see the Forecast table is not interested in the past. My desire is to substitute the N/As in the forecast table with the historic sales data follows.

SubmissionSKU2021-012021-022021-03...
S.2021-011111100110120...
S.2021-02111190115120...
S.2021-03111190400200...
..................

 

And so on.

Would you guys be so kind to help me out on how to accomplish something like this?

2 REPLIES 2
Ben_H
11 - Bolide

Hi @Sojo089,

 

Here's how I would approach it.

 

  1. Transpose each table
  2. Filter out the N/A's from FCST table
  3. Where the value is N/A join onto the sales table and replace with that value.
  4. Union back together and cross tab the data back into the original format.

 

Ben_H_0-1632751914170.png

Ben_H_1-1632752022171.png

 

 

I've attached a sample workflow.

 

Regards,

 

Ben

 

 

Sojo089
5 - Atom

Dear Ben! @Ben_H

Thanks so much! Ill try it and let you know how it goes!

Labels
Top Solution Authors