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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Displaying only the time of Data and Time

Hi All,

 

I am trying to calculate the time difference between the max time and min time of the entries in an ID.

 

How do I change the column in the visual so that the date doesnt display, only the time?

 

e.g. the second row, third column, would just say 08:37:00

 

time difference.png

 

Thanks in advance for the help

1 ACCEPTED SOLUTION
Anonymous
Not applicable

One way is go to edit query select column and right click on it. 

Edit query -->Select datetime column --> Right click --> select transform --> select Time Only

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

One way is go to edit query select column and right click on it. 

Edit query -->Select datetime column --> Right click --> select transform --> select Time Only

MFelix
Super User
Super User

Hi  @Anonymous ,

 

It's possible in PBI to use custom format strings for columns or measures on the modeling view check the documentation if you are using a column or a measure and don't want to change the format becayse you can use it in other visual in a different way you can create an additional measure or column with the FORMAT sintax something similar to this:

 

Hour Format = FORMAT(Table[Column]; "hh:mm:ss")

 

Regards,

MFelix

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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