Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to group by (and sum) entity list using liquid script?

Posted on by 515

Hello,

I have requirement where I have to group column and calculate sum of another column based on groups. for example check below:

ID  key value
---------
1    aaa 5
2    aaa 3
3    bbb 2
4    bbb 3
5    bbb 4
Output
key sum_of_value
---------
aaa 8
bbb 9
I am not sure weather is it possible to do or not, this link shows how to group - https://docs.microsoft.com/en-us/dynamics365/customer-engagement/portals/liquid-filters (see group_by section).
I tried like shown in below image, but I am not sure it can be used like this.
liquid1.png
Anybody tried it before?
Regards,
Ashish

*This post is locked for comments

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans