Power query - expanding lists to columns

cajste

Board Regular
Joined
Oct 22, 2012
Messages
67
Hi,

I have a problem importing a json file into power query. A record looks like below. Expanding user and client is not a problem, new columns are inserted as they should, but expanding custom and orderRow, that are lists, inserts rows instead and I need to have them inserted as columns.

Haven't figured out how to do that, anyone who can help me?

Thanks!
Caj

NameValue
id1
descriptionTest
closeDate2017-06-21
date2017-06-21
notes
user[Record]
client[Record]
contactnull
projectnull
regDate2017-06-21T06:54:30.000Z
stage[Record]
probability100
modDate2017-06-21T06:54:42.000Z
clientConnectionnull
currencyRate1
currencySEK
locked0
custom

<tbody>

  • [TR]
    [TD]orderRow[/TD]
    [TD]
    • [/TD]
      [/TR]
      [TR]
      [TD]value[/TD]
      [TD="align: right"]5[/TD]
      [/TR]
      [TR]
      [TD]weightedValue[/TD]
      [TD="align: right"]5[/TD]
      [/TR]
      [TR]
      [TD]valueInMasterCurrency[/TD]
      [TD="align: right"]5[/TD]
      [/TR]
      [TR]
      [TD]weightedValueInMasterCurrency[/TD]
      [TD="align: right"]5[/TD]
      [/TR]
      [TR]
      [TD]agreement[/TD]
      [TD]null[/TD]
      [/TR]
      [TR]
      [TD]userRemovable[/TD]
      [TD]TRUE[/TD]
      [/TR]
      [TR]
      [TD]userEditable[/TD]
      [TD]TRUE[/TD]
      [/TR]
      </tbody>
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,214,375
Messages
6,119,167
Members
448,870
Latest member
max_pedreira

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top