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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

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