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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Rak14
Frequent Visitor

Duration

Hi, 

I want to get the duration in Power BI ,between strat time column and end time column ( 24hrbased), when i did subtract I could get it in power queery but in model it is converting to a value. How to keep the same duration in model as in query.

 

ex: start time : 16:00:00( 4pm)  column

End time: 16:30:00(4:30pm) column

 

Need a column of duration , I have duration 30min, 45 min 1hr and 2hr.

 

Thanks in advance.

1 REPLY 1
kpost
Super User
Super User

If you want to change how it is displayed but keep date/time as the data type,  there are dozens and dozens of ways to format a date time value within Power BI.  See below image.

 

If none of those work for you , and you're okay with the data type being text, create it using DAX and check out the FORMAT() function and you will be able to customize it to display however you want.


https://learn.microsoft.com/en-us/dax/format-function-dax

kpost_0-1690470655235.png

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.