Alteryx Designer Desktop Discussions

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

Converting Weekly Data to Daily Data

VijaySanthoshKumar
6 - Meteoroid

Hi All,

 

I am quite new to Alteryx and i would like some help me on converting weekly data to daily data and the final output should be daily data with the Average of Weekly sales and daily dates.

 

Input File:

IDWeekly SalesPeriod Start DatePeriod End Date
A322638.92013/01/122013/01/18
B334155.82013/01/192013/01/25
C442738.22013/01/262013/02/01
D487107.32013/02/022013/02/08
E484621.42013/02/092013/02/15
F444071.52013/02/162013/02/22
G401072.22013/02/232013/03/01
H515085.52013/03/022013/03/08
I583204.12013/03/092013/03/15
J472802.92013/03/162013/03/22
K345006.22013/03/232013/03/29
L328326.32013/03/302013/04/05
M358434.92013/04/062013/04/12

 

Expected Output:

 Attached the spreadsheet for expected output and below are the variable name's explanation

 

1.Date: is the new column that has to be created with daily dates and
2.Variable Name: "Difference" is the difference between the Period Start Date & Period End Date. 

3.Average Weekly Sales: is the (Weekly Sales/Difference).

 

Kindly help me in resolving this.

 

Thanks in Advance,

Vijay

6 REPLIES 6
jdunkerley79
ACE Emeritus
ACE Emeritus

Use a Generate Rows tool to make a set of dates.

 

I have attached a simple work book doing what I think you want. 

 

It is save in 10.5 if you have an older version can change file to be compatible!

VijaySanthoshKumar
6 - Meteoroid

Hi 

 

Thank you so much for the immediate response. 

 

is it possible for you to share the input file "Breadown 52535" that you have used for converting weekly data to daily data, a sample will also do.

 

I am finding little difficult in understanding the workflow.

 

Regards,

Vijay

jdunkerley79
ACE Emeritus
ACE Emeritus

Oops uploaded the wrong file!

 

Try this one!

VijaySanthoshKumar
6 - Meteoroid

Hi 

 

 

 

 

 

jdunkerley79
ACE Emeritus
ACE Emeritus

The DateTimeAdd function returns a DateTime rather than a Date

The Left(..., 10) truncates the time part off to convert back to a Date.

 

 The input to the Generate Rows need to be Dates (i.e. yyyy-MM-dd format). If other format (your sample had yyyy/MM/dd) you will need to reformat to be dates (I had a multifield formula in the sample). 

VijaySanthoshKumar
6 - Meteoroid

Yes, I forgot about the MultiField Formula, now it works without any error. 

 

Thank you for your help and for your immediate response 

 

Labels