Report Builder - Multi-value enumerations on multiple lines
Hello,
I'm trying to use Report builder to export a large amount of data in a table, and I have several attributes that are multi-value enumerations. I found a post that I can use LISTAGG to keep these in one row and not create rows for each enumeration, but I can't seem to validate this in the custom expression. I get a CRRGW5628E not a recognized built-in function name error.
Any assistance is appreciated.
sstruttmann
5 answers
Hi Shannon,
I do not know exactly what custom expression you tried and what database you are using, but I suppose you tried something like this on DB2.
LISTAGG(T2.LITERAL_NAME,', ') as ENUMERATION
or
LISTAGG(CAST($Requirement:Applicable Subsystem(s) (Custom)$ AS VARCHAR(20000)), ',')
The former one should work fine if the combined enumeration is not too long. Otherwise use latter one to define the length of total enumeration.
Comments
Hi Shannon,
Hi,
Hi guys, for a SPARQL endpoint, the following custom expression works for me. It looks at the _Requirement artifact type, and concatenates all of the values in the Verification_Method enumeration:
GROUP_CONCAT(DISTINCT $_Requirement:Verification_Method$; SEPARATOR=", ")
This requires that you also show the _Requirement Id as a column, If the custom expression above is the only attribute which is showing for the _Requirement it seems to have troubles.