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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Data Type duration

I have a duration column in excel, what data type should i use when import into power bi?  it's all 'Error' when i select 'duration' in power bi. 

 

CRM.PNG 

CRM.PNG

1 ACCEPTED SOLUTION
GilbertQ
Super User
Super User

Hi there, you would have to change it to Text, due to it having the ":" which is seen as text.

 

What I would suggest is if you want to calculate the duration in Power BI is to have the Source Date Time in order to do this, can modify it all to be seconds. Then from there you can then roll it up to Hours, Days etc.

 

Here is another link referencing how they did it with Date and Times

http://community.powerbi.com/t5/Desktop/Sum-of-H-MM-SS/m-p/124007 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

View solution in original post

2 REPLIES 2
GilbertQ
Super User
Super User

Hi there, you would have to change it to Text, due to it having the ":" which is seen as text.

 

What I would suggest is if you want to calculate the duration in Power BI is to have the Source Date Time in order to do this, can modify it all to be seconds. Then from there you can then roll it up to Hours, Days etc.

 

Here is another link referencing how they did it with Date and Times

http://community.powerbi.com/t5/Desktop/Sum-of-H-MM-SS/m-p/124007 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Anonymous
Not applicable

Your link is invalid.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.