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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
HenriqueReis
Resolver I
Resolver I

Use a column head as a value for a new column

Hello!

 

Now in my data set I have a column to enumerate the weeks (in portuguese week = semana) and a column for each day of the week (in portuguese: segunda = monday, terça = tuesday, quarta = wednesday). How can I tranform the dataframe above in just three columns with "semana" (the column I already have), day of week and the float value?:

HenriqueReis_1-1659447410326.png

 

I did some ilustration to explain what do I want:

HenriqueReis_0-1659447386442.png

 

Please, I appreciate any help.
Thanks, regards from BR.

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

UNpivot the days columns in Power Query.  I think it's what you are looking for

View solution in original post

2 REPLIES 2
HotChilli
Super User
Super User

UNpivot the days columns in Power Query.  I think it's what you are looking for

Was almost this, but your answer was usefull to me to find the solution.

 

Thanks a lot!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.