Forum Discussion
Add column with folder name
- 6 years ago
I assume you are opening the files via the Combine operation and your query steps look something like this, where the items in the red square were created by Power Query automatically by the Combine operation:
Go to the "Removed Other Columns1" step, and click the little gear icon. Check the "Folder Path" box and hit OK.
Go to the end of your query steps and you'll have a new folder path column where those files are located. You can then use Text.Start, Text.Middle, Text.End, or whatever to create whatever text you want to combine with the folders.
I assume you are opening the files via the Combine operation and your query steps look something like this, where the items in the red square were created by Power Query automatically by the Combine operation:
Go to the "Removed Other Columns1" step, and click the little gear icon. Check the "Folder Path" box and hit OK.
Go to the end of your query steps and you'll have a new folder path column where those files are located. You can then use Text.Start, Text.Middle, Text.End, or whatever to create whatever text you want to combine with the folders.
- parry2k6 years agoSuper User
Alvarom1 as edhans you go to step where you connect to sharepoint folder and make sure you can see folder path column in there and then check if you removed this column in any of the following step, if yes, don't remove this column so that is is part of your table , similar for filename and after that you can use any Text functions to concatenate File Name and Folder Path
Hope this help. If something is not clear, provide more details with example what is missing or what need to be done.
- Alvarom16 years agoHelper I
Thanks!
Alvaro
- Alvarom16 years agoHelper I
That's it!
That is wath I need and I did not know
Thanks a lot
Alvaro
- edhans6 years agoCommunity Champion
Great. That folder path column is available when you start, but the Combine operation automatically hides it and most other columns once it opens the actual files. I go back in and add them back for similar reasons all of the time. 👍
- AkshayManke5 years agoHelper II
Thanks a Lot edhans for the solution.
- edhans5 years agoCommunity Champion
Glad to help AkshayManke