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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Mbstrand
Frequent Visitor

Concatenate Text Columns into a Single Column

I am trying to combine 3 text columns into a single, "master" column that can more easily be used for search. 

 

Example:

 

Table_Contacts

      Column_SalesRep1

      Column_SalesRep2

      Column_SalesRep3

 

I have tried several approaches, created a new Table with just the fields I want to search against, but the Slicer isn't working. 

 

Thanks for any suggestions!

 

 

1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
Microsoft Employee

You could unpivot the 3 columns and get all the values in one column that you could use in the slicer and/or the search column.  If you can't do that, you can use SELECTCOLUMNS and UNION to combine the 3 columns into a single column of distinct values.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

4 REPLIES 4
mahoneypat
Microsoft Employee
Microsoft Employee

You could unpivot the 3 columns and get all the values in one column that you could use in the slicer and/or the search column.  If you can't do that, you can use SELECTCOLUMNS and UNION to combine the 3 columns into a single column of distinct values.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


mahoneypat
Microsoft Employee
Microsoft Employee

Why not just concatenate the columns in the query editor (or with a DAX column)?  A custom column in query with 

= [Column_SalesRep1] & " " & [Column_SalesRep2] & " " & [Column_SalesRep3]

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Hi Pat, so this solution DOES work for search.   (Thanks!)    Now, I'd like to use a Slicer where all of the Sales Reps are listed in the drop down (not combined).

Thanks Pat for the suggestion!   I did try this, but it's combining the Sales Rep names by Account in a single cell.  I'd like one Sales Rep per cell.  ???

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors