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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors