DerekGannaway
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forum
Events
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Downloads
Posts posted by DerekGannaway
-
-
Try checking if the field is not null and just reverse the results:
<textFieldExpression><![CDATA[$F{fieldName} != null ? $F{fieldName} : "-"]]></textFieldExpression>[/code]
How to convert values in certain colum to comma separated list?
in Products
Posted
In your query you can use the GROUP_CONCAT function and GROUP BY the field you don't want duplicated to achieve that result. Here's an example table with duplicated data:
With the below query
The data will now be displayed as
You can also sort the cities or remove duplicates from that field as well with additional functions inside the GROUP_CONCAT. More information about GROUP_CONCAT can be found at https://dev.mysql.com/doc/refman/8.0/en/group-by-functions.html#function_group-concat