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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
koorosh
Post Partisan
Post Partisan

path file parent child

Hi Every body,

 

I have the following table :

koorosh_0-1723307322932.png

Now please add columns to get the following:

koorosh_1-1723307382519.png

 



 

1 ACCEPTED SOLUTION
AnkitaaMishra
Super User
Super User

Hi @koorosh , yes you can achieve this using power query editor , follow below steps :

 

Step 1) Open the power query editor and duplicate the Path Column by right clicking on the column :

AnkitaaMishra_0-1723312597452.png

Step 2) Right click on the duplicated column and select split column by delimiter :

AnkitaaMishra_1-1723312653468.png

AnkitaaMishra_1-1723313126792.png

 

Step 3) Then you can remove the below highlighted column :

AnkitaaMishra_2-1723312772867.png

Step 4) now for the first splitted column, you can replace the blank value with 'root' as shown below :

AnkitaaMishra_2-1723313176202.png

 

AnkitaaMishra_0-1723313081095.png

 


This will give you the expected result.

 

let me know if this works for you else share the additional details for your requirement.

 

Thanks,

Ankita



View solution in original post

2 REPLIES 2
k1eyvanYYZ
Regular Visitor

I think the @AnkitaaMishra  solution will generate only one column.

This might be a better solution : 

Populate columns in Power BI based on the folder s... - Microsoft Fabric Community

AnkitaaMishra
Super User
Super User

Hi @koorosh , yes you can achieve this using power query editor , follow below steps :

 

Step 1) Open the power query editor and duplicate the Path Column by right clicking on the column :

AnkitaaMishra_0-1723312597452.png

Step 2) Right click on the duplicated column and select split column by delimiter :

AnkitaaMishra_1-1723312653468.png

AnkitaaMishra_1-1723313126792.png

 

Step 3) Then you can remove the below highlighted column :

AnkitaaMishra_2-1723312772867.png

Step 4) now for the first splitted column, you can replace the blank value with 'root' as shown below :

AnkitaaMishra_2-1723313176202.png

 

AnkitaaMishra_0-1723313081095.png

 


This will give you the expected result.

 

let me know if this works for you else share the additional details for your requirement.

 

Thanks,

Ankita



Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors