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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.