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
Anonymous
Not applicable

How to display timestamp with AM and PM

Hello guys,

 

I have a calculated column named GetTime and its calculated the current timestamp. See the image below. I would like to display the value of this column in a chart and the output must be like 16:50 AM or 8:40 PM.  At this moment i only get 16:50 as value in a chart. 

 

Any suggestions?

 

 

 

 

2017-07-29 16_54_15-Zillion Insights - Power BI Desktop.png

1 ACCEPTED SOLUTION
Daniil
Kudo Kingpin
Kudo Kingpin

I'm not exactly sure about "16:50 AM" (shouldn't it be 4:50 AM?), but there are at least two ways to accomplish your goal:

 

  1. Change formatting of the column
    gettime.png
  2. Explicitly format the column as a text string:
    Gettime = FORMAT ( NOW(), "h:mm am/pm" )

If you are using a card visual, the end result is almost the same. The second approach allows you to define capitalization (am/pm or AM/PM).

View solution in original post

1 REPLY 1
Daniil
Kudo Kingpin
Kudo Kingpin

I'm not exactly sure about "16:50 AM" (shouldn't it be 4:50 AM?), but there are at least two ways to accomplish your goal:

 

  1. Change formatting of the column
    gettime.png
  2. Explicitly format the column as a text string:
    Gettime = FORMAT ( NOW(), "h:mm am/pm" )

If you are using a card visual, the end result is almost the same. The second approach allows you to define capitalization (am/pm or AM/PM).

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.