I am trying to create a measure in DAX to concatenate all CODES that have the same Group ID.
I have tried the CONCATENATEX function mentioned in many other discussion threads but it doesn't seem to function as there appears to be a problem with the function EARLIER which doesn't recognize any value.
This is the initial table:

The desired output should be as such:

I have tried this but it's not working:
CODES = CONCATENATEX(FILTER(SPN, SPN[Group Registration ID]=EARLIER(SPN[Group Registration ID])), SPN[SPN CODE], "; ")
I would appreciate any orientation
Thank you
This should do it.
Codes = --The purpose of this measure is concat the codes associated with the reg. id
IF(
ISFILTERED('table'[Group Registration ID])=TRUE(),
CONCATENATEX(VALUES('table'[SPN CODE]), 'table'[SPN CODE], ", "))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With