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
3 replies
Subscribers
9 subscribers
Views
3457 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Hi All, I would like to get the count of common items in an integer a
aswinb
over 10 years ago
Hi All,
I would like to get the count of common items in an integer array. For instance if an array has the following values say loca!array: {1,1,1,1,1,1, 2,2,2,2} then I need a local!length array that has the following value local!length:{6,4} which indicates that there are 6 1's and 4 2's. I did a union of the local!array to itself and got the individual items inside the array but don't know how to proceed further to get the count. any help would be deeply appreciated!...
OriginalPostID-131936
OriginalPostID-131936
Discussion posts and replies are publicly visible
Parents
0
Chris
over 10 years ago
You are looking for:
=apply(fn!length,merge(apply(fn!wherecontains,union(local!array,local!array),local!array)))
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Chris
over 10 years ago
You are looking for:
=apply(fn!length,merge(apply(fn!wherecontains,union(local!array,local!array),local!array)))
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data