Forum Discussion

RobHaigh's avatar
RobHaigh
New Member
2 years ago
Solved

How to combine multiple rows in to columns

Trying to get my head round Dynamics 365 Finance and Operations and Power BI.
Finance and Operations holds product data and each product can have multiple attributes against it.
Due to the way Finance and Operations stores the data it looks initially like this.

ProductCodeAttributeNameTextValue
10000Size5
10000FinishMatt
10000HexABCDE
20000Size2
20000FinishGloss
20000HexDEFGH
30000SizeRoll
30000Length6
30000MatchFull
30000WashableYes


For ease of reporting in Power BI I would like to transform it to look like this.

ProductCodeSizeFinishHexLengthMatchWashable
100005MattABCDE   
200002GlossDEFGH   
30000Roll  6FullYes

I am a bit stuck / end of my knowledge / patience   πŸ™‚

Cant get it to work.....

Anyone got any ideas?

  • Hi RobHaigh ,

     

    In Power Query, select your [AttributeName] column, go to the Transform tab > Pivot Column and set up the dialog like this:

     

    ...to get this output:

     

     

    Pete

2 Replies

  • Hi RobHaigh ,

     

    In Power Query, select your [AttributeName] column, go to the Transform tab > Pivot Column and set up the dialog like this:

     

    ...to get this output:

     

     

    Pete

  • Pete, Many thanks, saved me a ton of head scratching πŸ™‚