Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
aanmi
Helper I
Helper I

How to convert this data to be in time format HH:MM with AM/PM

Hi

 

I have a data which I import from Dynamics 365 (D365).

There's a column for Start Time with integer value. I already changed the data type (from Whole Number to Time) and Format (from Whole number to HH:MM) but it's not working. It will show all rows convert to 12:00:00 AM. Please advise

 

aanmi_0-1627547867035.png

 

 

 

1 ACCEPTED SOLUTION
MrSujay
Resolver II
Resolver II

Create a new calculated column with the below Dax formula :

 

Time = FORMAT( [CorrectedStartTime] / 60 / 60 /24, "hh:nn:ss" )

 

 

 

 

MrSujay_0-1627551122482.png

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
MrSujay
Resolver II
Resolver II

Create a new calculated column with the below Dax formula :

 

Time = FORMAT( [CorrectedStartTime] / 60 / 60 /24, "hh:nn:ss" )

 

 

 

 

MrSujay_0-1627551122482.png

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

MrSujay

 

Thank you so much for your help. It's working just what I want.  😀

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.