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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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