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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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