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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
MykytYla
Frequent Visitor

Append columns from 1 table for using in visual Slicer

Dear community I ask your advice.

I have table with two addresses and I want to append these two addresses just for using in the slicer and map. Is it possible? Thank you in advance.

I need Slicer

-LE Code

-LE Name

-Address (Append LE address and Office_adress) (they are different view? but it doesn't matter)

-Country

I have table 

LE CodeLE NameLE_addressOffice_addressCountry
QWSharebuild. 1, Little Falls Drive, Wilmington, 19808-1674, USAHeroiv Dnipra, 4/2Ukraine
QWSharebuild. 1, University Drive, Newtown, 18940, USAZhibek Zholy, 135/10aUSA
TRThinkbuild. 5, Degrees North Pilgrim Street, Newcastle, United KingdomSoho Limassol, 142nd floor, Anexartisias 187, Limassol 3040United Kingdom
TRThinkbuild. 53, Churchill Place, London, , United Kingdom11 Chang De Road, 15/FUnited Kingdom
VAVaitbuild. 78, 7, Avda. Colón, Córdoba, X5000EPU, Argentina70 Hindmarsh SquareArgentina
VAVaitbuild. 78, Colón, Córdoba, X5000EPU, ArgentinaSerdara Jola Piletica 32Argentina
OLVlogbuild. 46, Del IncaEdificio Vitae, Las Condes, 7550000, Chile110 S Hartford Avenue, Suite 2Chile
NAQPbuild. 3647, Calle 10 BMadellinEdificio el Atico, Antioquia, ColombiaHuaxia Road, No. 147, AgileColombia
LARoombuild. 15841, University Drive, Newtown, 18940, USAPadre Mariano 391USA
LARoombuild. 121, Concord Pike, Wilmington, 19803, USA

Carrera 43B, 16-95

USA
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @MykytYla 

 

Please try this:

In the Power query, select the LE_address and Office_address column and click the Unpivot Columns in the Transform pane:

vzhengdxumsft_0-1733910355171.png

Then remove the Attribute column:

vzhengdxumsft_2-1733910406073.png

Change the name of the values column and the result is as follow:

vzhengdxumsft_3-1733910481107.png

 

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
MykytYla
Frequent Visitor

Thank you for help.

I don't need Concat or merge, I need one column with both Addresses. But I don't want to creat table becouce I will not have a primary key

  Address
LARoombuild. 121, Concord Pike, Wilmington, 19803, USA
LARoombuild. 15841, University Drive, Newtown, 18940, USA
LARoomCarrera 43B, 16-95
LARoomPadre Mariano 391
NAQPbuild. 3647, Calle 10 BMadellinEdificio el Atico, Antioquia, Colombia
NAQPHuaxia Road, No. 147, Agile
OLVlog110 S Hartford Avenue, Suite 2
OLVlogbuild. 46, Del IncaEdificio Vitae, Las Condes, 7550000, Chile
QWSharebuild. 1, Little Falls Drive, Wilmington, 19808-1674, USA
QWSharebuild. 1, University Drive, Newtown, 18940, USA
QWShareHeroiv Dnipra, 4/2
QWShareZhibek Zholy, 135/10a
TRThink11 Chang De Road, 15/F
TRThinkbuild. 5, Degrees North Pilgrim Street, Newcastle, United Kingdom
TRThinkbuild. 53, Churchill Place, London, , United Kingdom
TRThinkSoho Limassol, 142nd floor, Anexartisias 187, Limassol 3040
VAVait70 Hindmarsh Square
VAVaitbuild. 78, 7, Avda. Colón, Córdoba, X5000EPU, Argentina
VAVaitbuild. 78, Colón, Córdoba, X5000EPU, Argentina
VAVaitSerdara Jola Piletica 32

 

Anonymous
Not applicable

Hi @MykytYla 

 

Please try this:

In the Power query, select the LE_address and Office_address column and click the Unpivot Columns in the Transform pane:

vzhengdxumsft_0-1733910355171.png

Then remove the Attribute column:

vzhengdxumsft_2-1733910406073.png

Change the name of the values column and the result is as follow:

vzhengdxumsft_3-1733910481107.png

 

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @MykytYla 

 

In Power BI Desktop, go to the 'Home' tab and click on 'Transform data'.

Then click Custom Column in the Add Column tab:

vzhengdxumsft_0-1733899073295.png

vzhengdxumsft_1-1733899098022.png

[LE_address]&" "&[Office_address]

The result is as follow:

vzhengdxumsft_2-1733899165586.png

Hope this can help,

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Sahir_Maharaj
Super User
Super User

Hello @MykytYla,

 

Can you please try this approach to create a new calculated column that combines these two columns:

Combined Address = 
IF(
    ISBLANK('YourTable'[Office_address]),
    'YourTable'[LE_address],
    'YourTable'[LE_address] & " | " & 'YourTable'[Office_address]
)

Hope this helps.


Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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