Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Transpose multiple columns into single column retaining the main column

Greetings,

I'm bagging my head against the wall trying to transpose/pivot my data. Here's my dataset below:

Sales IDTicket 1Ticket 2Ticket 3
1Funnynullnull
2HappySeriousnull
3FunUglyVanity

 

What I'm trying to do in my table is this:

Sales IDTicket
1Funny
2Happy
2Serious
3Fun
3Ugly
3Vanity

 

Does anyone know how I do this in Power BI, I did it before but was a long time ago?

  • Power Query. select 1st column. Right-click.  Unpivot other columns

2 Replies

  • HotChilli's avatar
    HotChilli
    Icon for Community Champion rankCommunity Champion

    Power Query. select 1st column. Right-click.  Unpivot other columns

  • Anonymous's avatar
    Anonymous
    Not applicable

    HotChilli Awesome, thank you, could not figure it out 🙂