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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register 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 ?

5 REPLIES 5
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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.