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
Montechristos01
New Contributor III

Custom visualization that expands JSON to columns dynamically

This is a re-posting of another thread, but this time for a custom visual:
https://community.fabric.microsoft.com/t5/Desktop/Dynamic-table-based-on-JSON-column/m-p/4418782#M13...

 

We have a data source that is a table of fixed columns, as well as an additional column with JSON of the form:
{"Column 1": "value", "Column 2": "value", ... }

The table represents records from different entities that fail some validation criteria.
(let's say 100 entities in total, each entity with 20 columns, each entity containing 500 failing records)

We will never show a single table for different entities together, we will first filter on each entity separately.

Once the filtering is done, we want to display all the records of this entity in an expanded table.

We could build one report per entity, expanding all its JSON columns, but this is too cumbersome.

Hence the need to filter 1st, and then display the expanded table.

 

Screenshot 2025-02-20 at 11.40.34โ€ฏAM.png

 

 

The table should be a 'normal' PBI table, with sorting, filtering, conditional formatting, etc.

 

This is the output expected after filtering on 'Apples'

Screenshot 2025-02-20 at 11.47.19โ€ฏAM.png

โ€ƒ

Any direction on how to achieve this is welcome

1 REPLY 1
lbendlin
Esteemed Contributor III

The only way you can get this to work is to unpivot the data.  Then you can let the matrix visual do the re-pivoting.

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.

Top Solution Authors
Users online (14,771)