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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors