Forum Discussion
TEXTJOIN
The TEXTJOIN itself looks OK but I do not recognise the references risks!! and risks![Title] to the text you are trying to concatenate. Are they meant to be references to columns within a table, defined names or range references?
- AnyStapJun 03, 2020Copper Contributor
PeterBartholomew1 Yes. They are supposed to be references to columns within a table. I tried removing the "!" and tried "•"&TEXTJOIN(CHAR(10)&"•",TRUE,IF(risks[likelihood]=$C3,IF(risks[impact]=D$8,risks![Title],""),"")). to no avail.
- PeterBartholomew1Jun 03, 2020Silver Contributor
looks like you are getting close.
= "•"&TEXTJOIN(CHAR(10)&"•",TRUE,
IF((risks[Likelihood]=$E15)*(risks[Impact]=F$14), risks[Title],"") )
Because I use Office 365 my formula is slightly different
= "• " & TEXTJOIN(CHAR(10) & "• ", TRUE,
IF((risks[Likelihood]=@LikelihoodLevel)*(risks[Impact]=@ImpactLevel), risks[Title],"") )
To propagate the formula across columns select the range and use Ctrl+Enter rather than fill right.
- Dustin-DoucetteJun 03, 2020Brass ContributorCan you post what the error returns as? I see nothing wrong with your above formula technically, although I would say I recommend making your RISKS table reference columns static. Like this:
=TEXTJOIN(CHAR(10)&"•",TRUE,IF(RISKS[[LIKELIHOOD]:[LIKELIHOOD]]=$C3,IF(RISKS[[IMPACT]:[IMPACT]]=D$8,RISKS![[TITLE]:[TITLE]],""),""))
I have a near identical formula but instead of referencing risks I'm referencing start and end dates, and I'm pulling multiple columns into one text string for each matched date. Here's my exact formula:
=TEXTJOIN(CHAR(10),TRUE,IF(MyTable[[Start Date]:[Start Date]]<=C14,IF(MyTable[[End Date]:[End Date]]>=C14,MyTable[[Name]:[Name]]&" "&MyTable[[Job]:[Job)]],""),""))