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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
patrickmlsk
Frequent Visitor

Expand column with JSON file

Hey!

 

I want to expand three values from a field in a JSON column of a table and add these three values as new columns into the table. The javascript is constructed in the same way all the time. So as an example: 

 

The javascript looks like this:

 

{
  "type": "XXX",
  "currenttype": 0,
  "typecontent": [
    {
      "angleSide": "none",
      "direction": "none",
      "size": {
        "x": XXX,
        "y": XXX,
        "z": XXX
      },
      "sizeTop": {
        "x": XXX,
        "y": XXX,
        "z": XXX
      },
      "sizeOuter": {
        "x": XXX,
        "y": XXX,
        "z": XXX
      },
      "materials": {
        "front": "XXX",
        "back": "XXX",
        "top": "XXX"
      },
      "typearticlenumber": "XXX",
      "articlenumber": "XXX",
      "elements": [

etc. ... 

The three values that are of importance are: "front", "back", "top". So ideally the table should look like this:

 

Thanks for the help!

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

@patrickmlsk ,

 

After import the json file, you can click list-> Record-> Record(Material)s, then click "Into Table", click column "Name" column, then click Transform-> Pivot Columns.

1.PNG 

The result will be like below;

2.PNG 

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yuta-msft
Community Support
Community Support

@patrickmlsk ,

 

After import the json file, you can click list-> Record-> Record(Material)s, then click "Into Table", click column "Name" column, then click Transform-> Pivot Columns.

1.PNG 

The result will be like below;

2.PNG 

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 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.