No video

Sharing Files with Power Query Parameter Feature

  Рет қаралды 7,568

Doug H

Doug H

Күн бұрын

When you are sharing Power Query files, it's usually not an issue to update and refresh your data. However if your source file and your file that is the final output for analysis are separate files, it becomes an issue. You're sending two separate files to your co-workers and expect this to work? Good luck, unless you have an easy way to make your links to the source file link. That could be done fairly easily with a parameter. Check out the video to see how you can make sharing Power Query files seamless.
🔔 SUBSCRIBE to my channel ➜ goo.gl/wN3c3p
🏫 Excel Training ➜ www.exceltrain...
📚 Excel Books & Tech Gear ➜ www.amazon.com...
⚙️ Tools: Screencasting ➜ techsmith.z6rj...
⚙️ Tools: Microsoft Office ➜ microsoft.msaf...
⚙️ Tools: TubeBuddy ➜ www.tubebuddy....
📝 This description may contain affiliate links and we'll receive a small commission if a purchased is made using the links (but at no additional cost to you). It'll support the channel and so more videos like this can be made. Thanks for your support!
🎁 If you find these videos useful and want to support my channel go to
www.buymeacoff...
#excel
#msexcel
#doughexcel

Пікірлер: 15
@wayneedmondson1065
@wayneedmondson1065 2 жыл бұрын
Nice one Doug! Usually, I store the path in a named range on the worksheet and then use that as the parameter in my query. But, nice to know multiple options. Thumbs up!!
@DougHExcel
@DougHExcel 2 жыл бұрын
Hi Wayne , thanks for the comment! So many ways to do similar stuff in PQ/Excel; that's why I ♥ Excel!
@purlsquinn
@purlsquinn 11 ай бұрын
Excellent overview. I'm building a query for someone, and I wanted them to easily change the path so they can load their proprietary data. This was a perfect example!
@DougHExcel
@DougHExcel 11 ай бұрын
Thanks Purls Quinn, glad it helped!
@lenac3587
@lenac3587 2 жыл бұрын
Hey Doug, I actually store the filepath as a cell in a table. Load it into power query and turn it into a list which gets picked up as a parameter which you showed in your demo. That saves me a couple of steps and time
@DougHExcel
@DougHExcel 2 жыл бұрын
Thanks for the comment; incorporating the source path in a worksheet table is also another way (and easier!) to do this!
@lenac3587
@lenac3587 2 жыл бұрын
@@DougHExcel Apparently, just found out there's an even shorter step than loading the filepath cell as a table into pqy. Saving it as a named range works even better without having to load into pqy and using it as a parameter. Well your video helped open up this new discovery :)
@jerrydellasala7643
@jerrydellasala7643 2 жыл бұрын
This is fine, but there are easier ways to get the path into a query. Assuming both files are in the same directory, you can have a cell with the formula: "=LEFT(CELL("filename"),FIND("[",CELL("filename"))-2)" This will return the folder path without the trailing backslash of the current file. That cell can be put into a table and a query created using that table. Drill Down to the only row and column in the table and you get the path. Name the query FilePath and then use that the same as you show in the video. If you provide a sub folder for the source data and the other person uses the same data sub folder (such as extracting a Zip file with sub folders), the formula above can be easily set up to add that folder to the result of the function by adding "&"\DataFolder" to the formula. Alternatively, if you don't know where the other person will put the source data file, you can provide a simple one row (one column) table that has the text of the source file's path that can be manually updated, and then used to provide the query the path to the file. One warning about the CELL function. It reports the information (File Path in this case) of the most recently used workbook after the last recalc of any open workbook. Thus, if you have 2 workbooks open, and you do something that invokes a recalc and then switch back to the Workbook with the query, the cell with the formula above may have the wrong value. Hitting [F9] to recalc should update the value in the cell. One other thing, I consume a lot of Excel videos, and they're always more enjoyable when you there are starting sample files to follow along with. A finished file is nice, especially with complicated formulas and queries, but not essential. I really enjoy your videos, and hope you don't take this post the wrong way. I'd love to see you use this technique in another video! Thanks for all your work.
@DougHExcel
@DougHExcel 2 жыл бұрын
Thanks for the thorough comment! It’s an indication of engagement from folks like you😁 Just wanted to show different ways to do things in Excel. It’s a great tool that have many avenues to the same destination. I also have another video that goes about the steps you outline above😉
@nethikarnarendra4884
@nethikarnarendra4884 2 жыл бұрын
Awesome solution 👍
@DougHExcel
@DougHExcel 2 жыл бұрын
Thanks!
@OzduSoleilDATA
@OzduSoleilDATA 2 жыл бұрын
Good stuff!
@DougHExcel
@DougHExcel 2 жыл бұрын
Thanks!
@khadamich
@khadamich 9 ай бұрын
I was wondering if there is a way to do that automatically. Let's say Lisa has no idea of how to use Power Query. Is there any way I could do that? Like, update the path automatically because as you mention, most of the path is the same except by the users name. Soy maybe if I could have that relative path changing everything could be solve both tbh I dont know how to do it using Power Query
@DougHExcel
@DougHExcel 9 ай бұрын
this might give an idea kzfaq.info/get/bejne/irx0a616qKiUe2g.htmlsi=0Q7TyMaz1Xv97XxZ
How to Copy a Power Query query from one Excel workbook to another one
11:02
Celia Alves - Solve & Excel
Рет қаралды 27 М.
Power Query connect to OneDrive and SharePoint |  Excel Off The Grid
6:42
Excel Off The Grid
Рет қаралды 14 М.
OMG what happened??😳 filaretiki family✨ #social
01:00
Filaretiki
Рет қаралды 13 МЛН
Joker can't swim!#joker #shorts
00:46
Untitled Joker
Рет қаралды 41 МЛН
Happy birthday to you by Tsuriki Show
00:12
Tsuriki Show
Рет қаралды 12 МЛН
WILL IT BURST?
00:31
Natan por Aí
Рет қаралды 29 МЛН
Power Query - Avoid "Helper Queries" (+10 Cool Tricks)
18:40
Create a Dynamic File Path in Power Query
13:18
Goodly
Рет қаралды 92 М.
How to easily automate boring Excel tasks with Power Query!
17:10
MyOnlineTrainingHub
Рет қаралды 1,5 МЛН
10 Excel Things You Should NEVER Do and What to do Instead
12:34
MyOnlineTrainingHub
Рет қаралды 589 М.
How to Combine Multiple Excel Files using Power Query
9:57
Excel Macro Mastery
Рет қаралды 17 М.
OMG what happened??😳 filaretiki family✨ #social
01:00
Filaretiki
Рет қаралды 13 МЛН