Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I need to get list of image files in a folder and subfolders
But when I use data sources type as Folder, It requires a lot of time to refresh because image data is too big.
So I manually use DOS command, “dir/w /s /s > text.txt” to get the list quickly and then get data from the text file.
Is there any way to get list of image files as fast as the DOS command “dir/w”
Hi @YonghunLee
It shouldn't take long to refresh the list of files. I just did a test on my PC with 16,000+ images and it took a couple of seconds.
What data are you trying to retieve though? If you are including the Binary column in the list of results, PQ will try to access that data. If the Binary content is not available maybe because it's on OneDrive and the OneDrive app is turned off on your PC, or the image is on a network share you can't access - that will slow the query a lot.
Are you getting any errors on refresh?
What data are you loading into the final table? If you just want the image path/name then remove all other columns - particularly Binary.
Regards
Phil
If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.
Proud to be a Super User!
@YonghunLee , see if content of this blog can help you https://radacad.com/get-the-list-of-folders-only-in-power-bi-using-power-query
No. that blog does not give me the solution
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
83 | |
70 | |
60 |
User | Count |
---|---|
150 | |
115 | |
104 | |
89 | |
65 |