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

how to take a month and year column and combine them into a single date column

$
0
0

Hi

 

Sorry this must be a simple question but I am new to Alteryx hence asking it. I have a date set which has two column one for month and another for year. I need to combine them into one column as a date so for example 3-2015 or 3/2015 for the first entry in the example below. I need them to be a date so that when I run through I can arrange date in order of first to last date.

 

I have used this formula [MonthofYear]+"/"+[Year] to create a new column as a string. However I can't arrange the rest of the date from nearest time period to the last period as it is a string so when I run through all the other steps the data comes out as I need it but arranged in the wrong order.

 

If you could help that would be great.

 

MonthYear
32015
42015
52015
62015
72015
12016
22016
32016
42016
52016
62016
72016

Viewing all articles
Browse latest Browse all 4999

Trending Articles