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
MRBranco
Frequent Visitor

Loading data from folder and add new column with Path Folder

Hi,

I need help to load data from folder and add new columns with folder path.

 

I have a folder [C:\Report] and subfolders [Joe, Mike, Paul]:

FolderFolder

 

In each subfolder I have a Excel file as a report.

filefile

 

In each Excel file I have just two columns (with different values):

contentscontents

 

I imported the folder and combined the Excel files:

folder importedfolder imported

 

files combinedfiles combined

 

Now, I need a new column in the table that was combined with Path Folder:

new columnnew column

 

Thanks for any help.
MRBranco

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @MRBranco ,

Just select 'Removed Other Columns1' step in Applied steps and click the 'Folder Path' field to get the result:

remove columns.pngresult.png

 

Best Regards,
Yingjie Li

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

3 REPLIES 3
v-yingjl
Community Support
Community Support

Hi @MRBranco ,

Just select 'Removed Other Columns1' step in Applied steps and click the 'Folder Path' field to get the result:

remove columns.pngresult.png

 

Best Regards,
Yingjie Li

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

@v-yingjl,

 

It all worked out well.

Thank you

 

Best regards,

MRBranco

parry2k
Super User
Super User

@MRBranco paste the M code from advanced editor, probably one of the steps has removed the column and in tht step you should not remove this path column and that will do it.

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.