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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
rpinxt
Solution Sage
Solution Sage

Unpivot columns with a time heading error

So we have an excel file like :

rpinxt_0-1731511222416.png

So we have times (manually) on the first row and names on the rows below.

I want to use this data in Power Bi so I loaded the file :

rpinxt_1-1731511290758.png

Then I use the first row as header, but you can already see it manufactures its own date before it and not just the time.

 

So now I wanted to unpivot and at first this looks to be promising:

rpinxt_2-1731511370587.png

Exactly what we want, flat data and names for the time slots.

But of course we want first column to be time so I wanted to change the type to 'Time' :

rpinxt_3-1731511449534.png

Error......

Anybody who knows how we can pull this off?

 

3 ACCEPTED SOLUTIONS
rpinxt
Solution Sage
Solution Sage

Well I have found a workaround...

rpinxt_0-1731512280086.png

So if I set the first column as Date/Time I get a valid Date/Time field (no error).

Now with a custom column I can derive the time from that, as can been seen, via this M code :

rpinxt_1-1731512346997.png

 

Would be ok I guess. Still more steps in the editor.

Still wondering if there is no directer solution.

 

View solution in original post

Anonymous
Not applicable

Hi  @rpinxt ,

 

I'm glad you found a solution, another way is to select Parse under the time tab.

 

vlinhuizhmsft_1-1731547859312.png

 

 

Best Regards,
Zhu
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.

View solution in original post

rpinxt
Solution Sage
Solution Sage

Thanks @Anonymous this is indeed a quite similar solution where an extra column is added.

 

But in the mail I received you also mentioned to just close the editor with the date/time setting and then in normal view change the data time to time.

And that works also! Strange as in query editor this resulted in an error.

View solution in original post

3 REPLIES 3
rpinxt
Solution Sage
Solution Sage

Thanks @Anonymous this is indeed a quite similar solution where an extra column is added.

 

But in the mail I received you also mentioned to just close the editor with the date/time setting and then in normal view change the data time to time.

And that works also! Strange as in query editor this resulted in an error.

rpinxt
Solution Sage
Solution Sage

Well I have found a workaround...

rpinxt_0-1731512280086.png

So if I set the first column as Date/Time I get a valid Date/Time field (no error).

Now with a custom column I can derive the time from that, as can been seen, via this M code :

rpinxt_1-1731512346997.png

 

Would be ok I guess. Still more steps in the editor.

Still wondering if there is no directer solution.

 

Anonymous
Not applicable

Hi  @rpinxt ,

 

I'm glad you found a solution, another way is to select Parse under the time tab.

 

vlinhuizhmsft_1-1731547859312.png

 

 

Best Regards,
Zhu
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors