Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
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 !
Solved! Go to Solution.
Thanks
Hi everyone,
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.
Any hints?
@yodha , refer if this can help
https://radacad.com/create-a-date-dimension-in-power-bi-in-4-steps-step-1-calendar-columns
Thank you so much!