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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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?

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.