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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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