Forum Discussion

arosenberg's avatar
arosenberg
Regular Visitor
2 years ago
Solved

Dynamic File Path

Hello All, I am attempting to create a Power Query that uses a specific location but with different folder names and then picks up whatever file(s) are in that dynamic location. As an example \\net...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi arosenberg ,

    You can replace the Client part of your connection path with a parameter, and connect to files under different paths by selecting a different Client in the parameter:


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

  • dufoq3's avatar
    2 years ago

    Hi arosenberg

     

    1.) create dropdown list in Excel:

     

    2.) Create Named Range I choose "SelClient" and send it to PowerQuery:

     

    3.) In Power Query right click inside the cell and choose Drill Down

     

    4.) Create new query from FOLDER and edit address like this: