Forum Discussion
Converting to Time Error
- Anonymous1 year ago
Hi ashrafezz817
I put your question to the test:
First, determine if the data in your database is in time format.
Connect using DirectQuery mode in desktop. And check that the data type is correct.
Create a column or measure.
Column Hour = HOUR('timeTable'[INV_TIME])Measure Hour = HOUR(SELECTEDVALUE('timeTable'[INV_TIME]))Here is the result.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi ashrafezz817
I put your question to the test:
First, determine if the data in your database is in time format.
Connect using DirectQuery mode in desktop. And check that the data type is correct.
Create a column or measure.
Column Hour = HOUR('timeTable'[INV_TIME])
Measure Hour = HOUR(SELECTEDVALUE('timeTable'[INV_TIME]))
Here is the result.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.