Power Query - Data from many folders with Single Query

  Рет қаралды 16,706

BA Sensei

BA Sensei

Күн бұрын

Пікірлер: 33
@Imopanemo
@Imopanemo 10 ай бұрын
This was very helpful - I've been looking for something that will a) use folders names in data b) use sheet names in data c) use file names as data d)to be able to define which exactly folders are to be used. Because I have different types of data, I will use 3-4 of the above, but data will have much better structure.
@katewickersham4928
@katewickersham4928 Жыл бұрын
This was incredibly helpful. Thank you so much for posting!
@alexrosen8762
@alexrosen8762 Жыл бұрын
Fantastic tutorial. Very insightful and useful 🙏
@bushehrnoshishi
@bushehrnoshishi Жыл бұрын
This was so much work for a function that Power Query performs on its own. Just Get Files from the folder one hierarchy up and you can do it in what 3-4 steps rather than 9!
@basensei8699
@basensei8699 Жыл бұрын
fair enough ! those default queries using the ui are often much slower especially on massive datasets. I've had some clients with very large datasets pulled in via the default UI method sit with massive performance issues.
@bushehrnoshishi
@bushehrnoshishi Жыл бұрын
@@basensei8699 As I aren't allowed to use DAX Studio at work to test the performance of my code vs PQ UI I will always opt for what feels faster - either coding or UI. But sure in case of performance issues your code will be of great help :)
@apamwamba
@apamwamba 9 ай бұрын
@@basensei8699 True!!
@thinmya8972
@thinmya8972 Жыл бұрын
very cool trick
@apiphabibjet2863
@apiphabibjet2863 Жыл бұрын
The power query tricks are very cool, at least I do the address of the folders to work with vba, I subscribed to your channel, it's very good, the possibilities that power query gives us are almost unlimited to deal with this type of problem and save us many hours of work.
@basensei8699
@basensei8699 Жыл бұрын
excellent thanks Apip ! i tell you Power query is just to amazing! the things you can do with it it almost endless.
@pavel_stafeev
@pavel_stafeev Жыл бұрын
Amazing. Really helpful!
@pascaljoly5752
@pascaljoly5752 10 ай бұрын
good tutorial. i knew how to combine multiple files with multiple sheets from from the same folder, not from multiple folders. not sure i'll have a need for it at this stage but i kindda want to just so i can practice :) thanks a lot
@apamwamba
@apamwamba 9 ай бұрын
You can easily do it from many folders i.e subfolders but BA Sensei HAS DONE IT WITH ONE QUERY and at the same taching me how to use custom functions. BA SENSEI is COOL!! Really need to learn custom functions and parameters...WOW!!
@kebincui
@kebincui Жыл бұрын
Cool 👍
@rogervandecraen9797
@rogervandecraen9797 3 ай бұрын
very interesting and well clear explained. what if each of the files in the subfolder is pasword protected does this still works? If not is there a workarround
@basensei8699
@basensei8699 2 ай бұрын
passwords have a workaround. but i'll put it in another video at some stage.
@rogervandecraen9797
@rogervandecraen9797 2 ай бұрын
@@basensei8699 thanks for working on a video on that problem, can 't wait to see it and solve my problem.
@rogervandecraen9797
@rogervandecraen9797 2 ай бұрын
@@basensei8699 thanks for initiative, can't wait to see it. hopefully it will solve my problem.
@claudio1028
@claudio1028 Жыл бұрын
Hi! Thanks very much! Is it possible for a folder with csv files?
@LeithSymes
@LeithSymes 6 ай бұрын
Hi James, Is there a way to do this in a folder that contains excel, pdf, word docs etc that we obviously don't want PQ to look at?
@vishalgaikwad6333
@vishalgaikwad6333 Ай бұрын
@Ba sensei can we do it without combining them?
@basensei8699
@basensei8699 Ай бұрын
yes indeed!
@aqgh1
@aqgh1 3 ай бұрын
This is very useful. So hard even a caveman can do it.
@basensei8699
@basensei8699 2 ай бұрын
glorious!
@aparnac48
@aparnac48 Жыл бұрын
Hi, I tried this solution with locally stored files. It works well. However, I tried using SharePoint link, it is giving me an error. Could you please help me use this solution with SharePoint folders? Thanks
@basensei8699
@basensei8699 Жыл бұрын
ill see if i can make a video on sharepoint next
@karthikvu452
@karthikvu452 Жыл бұрын
Hi, did u get it how to do it using sharepoint?
@dragisadjedovic6505
@dragisadjedovic6505 7 ай бұрын
Hi, Great video. Great tutorial. However, i am generating dataset from multiple folders (on File Server) with this method and it works fine in PBI desktop. However, when i upload it to PBI Report Server, and perform scheduled refresh (or just refresh it ad hoc) it gives me message "This report contains dynamic datasources, which cannot be refreshed in Power BI Report Server." Can you maybe help with this. Any kind of suggestion will do. Thanks
@basensei8699
@basensei8699 6 ай бұрын
ooo thats maybe a good one for me to do in a PowerBI Service. I've had some of those issues also recently!
@dragisadjedovic6505
@dragisadjedovic6505 6 ай бұрын
@@basensei8699 thanks in advance. I'm looking forward to that video, because this is a classic example from everyday practice
@pascaljoly5752
@pascaljoly5752 9 ай бұрын
I have noticed that i can add folders and i can then refresh the query but if i delete one, the query doesn't work. it gives me the following error message: "We cannot convert the value null to Type text". is it normal? i'd have thought the query shoudl update automatically based on the folders we have.
@pascaljoly5752
@pascaljoly5752 9 ай бұрын
it's ok, i found a fix. i reloaded the table that includes the folder names and paths and as i had deleted manually one of the folders, it showed a row with null values in power query which i filtered out. now, it still works if i add a folder but if i delete one, it works too!
Power Query - Avoid "Helper Queries" (+10 Cool Tricks)
18:40
Running an SQL Injection Attack - Computerphile
17:11
Computerphile
Рет қаралды 4,5 МЛН
小路飞和小丑也太帅了#家庭#搞笑 #funny #小丑 #cosplay
00:13
家庭搞笑日记
Рет қаралды 13 МЛН
How to process multiple folders with a single Power Query script
13:17
Exceed Learning
Рет қаралды 14 М.
How to combine (and debug) Excel files From SharePoint Folder
14:17
Access Analytic
Рет қаралды 40 М.
Do-While Loop in Power Query with List.Generate
10:42
Power-M-Query
Рет қаралды 1,9 М.
Combine Files with DIFFERENT Headers in Power Query | TWO Examples
11:47
Efficiently extract Data Multiple Folders in Power BI
12:50
AI for Everyone
Рет қаралды 3,6 М.
How to Merge Excel Files (Without Using VBA) - 4 Easy Ways
9:04
Excel University
Рет қаралды 225 М.
How to Move Data Automatically Between Excel Files
11:37
Kenji Explains
Рет қаралды 212 М.