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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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