Forum Discussion

shaase4's avatar
shaase4
New Member
3 years ago
Solved

Power Query – How to expand and transpose a column table.

I use this query on our SharePoint Online (SPO) Hub which has 440 Sites:   https://<hostname>/_api/search/query?querytext='contentclass%3dsts_site AND departmentid%3d{<hubsite-id>}'&refinementfilte...
  • wdx223_Daniel's avatar
    3 years ago

    NewStep=Table.Combine(Table.TransformColumns(PreviousStepName,{"SiteData",each Table.FirstN(Table.PromoteHeaders(Table.Transpose(_)),1)})[SiteData])

     

    this will give you a table with 440 rows and 53 columns, but each value will be a table.