Forum Discussion

Ola's avatar
Ola
Frequent Visitor
9 years ago
Solved

Pivot text to table

 

Is it possible to do a Pivot Text Table, with PowerQuery ? 

 

 

ContentType --->HeaderVotesCommentStatus
Pivot tables and breakdown treesHeader Pivot tables and breakdown trees6,50562 commentsstarted
6,505Votes Custom branding/colour scheme of dashboard (custom css?)3,08566 commentsstarted
62 commentsComments send report or dashboard as email3,536106 commentsstarted
startedStatus Refresh dashboards tiles when i change a report39521 commentsstarted
  • Ola It seems you need an additional column like in the picture (I've named it Idea Number) and then it works :smileyhappy:

     

6 Replies

  • richbenmintz's avatar
    richbenmintz
    Resident Rockstar

    There is a Pivot transformation in Power Query, see the steps below

     


    Raw Data

    Select Pivot Transform

    select the column that contains the headers to pivot 

    -> select Pivot transform from transform ribbon

         -> select advanced and choose no aggregation

     

    Transformed Data

    • Sean's avatar
      Sean
      Community Champion

      richbenmintz I think Ola should have posted this a sample data set based on the desired output

       

      Content

      Type

      Pivot tables and breakdown trees

      Header

      6,505

      Votes

      62 comments

      Comments

      started

      Status

      Custom branding/colour scheme of dashboard (custom css?)

      Header

      3,085

      Votes

      66 comments

      Comments

      started

      Status

      send report or dashboard as email

      Header

      3,536

      Votes

      106 comments

      Comments

      started

      Status

      Refresh dashboards tiles when i change a report

      Header

      395

      Votes

      21 comments

      Comments

      started

      Status

       

      That's when you get the error!

      • richbenmintz's avatar
        richbenmintz
        Resident Rockstar

        Sean, not sure what error you are referring to? I was simply trying to answer the question as asked