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
momodj20
Helper II
Helper II

Convert time 011006 in hrs:min:sec

i convert the number 060025 in hrs:min:sec

 

in access i convert with this formulas

CDate(Format([irorim];"00""  : ""00""  : ""00"))

 

how do I convert in dax?

 

thanks

 

Maurizio

 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

This could work:

 

Column = TIME(LEFT(Table1[Column1],2),MID(Table1[Column1],3,2),RIGHT(Table1[Column1],2))
 
Make sure the new column has the right format

View solution in original post

@momodj20,

 

Just use FORMAT first.

Column =
FORMAT ( Table1[Column1], "000000" )
Community Support Team _ Sam Zha
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

5 REPLIES 5
Anonymous
Not applicable

This could work:

 

Column = TIME(LEFT(Table1[Column1],2),MID(Table1[Column1],3,2),RIGHT(Table1[Column1],2))
 
Make sure the new column has the right format

Excuse me but the time not is 011006 but 11006 and not function.
Can i convert in 011006 and subsequently Apply your formula?
how do I convert the field to 011006?
Very very Thanks

Anonymous
Not applicable

as long as your data has 6 digits this formula will work. can you send me the sammple of your data?

My field are decimal 6 - 13005

I have a convert in string ‘000000’ and other convert in time .
The query not function because the field not has 6 digits.

@momodj20,

 

Just use FORMAT first.

Column =
FORMAT ( Table1[Column1], "000000" )
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.