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

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.

Reply
davidshq
New Member

Is it possible to load a directory of JSON files and have their contents as the data source?

Hi All,

 

Just starting out with PowerBI. I know I can use a JSON file as a data source and that I can use a folder as a data source, but I'm wondering how I use a directory of JSON files as my data source?

 

I successfully setup the folder as a data source but that just returns info. on the files in the folder, not the content of the files, which is what I'm really looking for.

 

Any suggestions?

 

Thanks,
Dave

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

When you load your query, you should get a "Transform File from json" group of queries. Click on the one that says "Transform Sample File from json". It will have a table icon next to it. You should see that you have one or more columns that say "Record" or something similar. There will be divergent arrow icons in the column headers. Click those and choose to expand. Continue expanding as necessary.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
Greg_Deckler
Super User
Super User

When you load your query, you should get a "Transform File from json" group of queries. Click on the one that says "Transform Sample File from json". It will have a table icon next to it. You should see that you have one or more columns that say "Record" or something similar. There will be divergent arrow icons in the column headers. Click those and choose to expand. Continue expanding as necessary.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hmmm...I'm not seeing that. Here is what I am seeing:

 

First window that displays after I select the folder of json files as data sourceFirst window that displays after I select the folder of json files as data sourceWindow that displays after the files have been loaded.Window that displays after the files have been loaded.

If I click on the data tab on the left side of previous screen.If I click on the data tab on the left side of previous screen.

Click the drop down arrow on Combine button and choose Combine and Edit.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
davidshq
New Member

Hi Folks,

 

I'm just starting with Power BI. I have a directory full of JSON files. I don't want to query against a single one of the files but against the directory as a whole.

 

I see I can load a JSON file as a data source or I can load a directory as a data source, but the loading a JSON file doesn't let me select the entire directory and the load a directory seems to pull in info about the file rather than the contents of the file.

 

Is there a way for me to load the entire directory but have it load the actual contents of the files rather than just info. about the files?

 

Thanks

Dave

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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