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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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?

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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