Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi, any idea how I can change an int64 value to a date format? I just want to change the day of the month, which is an integer value in a separate column, to a date format.
Thanks!
Solved! Go to Solution.
I think you can change the data type of a numeric column to a Date and it should do the conversion. But, the result will depend on the reference date for your source. If you know the reference date you could do this:
New Date = (DATE(<reference date in year, month, day>) + [Numeric Date]) * 1.
Hi @Anonymous ,
Multiple ways have been provided above but can you show some sample data and the expected result you want to us? So that we can check if the solution is work for you.
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I think you can change the data type of a numeric column to a Date and it should do the conversion. But, the result will depend on the reference date for your source. If you know the reference date you could do this:
New Date = (DATE(<reference date in year, month, day>) + [Numeric Date]) * 1.
Hi,
I think you can use the DATE() function like this: DATE(year, month, [Day column])
or are you looking for something like in the figure?
Regards Frank AT
Hi @Anonymous
you can use Date.From()
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
93 | |
77 | |
65 | |
53 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |