I have a Data Source that contains YEAR, MONTH columns but there is no DAY column.
I wanted to create a DATE column using Query Editor/M language:
1. Add new column
2.Populate it with Dates by using 1 as DAY for all the rows in the table.
End result Should be like : 2018/1/1 (Year/Month/Day)
Any help on this much appreciated, thanks in advance !
Go to Solution.
Please see the below.
View solution in original post
I do have the same problem but face further issues here.
Following your instructions, my output still shows an "Error".
= Table.AddColumn(AddCol_Day, "Date", each #date( [Year], [Month],1))
Columns Year and Month are formatted as Int64.Type.
@yodha , refer if this can help
Proud to be a Super User!
Thank you so much!
Check out new user group experience and if you are a leader please create your group!
Check out how to claim yours today!
Test your skills now with the Cloud Skills Challenge.