Reply
Fali324
Helper II
Helper II
Partially syndicated - Outbound

Concanate two columns based on a 3rd column

Hi,

 

My data set is below:

Project NameTypeEnabling 
Project 1Main Demo
Project 1Main Piling
Project 1Main Soft Strip
Project 1Trade Demo
Project 1Trade Piling
Project 1Trade Soft Strip



I would like a measure which would give me the output below:

Project NameTypeEnabling 
Project 1Main, TradeDemo, Piling, Soft Strip


Any help will be much appreciated.

 

Thank you.

1 ACCEPTED SOLUTION
tackytechtom
Super User
Super User

Syndicated - Outbound

Hi @Fali324 ,

 

How about this?

tackytechtom_0-1706616307703.png

 

Here the DAX for the two measures:

Measure1 = 
VAR _helptable =
SUMMARIZE (
    'Table',
    'Table'[Project Name],
    'Table'[Type]
)
RETURN
CONCATENATEX(_helptable, [Type], ",")
Measure2 = 
VAR _helptable =
SUMMARIZE (
    'Table',
    'Table'[Project Name],
    'Table'[Enabling]
)
RETURN
CONCATENATEX(_helptable, [Enabling], ",")

 

Let me know if this solves your issue 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

View solution in original post

1 REPLY 1
tackytechtom
Super User
Super User

Syndicated - Outbound

Hi @Fali324 ,

 

How about this?

tackytechtom_0-1706616307703.png

 

Here the DAX for the two measures:

Measure1 = 
VAR _helptable =
SUMMARIZE (
    'Table',
    'Table'[Project Name],
    'Table'[Type]
)
RETURN
CONCATENATEX(_helptable, [Type], ",")
Measure2 = 
VAR _helptable =
SUMMARIZE (
    'Table',
    'Table'[Project Name],
    'Table'[Enabling]
)
RETURN
CONCATENATEX(_helptable, [Enabling], ",")

 

Let me know if this solves your issue 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)