Forum Discussion

MykytYla's avatar
MykytYla
Frequent Visitor
1 year ago
Solved

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, USA Ukraine
QWSharebuild. 1, University Drive, Newtown, 18940, USA USA
TRThinkbuild. 5, Degrees North Pilgrim Street, Newcastle, United Kingdom United Kingdom
TRThinkbuild. 53, Churchill Place, London, , United Kingdom United Kingdom
VAVait  Argentina
VAVait  Argentina
OLVlog  Chile
NAQP  Colombia
LARoom  USA
LARoom  USA
  • Anonymous's avatar
    Anonymous
    1 year ago

    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:

    Then remove the Attribute column:

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

     

     

    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.

4 Replies

  • 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.

  • Anonymous's avatar
    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:

    [LE_address]&" "&[Office_address]

    The result is as follow:

    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.

  • MykytYla's avatar
    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's avatar
      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:

      Then remove the Attribute column:

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

       

       

      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.