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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
adarshalok
Frequent Visitor

Combine multiple Text Rows based on condition

Hi Everyone, 

 

I have a scenario where I would like to create a table which shows the comments against each Objective clubbed together by Date. 

Table1 (Primary Table)

IDOwnerObjective
ID1ABCObjective1
ID2XYZObjective2

 

Table2

Comments are made by multiple POCs and multiple times in a time which get captured in seperate rows

IDPOCDateComments
ID1Person18/7/2023RandonText1
ID2Person28/7/2023RandonText2
ID1Person 18/8/2023RandomText4
ID1Person38/7/2023RandonText3

 

 

I would like to create a table to have something like below:

IDOwnerObjectiveDateComments
ID1ABCObjective18/7/2023

Person1 (8/7/2023): RandomText1

 

Person3 (8/7/203): RandomText3

 

ID2XYZObjective28/7/2023Person2 (8/7/2023): RandomText2
ID1ABCObjective18/8/2023Person3 (8/8/2023): RandomText4

 

Any help would be greatly appreciated. 

 

Thank you.

1 ACCEPTED SOLUTION
vicky_
Super User
Super User

vicky__0-1691449844391.png

Have a look into the concatenatex function:

_Comments = IF(HASONEVALUE(primary[ID]), CONCATENATEX(comments, 
    comments[POC] & " (" & comments[Date] & ") " & comments[Comments], 
    UNICHAR(10)
))

View solution in original post

1 REPLY 1
vicky_
Super User
Super User

vicky__0-1691449844391.png

Have a look into the concatenatex function:

_Comments = IF(HASONEVALUE(primary[ID]), CONCATENATEX(comments, 
    comments[POC] & " (" & comments[Date] & ") " & comments[Comments], 
    UNICHAR(10)
))

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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