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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Duration on Query Editor vs Time on Visual

Hi Folks!

 

Recently a friend asked me about durations with more than 24 hours. The point is there is an Excel workbook with a worksheet containing a column that represents a duration, but some values are over 24 hours.

 

When I imported this worksheet to the Power BI and tried to change the data type to "Duration" on Query Editor, I received an error on these values.

 

Then, I tried to calculate the duration using the Query Editor and then I successfully changed the data type to duration.

 

The format presented is something like that:

 

7.10:28:08, that means 7 days, 10 hours, 28 minutes and 08 seconds.

 

When I opened this table on Visual, the field appears 7.436037037037 and when I changed the data type to Time (there is no Duration type on Visual), this shows 10:28:08, cutting off the 7 days value.

 

So, I'm thinking to create individuals fields and construct a hierarchy to solve this, but it sounds stupid to me.

 

There is any other idea?

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

Power bi not support time duration type, you can split the value to different fields to store its units(day, hour, minute, second), it should suitable for deal with time duration values.
In addition, you can also take a look at following blog to know more about these:

Aggregating Duration Time

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

Thanks, @Anonymous .

 

My curiosity is the data type "DURATION" that I found on Query Editor. It is converted to a Decimal Number when I access de data on Visual.

 

Did you saw it?

 

Regards.

Anonymous
Not applicable

Hi @Anonymous ,

Yes, duration type only works on query table side. It will been forced convert to decimal value when query table convert to data model table.

As I said, you can split it unit to different fields to keep accurate duration values.

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.