Free Trial

Alteryx Designer Desktop Discussions

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

Create new date column by adding Column [Days] to a date

sureslala
8 - Asteroid

Hi all

Need some help pls resolving what I thought was a straightforward problem, I've got the below data in my workflow (I've added what data type the columns are on the right) 

 

 

The new column I'm trying to create has to be the Days + the CoB Date  (or DateTime_Out in Date type)

         
CoB DateTenorBucketsTenor GroupDateTime_OutDays NameType
28/06/202411Y228/06/2024365 CoB DateV_String
28/06/202422Y328/06/2024730 TenorByte
28/06/202433Y428/06/20241095 BucketsString
28/06/202444Y528/06/20241460 Tenor GroupByte
28/06/202455Y628/06/20241825 DateTime_OutDate
28/06/202477Y728/06/20242555 DaysV_String
28/06/20241010Y828/06/20243650   
28/06/20241515Y928/06/20245475   
28/06/20242020Y1028/06/20247300   
28/06/20242525Y1128/06/20249125   
28/06/20243030Y1228/06/202410950   
         
 

My output has to be the date column below. Think I'm getting stuck trying to add 'Days' in 'V-String' to a 'Date' type column? Using 'Tenor Group 8' from above table my output should be 28/06/2024 + 3,650 = 26/06/2034. 

 

 
CoB28/06/2024 
    
 DateTenor Group
628/06/20240 
1228/12/20241 
128/06/20252 
228/06/20263 
328/06/20274 
427/06/20285 
527/06/20296 
727/06/20317 
1026/06/20348 
1525/06/20399 
2023/06/204410 
2522/06/204911 
3021/06/205412 
    
 

Any help would be much appreciated, 

Thanks

Sures 

 

3 REPLIES 3
alexnajm
18 - Pollux
18 - Pollux

You just need the DateTimeAdd function! And yes, the days should be numeric: DateTimeAdd([Date], [Days], 'days')

 

Make sure your Date column is also the correct date data type in Alteryx!

alibink
7 - Meteor

Hi @sureslala,
From what I understood from your explanation, here is the solution. 

 

 

Formula Tool Config.png

sureslala
8 - Asteroid

Thank you Alibink and Alexnajm! The workflow works! Thanks again for your assitance! 

Labels
Top Solution Authors