Forum Discussion
mstone
4 years agoHelper I
Using CONCATENATEX to combine multiple rows by project ID
I have a list of projects and for each project there can be more than one risk. My goal is to combine the risks by project rather than combine all of the risks into a single entry. Is there a basic...
- 4 years ago
Hey mstone ,
Can you try to copy and paste one of the following expressions?
Combined column = CALCULATE(CONCATENATEX(DIM_PROJECT_RISK, [RiskTitle], UNICHAR(10)), ALLEXCEPT(DIM_PROJECT_RISK, DIM_PROJECT_RISK[ProjectId]))AsMeasure = CALCULATE(CONCATENATEX(VALUES(DIM_PROJECT_RISK[RiskTitle]), [RiskTitle], UNICHAR(10)), ALLEXCEPT(DIM_PROJECT_RISK, DIM_PROJECT_RISK[ProjectId]))Here is a link you can download to a sample: https://1drv.ms/u/s!An8CCFsOzw0uhQYExSCu5Hj9NDon?e=7B3enE
hnguy71
4 years agoSuper User
hi mstone ,
You can use the CONCATENATEX function. Please see the measure below with expected output:
Risks := CONCATENATEX(Risks, Risks[Risks], UNICHAR(10))
mstone
4 years agoHelper I
Thank you, hnguy71! Will that parse them by projectID? The orginal data is not in sequence. It consists of different risk statements. I'll give it a try.