Forum Discussion

mrk777's avatar
mrk777
Frequent Visitor
3 years ago
Solved

Convert to Time Format in the Power Query Editor in Power BI while importing the data from Excel

I have some data in an EXCEL TABLE which has total hours worked and actual work hours and which resembles the Duration in the form of %s as per the below-mentioned screenshot:

 

 

Now, I would use this Excel file in POWER BI and showcase the same duration and %s. But unfortunately, In PowerBI, the data type is being considered as Text, and hence unable to convert them to the formats as per Excel file. If I try to change it to Date or Date/Time, Decimal, or Duration, it is throwing an error. I need to perform calculations like the Sum of all the Durations etc.,

 

Following is one type of error when I converted to Duration Data Type, likewise, it is showing an error for all the data types I tried.

 

Appreciate your help, thank you!

 

3 Replies