Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

Generate Dates + & - 2 days

$
0
0

Hello, I am trying to take a date and generate new rows that bring that date 2 days backward and 2 days forward and I'm having a tough time figuring out how to get it all to appear in one column. Any ideas?

 

Example of what I want to do:

 

Existing Data:

 

Record IDDate
17/1/2017
26/4/2017

 

Turned into:

 

Record IDDate
17/1/2017
16/30/2017
16/29/2017
17/2/2017
17/3/2017
26/4/2017
26/3/2017
26/2/2017
26/5/2017
26/6/2017

Viewing all articles
Browse latest Browse all 4999

Trending Articles