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
IAM
Helper III
Helper III

Power Query HH:MM:SS to HH:MM AM

Hi,

 

I have a dataset outside my Power Bi report, so I cannot change it in the column of my report.

 

Is there a way to get a time stamp and change it to text format in HH:MM AM/PM format?

 

In Power Query it is HH:MM:SS AM/PM now, but in my report it shows up as HH:MM:SS

(so without AM/PM)

 

I want to convert it to text in Power Query so it won't change, anyone knows how to use

Time.ToText with reference to a column?

 

1 ACCEPTED SOLUTION
miguel
Community Admin
Community Admin

Hey,

 

Here's a sample code that illustrates how to use teh Time.ToText.

miguel_0-1657725558257.png

 

Time.ToText( #time(12,30,25), "h:MM tt")

View solution in original post

2 REPLIES 2
IAM
Helper III
Helper III

Thank you!

 

It turned out it was just a glitch, a few hours later it was suddenly correct, but thank you, I will need this later maybe!

miguel
Community Admin
Community Admin

Hey,

 

Here's a sample code that illustrates how to use teh Time.ToText.

miguel_0-1657725558257.png

 

Time.ToText( #time(12,30,25), "h:MM tt")

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.

Top Solution Authors
Top Kudoed Authors