-1

I'm receiving time in 24 hours format from Database but we need to convert that into 12 hours for some calculation purpose. how to convert the same in power bi

ex.

10 --> 10:00:00 AM 

22 --> 10:00:00 PM
KARTHIKEYAN.A
  • 18,210
  • 6
  • 124
  • 133

1 Answers1

0

In Advanced editor right-click the column and select change type and then select time then the result would be 10:00:00 AM for 10 and 10:00:00 PM for 22.

enter image description here

Another way is use TIME() function in DAX query

TIME("10") --> 10:00:00 AM
TIME("22") --> 10:00:00 PM
KARTHIKEYAN.A
  • 18,210
  • 6
  • 124
  • 133