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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.