The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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?
Solved! Go to Solution.
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.
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.
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.