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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
Solution Sage
Solution Sage

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors