Create a Dynamic File Path - Change the Power Query Source Based on a Cell Value

Learn how to create a dynamic file path in Excel to which your query will connect. Then all you need to do is update that file path in Excel and hit refresh and your query updates with the new file’s data! Watch this video to learn how to do this!
If you would like to download the workbook please use this link: drive.google.com/drive/folder...
00:00 The End Result
00:19 The Source Data Structure to Avoid Errors
01:21 Creating the Query
03:03 If Statement in Power Query
05:16 Creating the Dynamic File Path in an Excel Cell
07:35 Formula.Firewall Error in Power Query
07:55 How to Fix the Formula.Firewall Error in Power Query
09:31 Send ExcelFilePath Object Back to Excel
✅ Please see link to videos mentioned in this video:
🎦 Power Query Advanced Editor: • Getting Started with t...
🎦 Power Query Custom Functions: • Power Query Custom Fun...
🎦 Power Query VLOOKUP: • 5 Ways to Use Merge in...
🎦 Power Query Parameters: • Power Query Parameters...
✅ If you would like to connect on LinkedIn:
🤝 www.linkedin.com/in/missmicrosoft
✅ If you would like to buy me a coffee, so I can get my caffeine in to keep creating as many videos as possible for you :). It's really quick and easy, please use this link:
☕www.buymeacoffee.com/missmicr...
✅ For more videos please subscribe:
🔔 / @missmicrosoft
✅ For more Power Query videos please use the links below:
🎦 Power Query in Excel Beginners Tutorial: Combine Multiple Excel Sheets, Automate & Transform Data: • Excel's Power Query: T...
🎦 Power Query Age Analysis - Create an Excel Age Analysis Report Using Power Query: • Power Query Age Analys...
🎦 Power Query Error Handling - How to Deal with Power Query Errors Part 1: • Power Query Error Hand...
✅ Please also check out my Excel course on Udemy, please use this link:
📖 www.udemy.com/course/excel-fo...

Пікірлер: 61

  • @MissMicrosoft
    @MissMicrosoft8 ай бұрын

    Be among the first 100 to jump on board "The Query Editor" newsletter 🚀. It's packed with super-actionable tips and insights. Why should you be excited? 🌟 Because the first 100 subscribers will receive an exclusive 50% discount on my upcoming mini-course, set to drop early next year (or perhaps even sooner)! 🤞Just hit this link to subscribe thequeryeditor.beehiiv.com/subscribe 🚀🔥

  • @jmathew6988
    @jmathew69886 ай бұрын

    Very clear and concise. This is exactly what I am looking for. Thank you!

  • @eefginis4926
    @eefginis49262 жыл бұрын

    Realy good and clear explained! Helped me a lot! Thanks

  • @MissMicrosoft

    @MissMicrosoft

    2 жыл бұрын

    You're most welcome and I'm so glad the video helped you eef!

  • @affneto
    @affneto10 ай бұрын

    I took 6 hours looking for this solution on web. Thank you very much for this clear and helpful video! The change on File/Option/ Privacy... amazing. Now I can continue my work!

  • @MissMicrosoft

    @MissMicrosoft

    10 ай бұрын

    You’re most welcome 😊, I’m glad the video was helpful!

  • @artemis2848

    @artemis2848

    2 ай бұрын

    @@MissMicrosoftHello, would it be possible to contact you please?

  • @gvinodnair
    @gvinodnair2 жыл бұрын

    Its pretty complex, but following this tutorial and setting up Power Query can save you tons of time and bring efficiency into your reporting. I do Agree.

  • @MissMicrosoft

    @MissMicrosoft

    2 жыл бұрын

    Thank you Vinod for your support always 😊 Power Query is pretty awesome :D

  • @artemis2848

    @artemis2848

    2 ай бұрын

    @@MissMicrosoft I found a bug in your system. Indeed, if you mark text in the cells above the first table “SalesData”, and if you add columns only in January. Each time you update, it will shift the text to the right, and if you update in February, it will also do the same thing. As a result, the text in the cells will move far to the right of the tables if you update in succession. Can I show you some screenshots or something?

  • @MrDhunpagla
    @MrDhunpagla2 жыл бұрын

    You are imaging ....... Thank you so much for sharing this & saving times of US ..keep Posting... 🙏🙏

  • @MissMicrosoft

    @MissMicrosoft

    2 жыл бұрын

    Thank you Dhun, I'm so glad you find the video helpful! And I will keep posting, your support means a lot :)

  • @PMO247
    @PMO2479 ай бұрын

    This video is amazing! You have taught me how to use Excel in ways that I never imagined. You have helped me to improve my skills and productivity. Thank you!!!

  • @MissMicrosoft

    @MissMicrosoft

    9 ай бұрын

    You are so welcome! I'm glad the video was helpful 😊

  • @mehtasanto
    @mehtasanto2 жыл бұрын

    Wow! Nicely explained.. today only I saw your video... going forward,Will keep on following you.

  • @MissMicrosoft

    @MissMicrosoft

    2 жыл бұрын

    Thank you so much Santosh! Appreciate the support :)

  • @ajinkyaankush3648
    @ajinkyaankush3648 Жыл бұрын

    Nice and clear explanation of dynamic parameters. Subscribed to your channel 😊

  • @MissMicrosoft

    @MissMicrosoft

    Жыл бұрын

    Thanks for the sub! :)

  • @minelysp
    @minelysp3 ай бұрын

    Hi it would be really helpful to learn how to rebuild data combination to prevent security issues when ignoring error

  • @MissMicrosoft

    @MissMicrosoft

    2 ай бұрын

    Hi, please check out this video here on how to rebuild the data combination: kzread.info/dash/bejne/hYCil9V6fJa9nrQ.htmlsi=iFrKgFf9uFEGarFI

  • @sandeshpadigela2079
    @sandeshpadigela2079 Жыл бұрын

    Wow What wonderful idea, Appreciate.

  • @MissMicrosoft

    @MissMicrosoft

    Жыл бұрын

    Many many thanks

  • @Faisal63045
    @Faisal630452 жыл бұрын

    Great thank you for sharing

  • @MissMicrosoft

    @MissMicrosoft

    2 жыл бұрын

    You're most welcome Faisal :)

  • @abdullah_alhathloul_
    @abdullah_alhathloul_2 жыл бұрын

    Great...Thanks so much

  • @MissMicrosoft

    @MissMicrosoft

    2 жыл бұрын

    You're most welcome Abdullah :)

  • @MahmoudSamir7oda
    @MahmoudSamir7oda2 ай бұрын

    Thank you so helpful

  • @MissMicrosoft

    @MissMicrosoft

    2 ай бұрын

    You're welcome!

  • @ramandeepsr
    @ramandeepsr Жыл бұрын

    Thanks!

  • @MissMicrosoft

    @MissMicrosoft

    Жыл бұрын

    You’re welcome!

  • @ankitbanka5628
    @ankitbanka56282 жыл бұрын

    Great video...

  • @MissMicrosoft

    @MissMicrosoft

    2 жыл бұрын

    Glad you enjoyed Ankit :)

  • @sajidiqbal7035
    @sajidiqbal7035 Жыл бұрын

    Nice 👍👍👍

  • @MissMicrosoft

    @MissMicrosoft

    Жыл бұрын

    Thank you!

  • @eriknegron1047
    @eriknegron10472 жыл бұрын

    Good video. Would be useful to have a video on rebuilding data combination :)

  • @MissMicrosoft

    @MissMicrosoft

    2 жыл бұрын

    Thanks Erik! I will definitely make that video. Please hit the notification bell so that you know when it’s released :)

  • @MissMicrosoft

    @MissMicrosoft

    2 жыл бұрын

    Hi Erik, please see the recent video that shows you how to rebuild the data combination, here is the link: kzread.info/dash/bejne/hYCil9V6fJa9nrQ.html

  • @gob2004

    @gob2004

    4 ай бұрын

    @@MissMicrosoftThank so much for your "rebuild" clip.

  • @pradeep4645
    @pradeep46456 ай бұрын

    Hi thank you for this video and I have created File path, but renaming to original table 'ExcelFilePath' Object is missing after File.Contents. please let me know if we have the solutions for this.

  • @thebhaskarjoshi
    @thebhaskarjoshi2 жыл бұрын

    Amazing Solutions.. We could create a dropdown for file path & Please make a video on rebuild data combination

  • @MissMicrosoft

    @MissMicrosoft

    2 жыл бұрын

    Thank you Bhaskar and yes you could definitely create a dropdown for file path. Here is the link to the video for rebuilding the data combination: kzread.info/dash/bejne/hYCil9V6fJa9nrQ.html

  • @thebhaskarjoshi

    @thebhaskarjoshi

    2 жыл бұрын

    @@MissMicrosoft Thank You!

  • @waelabughanimah3641
    @waelabughanimah3641 Жыл бұрын

    I set my power query to get data from folder (YYYY) this folder has excel sheets named Q.P MM, and it filters out any excel sheet doesnot start with Q.P. My question is can I apply this so i can change the source folder YYYY for different years as long as criteria Q.P MM still apply in all folders?

  • @tlee7028
    @tlee70282 жыл бұрын

    Thank you for your wonderful tutorials. How do I change data source when the gear icon is not available at Source in Query Settings?

  • @MissMicrosoft

    @MissMicrosoft

    2 жыл бұрын

    Hi T Lee, you're most welcome :). If the gear icon is not available at Source in your Query Settings, you have the option of editing the code in the Advanced Editor, click Home -> Advanced Editor or you can click on View -> Advanced Editor. Let me know if it works?

  • @entertainmenthub7700
    @entertainmenthub77006 ай бұрын

    Hello @missmicrosoft I am suffering an issue. I am connecting a cell path in excel to power query but once I change the path of trhre file irt do not work. can you help?r

  • @rizkyaditya5523
    @rizkyaditya55234 ай бұрын

    If the file based on cell path moves, will an error code appear/data cannot be refreshed?

  • @rogeriopenna9014
    @rogeriopenna9014 Жыл бұрын

    File names need to be the same? Oh no. I have a few hundred TXT files. I need to import one by one to Excel. My query already separates the TXT files by topics (headers) and transforms those into MARKDOWN text, so I use PowerAutomate Desktop to copy parts of the text and paste each part in an appropriate FIELD of a document system. The problem lies exactly in automating the change of source txt files used by PowerQuery. I have a list of the txt files. All in the same path. I can make PowerAutomate change the filepath and filename (based on that list) in a cell, and need PowerQuery to change the query source based on that.

  • @TempAccount-ij9zq
    @TempAccount-ij9zq Жыл бұрын

    I would like to learn how to rebuild the query as it seems more secure than ignoring privacy/security protections.

  • @MissMicrosoft

    @MissMicrosoft

    Жыл бұрын

    Hi I've made the video, please check it out here: kzread.info/dash/bejne/hYCil9V6fJa9nrQ.html

  • @eslamfahmy87
    @eslamfahmy87 Жыл бұрын

    If I have more than workbook in one folder and each workbook has a different names and I need to take one of those workbook to be as sample for rest of them and the upcoming workbook also what can I do

  • @MissMicrosoft

    @MissMicrosoft

    Жыл бұрын

    This video should help: How to Combine Multiple Files with Inconsistent Column Headers into a Single Sheet kzread.info/dash/bejne/hX-nzbZ8fsy7ecY.html

  • @eslamfahmy87

    @eslamfahmy87

    Жыл бұрын

    @@MissMicrosoft could use a custom function as sample file instead or what about (table.combain) function 🤔

  • @danielpamamartins
    @danielpamamartins2 жыл бұрын

    is it possible to use an IF statement to dynamic change the file path?

  • @MissMicrosoft

    @MissMicrosoft

    Жыл бұрын

    Hi Daniel, I’m not sure, IF you find out how let me know :)

  • @iankr
    @iankr2 жыл бұрын

    Thanks. What about where the file is in a SharePoint folder?

  • @MissMicrosoft

    @MissMicrosoft

    2 жыл бұрын

    Hi Ian, it's a pleasure. You can most certainly create a dynamic file path in an Excel cell where the file is in a SharePoint folder. I will release a video on this for you, please hit the notification bell so you're notified for when the video is released.

  • @iankr

    @iankr

    2 жыл бұрын

    @@MissMicrosoft Many thanks! I've subscribed to your channel with 🔔 notifications.

  • @MissMicrosoft

    @MissMicrosoft

    2 жыл бұрын

    Hi Ian, I will definitely release the video, work is just sooo busy, I will release the video as soon as possible, thank you for your patience.

  • @MissMicrosoft

    @MissMicrosoft

    2 жыл бұрын

    Hi Ian, please see link to latest video released showing how to do this: kzread.info/dash/bejne/dGFqk6uqpduWfbg.html Hope it helps!

  • @maximumaverage
    @maximumaverage11 ай бұрын

    This seems really inefficient for Excel, surprised Microsoft hasn't streamlined this process

Келесі