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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
NNaj
Helper IV
Helper IV

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  @NNaj ,

 

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors