Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
4 replies
Subscribers
8 subscribers
Views
2759 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
#aggregation I would like to aggregate the information I am bringing back in a d
georgeu
over 9 years ago
#aggregation I would like to aggregate the information I am bringing back in a datasubset by one of the fields. Normally I would use a!queryAggregation in my query, but I do not want the min, max, sum, average, or count. I would like to concatenate the information based on one of the fields, preferably with a certain set of characters in between each value. Does anyone know how to do that?
OriginalPostID-195645
OriginalPostID-195645
Discussion posts and replies are publicly visible
0
sikhivahans
over 9 years ago
@georgeu Hi, here goes few thoughts in my mind and might help you, just in case if you aren't aware:
1. Create a view in database and map a cdt in Appian and then query the corresponding data store entity.
2. Create a stored procedure and make a call to it in Appian by sending the inputs to it.
To the best of my knowledge, the functionality desired by you with respect to concatenation isn't available with a!queryEntity.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 9 years ago
I should say that the view or stored procedure should do the job as desired by you (for instance, group by and group concat operations) and finally you would be left with querying these objects in Appian to obtain the data.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
narasimhaadityac
A Score Level 2
over 9 years ago
Hi George, I agree with shiva, we can do it through views and may be we can use some of the built in functions like LISTAGG for instance in oracle.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Andre Dessens
Appian Employee
over 9 years ago
You can also try to pre-concatenate the data when you add it in the DB. That way you avoid the overhead of having to concatenate the data in real-time. This should be feasible if you will only need the data in concatenated form.
If you do need both the concatenated version of the data as well as separated, you can still follow this approach by creating a separate table dedicated to store the concatenated data and use that in your view or queryEntity as applicable.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel