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
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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.