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 try to extract the hour information from a time field, and I find the result is not always the same as the hour showed in the time data. For example, one is "6/22/2022 10:04:41 PM", the hour should be 22, however when I used hour(time) the result is 21. How to correct this problem? Thanks!
Solved! Go to Solution.
this is what i get so think you need to share exactly what you doing
Proud to be a Super User!
this is what i get so think you need to share exactly what you doing
Proud to be a Super User!
can you please share your calculation or demonstrate how you are doing this.
Proud to be a Super User!
I used this : Hour( )
in dax? so you have field that has a date and time and it is a date time type? in it and you create a dax measure / column ? please share a screenshot of the calc with the result.
calcuation = hour(datetimefield)?
Proud to be a Super User!
Yes, I have a column which is date time type. I want to extract the Hour information and I used add a new column, and this new column =Hour(datetime). But the hour is not alway correct
when you say its not always correct do you have another example or have you fixed it? Also how are you placing it on your visual, you could be aggregating that column rather than removing the aggregate if you are doing multiple rows?
Proud to be a Super User!
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 |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |