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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
TracyF
New Member

Converting column values to unique columns

Hello, 

 

I have a table on PowerBi with 8 columns. 

 

One column (label) lists all the quarters and years in the following format: Q1 2020, Q2 2020, Q1 2021.  There are 10 unique values in this column. The other columns are repeated for each unique value, except the answer option which will change (although some may be the same). 

 

I would like to convert this column (label) into multiple columns so that each column is showing uniqe quarter/year in the column header and the answer column is populated in the cells.

 

labelsectionquestion_numberquestiongreenamberredAnswer
Q1 2022Finance9.16Result>150000150001 - 339999<149999113000
Q2 2021Finance9.16Result>150000150001 - 339999<149999125000
Q3 2022Finance9.16Result>150000150001 - 339999<149999158900
Q1 2022HR10.16Result<23-561
Q2 2022HR10.16Result<23-560
Q3 2022HR10.16Result<23-562

 

What I want:

Q1 2022Q2 2021Q3 2022sectionquestion_numberquestiongreenamberred
113000125000158900Finance9.16Result>150000150001 - 339999<149999
102HR10.16Result<23-56

 

How would I go about this? I am new to Powerbi so step by step guides would be really appreciated!

 

Thanks

1 ACCEPTED SOLUTION
SanketBhagwat
Solution Sage
Solution Sage

HI @TracyF .

You can try Pivoting your column 'label' which in turn would turn your row into separate columns.
Refer the following video;
https://www.youtube.com/watch?v=lFd2hjkKz_Q


Thanks,
Sanket

If this post helps, then mark it as "Accept as Solution" and give it a thumbs up.

View solution in original post

1 REPLY 1
SanketBhagwat
Solution Sage
Solution Sage

HI @TracyF .

You can try Pivoting your column 'label' which in turn would turn your row into separate columns.
Refer the following video;
https://www.youtube.com/watch?v=lFd2hjkKz_Q


Thanks,
Sanket

If this post helps, then mark it as "Accept as Solution" and give it a thumbs up.

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 Kudoed Authors