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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors
Top Kudoed Authors