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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
arifshah
Helper I
Helper I

Import data from excel that has a matrix with stepped hierarchy in one column

Hi,

 

I am loading data from an excel worksheet which ha a matrix with months on columns and then one column that has multiple hierarchies in stepped format like below

 

arifshah_0-1714688985998.jpeg

 

I would like o convert the second column into mulitple columns according to its hierarchy. However, I do not see any option in Power BI power query to do this when importing the data. I tried to unpivot this column but that did not help.

 

Can someone please guide me how to achieve this.

 

Shah

3 REPLIES 3
Uzi2019
Super User
Super User

Hi @arifshah 
Can you share the pbix or excel data and also mentioned the expected output in excel form. 

it would be better for us to work on exact requirement.

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
amitchandak
Super User
Super User

@arifshah , what is logic for a parent. Like 

New column in Power query

if [Jan 2020] = null then [Column 2] else null

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks for replying. I am not sure what is your solution providing. I need to split the highlighted column according to the hierarchy. Your solution does not do that

 

arifshah_1-1714719515958.jpeg

 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.