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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
WestWinter
Helper II
Helper II

How do I combine 3 columns together in PowerBI

Was wondering how should I combine the 3 columns of value, unit, comments together as a measure or column, so that I could use it in a table/matrix?

 

Thanks

From:

NameValueUnitComments
Test50% 
Test220%Executed
Test330% 

 

To:

NameValueUnitCommentsCombined
Test50% 50%
Test220%Executed20% Executed
Test330% 30%
1 ACCEPTED SOLUTION
KamilSzpyrka
Helper III
Helper III

To create column please try CONCATENATE as below:

 

 

Combined = CONCATENATE([Value], CONCATENATE([Unit], [Comments]))

 

 

or if you want additional space between units and comments:

 

 

Combined = CONCATENATE([Value], CONCATENATE([Unit]&" ", [Comments]))

 

 

 

KamilSzpyrka_0-1634119030653.png

 

View solution in original post

3 REPLIES 3
Pragati11
Super User
Super User

Hi @WestWinter ,

 

If you don't want to create a column, but want to go with the option of creating a measure (which I usually prefer),

you can create a measure as below:

 

 

 

combinedValue = 
    CONCATENATE(
        SELECTEDVALUE ( dummyData[Value] ) & " ",
        CONCATENATE(
            SELECTEDVALUE( dummyData[Unit]) & " ",
            SELECTEDVALUE( dummyData[Comments])
        )
    )

 

 

 

This will end up giving you following result:

Pragati11_1-1634121021527.png

 

You can modify the delimiter as per your requirement in the above DAX expression for the measure.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

KamilSzpyrka
Helper III
Helper III

To create column please try CONCATENATE as below:

 

 

Combined = CONCATENATE([Value], CONCATENATE([Unit], [Comments]))

 

 

or if you want additional space between units and comments:

 

 

Combined = CONCATENATE([Value], CONCATENATE([Unit]&" ", [Comments]))

 

 

 

KamilSzpyrka_0-1634119030653.png

 

amitchandak
Super User
Super User

@WestWinter , Create a new column like

 

Column = [value] &"-" &[unit] &"-" & [comments]

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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