cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

Is it possible to extract filterable properties from a text field containing a json object?

I have some metadata describing some servers that I need to do some live statistics of. The meta is just a JSON object with properties like "server-uuid":"jklsdfjklsdjfdkl","server-nickname":"NGINX-FW_2" etc.

I would like to do some filtering etc. based upon properties in the json object without having to create a table that matches the the properties.
Is Power-BI able to a analyse a column with JSON objects for properties and match against the values or do I have to do a manual splitting into a support table with FK-PK relations to get the properties exposed.

 

Br.
Jes R

2 REPLIES 2
Microsoft
Microsoft

Hi @Laro88,

 

I believe it should be possible. Could you post some sample/mock data and the expected result against it, so that we can better assist on this issue? Smiley Happy

 

Regards

There seems to be no proper support for JSON in Power BI - at least not in any well documented way.

 

The solution was to use SQL servers JSON support and put this into a view accessible from power bi

, JSON_VALUE(json, '$.cloudinfo_uuid') AS cloduinfo_uuid, JSON_VALUE(json, '$.cloudinfo_name') AS cloduinfo_name

 

A view is also nice for pre mangling the data like merger of two columns into one as done here (extra data but no PowerBI handling and mangling).

SELECT Id, identifierid, ts, statusgroup, ident, keyname, value, statusgroup + '-' + ident AS sgandident
FROM     dbo.[statistics]

 

 

Helpful resources

Announcements
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Microsoft Ignite

Microsoft Ignite with Arun Ulag

Featured Session: Drive Data Culture with Power BI- Vision, Strategy & Roadmap. Register here https://myignite.microsoft.com #MSIgnite #PowerPlatform #Power BI ​

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors