Alteryx Designer Desktop Discussions

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

Generating Weekly Schedule from Single Date & Ship Rate

DVikas
7 - Meteor

Hi All ,

 

I need to generate a Shipping Schedule based on the below Info

 

Input Data

project #Project NameProject SizeSCHEDULED SHIP DATEWeekly Ship Rate
959885XXXX81.304/27/20208

 

I am looking at generating date rows based on Reference date stated above with a Gap of 7 Days (as I need to generate Weekly Schedules) , however it should only generate based on below logic 

If Project Size > Weekly Ship Rate then keep adding Date Rows with a gap of a Week until the Summation of Schedules does not exceed Project Size.

 

It is like generating Date Rows by adding a week to previous Row & also stating the Ship Schedule by ensuring the Ship schedule does not exceed Project Size.

Something like using the No. of Weeks like Division of (Project Size, Weekly Ship Rate) + 1 (if MOD(Project Size , Ship rate) <>0)

 

Desired Output is below :

project #Project NameProject SizeSCHEDULED SHIP DATEShip Schedule
959885XXXX81.304/27/20208
959885XXXX81.305/04/20208
959885XXXX81.305/11/20208
959885XXXX81.305/18/20208
959885XXXX81.305/25/20208
959885XXXX81.306/01/20208
959885XXXX81.306/08/20208
959885XXXX81.306/15/20208
959885XXXX81.306/22/20208
959885XXXX81.306/29/20208
959885XXXX81.307/06/20201.3

 

This is my first Post in the Community as I am a new User. Forgive me for any silly questions 

 

8 REPLIES 8
vizAlter
12 - Quasar

Hi @DVikas — Welcome!

Can you please provide your Excel file with formulas -- Input and desired output files, both?

 

 

bhrmitra
10 - Fireball

Hi @DVikas,

 

You can use the Generate Rows tool to get the desired result.

 

1.png2.png

 

If this solves your issue please mark the answer as correct and also hit the like button, if not let me know! I've attached my workflow for you to download if needed.

 

Thanks!

DVikas
7 - Meteor

Hey Thanks Abhra . Appreciate your quick reply on this . I will now replicate the logic with large Data Sets.

DVikas
7 - Meteor

HI Abhra,

 

I added by other Dataset & works fine. However , I wanted to Re-arrange the Scheduled Ship dates horizontally . I tried doing the Cross Tab , however , everything shows as Null.

 

How can I fix this ?

 

bhrmitra
10 - Fireball

Hi 

 

 

DVikas
7 - Meteor

Hi Abhra ,

 

Below is the desired output

 

project #Project NameProject SizeSCHEDULED SHIP DATE04/27/202005/04/202005/11/202005/18/202005/25/202006/01/202006/08/202006/15/202006/22/202006/29/202007/06/2020
959885XXXX81.304/27/202088888888881.3
bhrmitra
10 - Fireball

Hi,

 

This is easy. Using the crosstab tool properly and then renaming the headers dynamically can help you achieve your desired output.

 

If this solves your issue please mark the answer as correct and also hit the like button, if not let me know! I've attached my workflow for you to download if needed.

 

Thanks!

DVikas
7 - Meteor

Hi Abhra ,

 

I have another requirement of basically having 2 Schedules for a particular Project , however I need to give priority to a specific Schedule , if available for the project.

 

Input 1

Project07-Sep14-Sep21-Sep28-Sep05-Oct12-Oct19-Oct26-Oct02-Nov09-Nov16-Nov23-Nov
XXXX101010101010101010101010

 

Input 2

 

Project07-Sep14-Sep21-Sep28-Sep05-Oct12-Oct19-Oct26-Oct02-Nov09-Nov16-Nov23-Nov
XXXX 20 20 20 20 20 

20

 

 

Desired Output: Input 2 (if Available, with its Schedule)

 

Project07-Sep14-Sep21-Sep28-Sep05-Oct12-Oct19-Oct26-Oct02-Nov09-Nov16-Nov23-Nov
XXXX 20 20 20 20 20 20
Labels