Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Amar-Agnihotri
Resolver I
Resolver I

want to connect to subfolders in datalake gen 2 in power bi desktop

I am having sub folders in azure datalake gen 2 as shown 

AmarAgnihotri_0-1653560573715.png

The path is openair / prod / all_files_from_sftp_server

 

Now i want to access files of the last subfolder ( all_files_from_sftp_server) in power bi desktop . I am trying to use CDM folder view (beta) option 

AmarAgnihotri_1-1653560693973.png

I am able to navigate through the subfolders but no files are showing . 

AmarAgnihotri_2-1653560752417.png

can anybodey help me to access the files from subfolders ?

6 REPLIES 6
beeramniharika
New Member

Hi @Amar-Agnihotri 
I am facing the same issue. Could you please let me know the solution if you have resolved it?

Awachit
New Member

Hii,

Were you able to get data from subfolder?

hi @Awachit ,

You can acces the data from sub folders only if you make that container a CDM means Common Data Model Functionality.  To do that you should have a model.json file inside the container . It is not easy to create a model.json file for a very large number of tables so i used another approach. I configured my workspace in Power bi service with azure data lake rather then generic data lake, then i created a data flow inside the same workspace. Now, whenever a dataflow will be refreshed it will create a model.json files inside the container alongwith the data snapshots. This is the only way you can do if you are not having a model.json file. 

@Awachit 

If you come to know about any tool or script through which you can create model.json file then please let me know 

Amar-Agnihotri
Resolver I
Resolver I

hi @amitchandak ,

thanks fro the reply. My last subfolder is all_files_from_sftp_server and it is containg 56 csv files so when selecting this folders all the files should be doiaplayed in the preview but nothing is displaying in the preview Please see the attached gif PowerBi_adlsgen2.gif

amitchandak
Super User
Super User

@Amar-Agnihotri , Using that down allow, open, and check are there more sub folders?

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.