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
data4thewin
Frequent Visitor

Extracting Data from a JSON Blob Column

I have a table that contains a JSON Blob in one of it's columns.  Can I extract the data into a tabular format?

 

  1. {"$version":1,"observations":{"pests":{"41":{"count":{"unit":{"id":3,"name":"per trap"},"value":12},"notes":"Found bug"}}}}
  2. {"$version":1,"observations":{"general":{"50000":[{"count":{"unit":{"id":35},"value":30},"name":"Mildew"}]}}}
  3. {"$version":1,"observations":{"pests":{"340":{"count":{"value":2,"unit":{"id":4,"name":"per leaf"}},"notes":"Live Mites"}}}}
  4. {"$version":1,"observations":{"pests":{"36":{"count":{"value":13,"unit":{"id":45,"name":"per 180 sweep"}}}}}}
  5. {"$version":1,"observations":{"general":{"50000":[{"name":"RV 11, 23N, 24N, 25, 26","notes":"Getting treated with raptor amd butyrac now. Larger weeds wont die but should slow down. "}]}}}

Thanks!

1 ACCEPTED SOLUTION

Hi @data4thewin,

 

Perhaps you can refer to below sample file.

BTW, if you want format multiple records, I'd like recommend you use the records which has similar structure.

 

Regards,

XIaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

4 REPLIES 4
v-shex-msft
Community Support
Community Support

Hi @data4thewin,

 

Since each row has different element, I'd like to suggest you convert these to multiple tables with different structure.
After format these tables, you can use table.combine function to merge them.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

How would I get started converting them to multiple tables?

Hi @data4thewin,

 

Perhaps you can refer to below sample file.

BTW, if you want format multiple records, I'd like recommend you use the records which has similar structure.

 

Regards,

XIaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Thank you!!

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.