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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
suvratrai
Advocate II
Advocate II

Excel Hierarchy Data Import

Hi Team,


I have a requirement where i need to import an Excel file or SmartSheet into PowerBI desktop.

The dataset has a hierarchy setup on one of the columns which is getting imported as members of one single column when i try to import this data into Power BI Desktop.

Here is the image: https://1drv.ms/u/s!AsC5PgabP0U9gWvqQKdjaF7VdqY6?e=UDUL1w


I would like to break this excel column in RED BOX into different columns as per the members of the hierarchy given on the excel data.

If Power BI Desktop will not support this, can anyone suggest any workarounds for this use case?


Thanks in advance!


Suvrat

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

@suvratrai ,

 

Do you mean you want to achieve sevaral columns like [Main Category], [Second level Category], [Thrid level Category] and etc in the columns section in matrix visual, right?

 

If that's what you want to achieve, you can click query editor-> transform and click on the hierarchy columns above, then click unpivot columns.

 

After applied, you can create a matrix visual and then drag the new generated "value" column into column section.

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
arifshah
Helper I
Helper I

Hi, Can you please explain how would the unpivot option split it into multiple columns according ot the hierarchy? I have a similar problem but I could not understand your solution.

 

I need the second column in this matrix into multiple columns i tried your solution but the value column creates the same single column that was in the original column

 

This is the original column

 

arifshah_0-1714689452448.png

 

 

this is after unpivoting it

 

arifshah_1-1714689478204.png

 

I will appreciate your help in this

 

v-yuta-msft
Community Support
Community Support

@suvratrai ,

 

Do you mean you want to achieve sevaral columns like [Main Category], [Second level Category], [Thrid level Category] and etc in the columns section in matrix visual, right?

 

If that's what you want to achieve, you can click query editor-> transform and click on the hierarchy columns above, then click unpivot columns.

 

After applied, you can create a matrix visual and then drag the new generated "value" column into column section.

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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