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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
orghn
Helper I
Helper I

Error Import many JSON from folder

Hi, I have many JSONs in a folder an I need to combine and transform with power query.

 

The issue is that the JSONs have different date ranges, so when I try to Export all the JSONs from a folder, it gives me an error.

 

This are 2 sample files:

https://www.dropbox.com/s/ubg8xfa6vuqef8d/out_nuevog1.json?dl=0

https://www.dropbox.com/s/voo3mlycf6ui22w/out_nuevog2.json?dl=0

 

orghn_0-1654179631735.png

 

1 REPLY 1
lbendlin
Super User
Super User

Combining the files is the easy part

 

let
    Source = Folder.Files("C:\Users\xxx\Downloads"),
    #"Filtered Rows" = Table.SelectRows(Source, each Text.StartsWith([Name], "out_n")),
    #"Removed Other Columns" = Table.SelectColumns(#"Filtered Rows",{"Content", "Name"}),
    #"Added Custom" = Table.AddColumn(#"Removed Other Columns", "Custom", each Record.ToTable(Json.Document([Content],1252))),
    #"Expanded Custom" = Table.ExpandTableColumn(#"Added Custom", "Custom", {"Name", "Value"}, {"Name.1", "Value"})
in
    #"Expanded Custom"

 

But then you have to decide how to parse the JSON - that is something you need to do before you can continue.

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.