Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
rchiang
Frequent Visitor

Combining 2 columns into 1 new long column

Good Morning,

 

I'm currently trying to combine 2 columns with the same drop down options (so same text datasets) so I can use a visualization to see the total amount of times each categories were used. Each line is linked to the accounts those categories were featured at. 

 

So I want to be able to see 1 visualization with the accounts down 1 axis and the categories on the other axis. 

 

 2 text column to 1.jpg

 

Thanks! 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @rchiang,


Maybe you can try to use unpivot table feature to convert these columns to key and value columns, then remove duplicate records. After these steps, you will get merge records.

Power Query Unpivot Scenario

 

Regards,

Xiaoxin Sheng

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

HI @rchiang,

 

You can try to use below formula to get merged unique list:

NewTable =
DISTINCT (
    UNION ( VALUES ( 'Table'[Product1] ), VALUES ( 'Table'[Product2] ) )
)

 

Regards,

Xiaoxin Sheng

Hi @AnonymousXiaoxin,

 

Thank you for your help for that.

 

I should have showed the actual table I want combined

2017-11-27_10-28-54.jpg

 

I want to have 1 column that will show the account with category .

 

So it would be 

Column 1 / Column 2 

PCM US / Docks and Hubs

PCM US / Racks and Enclosures 

 

Thanks again! 

Would that be possible? 

Anonymous
Not applicable

HI @rchiang,


Maybe you can try to use unpivot table feature to convert these columns to key and value columns, then remove duplicate records. After these steps, you will get merge records.

Power Query Unpivot Scenario

 

Regards,

Xiaoxin Sheng

Hi @Anonymous,

 

Thank you so much for the uppivot suggestion it worked out perfectly.

 

Thanks! 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors