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 August 31st. Request your voucher.

Reply
Mo_15797
Frequent Visitor

Convert Data in Power BI

Hi,

 

I currently have a dataset in excel (yellow table in the image below). I would like to know if there's a way to convert it to create a column for each hierarchy, for example, see the green table on the image. I currently do this manually in excel, but I have a dataset which is very large so wanted to find out if there's an easier way to do this in Power BI?

 

Mo_15797_1-1695052989196.png

 

1 ACCEPTED SOLUTION
Mo_15797
Frequent Visitor

Hi @KEAlexander - Thanks for your response. I managed to get it to work after watching a few youtube videos. I used the Pivot function on the "hierarchy" column to create the new columns, and then selected the "title" column on the Value Column. I configured the settings on the "Advanced options" on this pivot function to "Do not aggregate" so it shows me the values in non-numerical format. 
I then used the "Fill up" and "Fill down" function to populate the fields in the table where it was necessary. 

View solution in original post

2 REPLIES 2
Mo_15797
Frequent Visitor

Hi @KEAlexander - Thanks for your response. I managed to get it to work after watching a few youtube videos. I used the Pivot function on the "hierarchy" column to create the new columns, and then selected the "title" column on the Value Column. I configured the settings on the "Advanced options" on this pivot function to "Do not aggregate" so it shows me the values in non-numerical format. 
I then used the "Fill up" and "Fill down" function to populate the fields in the table where it was necessary. 

KEAlexander
Helper I
Helper I

In the report builder side of Power Bi desktop, try pivot and unpivot. There are several options, and one might work for you. Since your data is coming from Excel and pivot is available in Excel, you could try it out there first if Excel is more comfortable to work in to try out approaches. 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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