Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
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!
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
86 | |
82 | |
70 | |
49 |
User | Count |
---|---|
143 | |
123 | |
107 | |
61 | |
55 |