The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I dont know why I am getting an error in my time column for only one of the rows.
This is how the column looks:
and this is the error:
Thank you for your help!
Solved! Go to Solution.
Hello @kaym ,
The time in this row is not recognized as time in power bi, so maybe there's something missing in it, it should be formatted as time value.
Proud to be a Super User! | |
Hi @kaym
@Idrissshatila Thank you very much for sharing!
The time data type in Power Query uses the 12-hour format by default. If you need to use the 24-hour format, you can change the regional settings of the time column in the Power Query editor and select a region that uses the 24-hour format, for example British English or Singaporean English.
One possible reason for this error is that Power BI uses the 12-hour clock format by default, and it doesn’t recognize 24:00:00 as a valid time.
To do this, you can right-click on the Time column in Power Query Editor, and select Change Type > Using Locale… Then, choose Time as the data type, and select the appropriate locale from the drop-down list. Press OK to apply the change.
This should fix the error and convert the Time column to a valid time data type. You can also format the Time column to display the time in the way you prefer, such as hh:mm:ss or HH:mm:ss.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @kaym
@Idrissshatila Thank you very much for sharing!
The time data type in Power Query uses the 12-hour format by default. If you need to use the 24-hour format, you can change the regional settings of the time column in the Power Query editor and select a region that uses the 24-hour format, for example British English or Singaporean English.
One possible reason for this error is that Power BI uses the 12-hour clock format by default, and it doesn’t recognize 24:00:00 as a valid time.
To do this, you can right-click on the Time column in Power Query Editor, and select Change Type > Using Locale… Then, choose Time as the data type, and select the appropriate locale from the drop-down list. Press OK to apply the change.
This should fix the error and convert the Time column to a valid time data type. You can also format the Time column to display the time in the way you prefer, such as hh:mm:ss or HH:mm:ss.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Possibly you have different regional settings which are not the same as provided string for date format.
I think you can try to parse as a string this value and later instead of directly changing type to Date/Time go to Using Locale and choose United States --> Date Time.
I hope it helps.
Hello @kaym ,
The time in this row is not recognized as time in power bi, so maybe there's something missing in it, it should be formatted as time value.
Proud to be a Super User! | |
User | Count |
---|---|
78 | |
74 | |
43 | |
32 | |
28 |
User | Count |
---|---|
104 | |
93 | |
52 | |
50 | |
46 |