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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
PremK
Resolver I
Resolver I

UNABLE TO WORK WITH JSON FILE IN POWER QUERY EDITOR

I have connected Power BI with MongoDB Atlas using SQL ODBC Driver. In my collection(Table)  in mongodb  have 3 documents ( 3 Rows ) , and each document with multiple subdocuments within them, and those subdocuments have further subdocuments inside of them. while i bring the collection (table) Data in to PBI, in Power Query Editor the Subdocuments are in the form of BINARY. I  have tried to convert the Binary  into normal column and row data through Transfrom JSON document option, But it produces Lots and Lots of Duplicate Rows and unable to figure it the duplicate because  now it populates in to 900 rows, also produces lot f errors. 

How to work with this JSON file diredtly connected from MongoDB Atlas???

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

There are a couple of transforms you can try

 

Binary.ToText - PowerQuery M | Microsoft Learn

Text.FromBinary - PowerQuery M | Microsoft Learn

Json.FromValue - PowerQuery M | Microsoft Learn

 

Be aware that transitioning from a hierarchical (NoSQL) to relational (table) environment requires you to make compromises in the way you flatten the hierarchy. You cannot expect this to be a 1:1 transition. 

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

There are a couple of transforms you can try

 

Binary.ToText - PowerQuery M | Microsoft Learn

Text.FromBinary - PowerQuery M | Microsoft Learn

Json.FromValue - PowerQuery M | Microsoft Learn

 

Be aware that transitioning from a hierarchical (NoSQL) to relational (table) environment requires you to make compromises in the way you flatten the hierarchy. You cannot expect this to be a 1:1 transition. 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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