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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
pal95
Helper III
Helper III

Make a new 'Month' column that will detect the right values

Hi, I have a table like this: 

 

pal95_0-1653313359132.png

 

And I would like to convert it (in Power Query) to a form where I will have only 3 columns:

- Title

- Month

- Value 

 

The value column should detect what was previously written under the month column for the right name, so, for example,

- Title - CH

- Month - April 2022

- Value - 1

 

As I have 5 rows and 12 columns, I would expect to have 60 rows and 3 columns after this operation is completed. Is that possible? Thank you 

 

1 ACCEPTED SOLUTION
Nathaniel_C
Super User
Super User

Hi @pal95 ,
Yes this is possible in Power Query by selecting the Title column and going to Unpivot - Other Columns.  Please see my pictures below. I dummied up a table for this.


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel

 

Nathaniel_C_0-1653314841147.pngNathaniel_C_1-1653314912426.png

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
Nathaniel_C
Super User
Super User

Hi  @pal95 ,

If this solves your question, please accept it as solved so that others may find it more quickly.

Thank you,
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Nathaniel_C
Super User
Super User

Hi @pal95 ,
Yes this is possible in Power Query by selecting the Title column and going to Unpivot - Other Columns.  Please see my pictures below. I dummied up a table for this.


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel

 

Nathaniel_C_0-1653314841147.pngNathaniel_C_1-1653314912426.png

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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