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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
kangu
Regular Visitor

Merger text in tabel

Hello

I have data tabel in Power BI

kangu_0-1658047840803.png

 

I need to merger (sum) text to have this:

kangu_1-1658047876445.png

I can do it to number, but I can't to text. Please help

I need this in tabel visualisation on PowerBI desktop

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

With DAX:

As a calculated Column (my Table is called 'FTable')

VALUE =
CONCATENATEX (
    FILTER (
        ALL ( FTable ),
        FTable[ID] = EARLIER ( FTable[ID] )
            && FTable[Type] = EARLIER ( FTable[Type] )
    ),
    FTable[Orig Value],
    ", "
)

Calc Col.png

 

As a measure:

VALUE1 =
VAR _id =
    MAX ( FTable[ID] )
VAR _type =
    MAX ( FTable[Type] )
RETURN
    CONCATENATEX (
        FILTER ( ALL ( FTable ), FTable[ID] = _id && FTable[Type] = _type ),
        FTable[Orig Value],
        ", "
    )

measure.png

 

I've attached the sample PBIX file

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

7 REPLIES 7
PaulDBrown
Community Champion
Community Champion

With DAX:

As a calculated Column (my Table is called 'FTable')

VALUE =
CONCATENATEX (
    FILTER (
        ALL ( FTable ),
        FTable[ID] = EARLIER ( FTable[ID] )
            && FTable[Type] = EARLIER ( FTable[Type] )
    ),
    FTable[Orig Value],
    ", "
)

Calc Col.png

 

As a measure:

VALUE1 =
VAR _id =
    MAX ( FTable[ID] )
VAR _type =
    MAX ( FTable[Type] )
RETURN
    CONCATENATEX (
        FILTER ( ALL ( FTable ), FTable[ID] = _id && FTable[Type] = _type ),
        FTable[Orig Value],
        ", "
    )

measure.png

 

I've attached the sample PBIX file

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Thanks, it's working ! 🙂

tamerj1
Super User
Super User

Hi @kangu 

Create a new measure 

CONCATENATEX ( 

TableName,

TableName[VALUE],

", ", 

)

Hello, @tamerj1 

I try and it's not working

kangu_0-1658059481614.png

 

@kangu 

Sorry my mistake 

CONCATENATEX ( 

TableName,

TableName[VALUE],

", "

)

kangu
Regular Visitor

Thanks for Your reply.

I try it but not working or I do some wrong.

Can You give more inforation how I can do it?

deevaker
Resolver I
Resolver I

Hi,

I think this should be easy when you do it in power query. 
First pivot and then concat the column should solve this.

 

Regards

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.