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, I have a DateCreated column coming from a MySQL dataset where the values are in dd/mm/yy hh:mm:ss. I want to create another column that is just dd/mm/yy format without the hh:mm:ss bit (i.e an integer of my DateCreated column). I have tried going via Edit Queries, selecting the DateCreated column and under add column, date, selecting Date only. This adds another column with the date only but my whole report disappears and I can't build it from scratch. Any ideas?
Solved! Go to Solution.
So, in DAX, you could create a new column with this formula:
Column = INT([Date])
Then, set this to "Date" as a Data Type in the Modeling ribbon.
This works because DAX Date/Time is a numeric data type where the integer portion is the number of days from December 30th, 1899 and the decimal portion is the time component.
So, in DAX, you could create a new column with this formula:
Column = INT([Date])
Then, set this to "Date" as a Data Type in the Modeling ribbon.
This works because DAX Date/Time is a numeric data type where the integer portion is the number of days from December 30th, 1899 and the decimal portion is the time component.
Excellent, thank you
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 |
---|---|
114 | |
99 | |
82 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |