Hi All,
I have an array 1,2,3,3,5,6
In this I want the repeated value which is 3 as output.
Can you please suggest which is the approach to be followed.
TiA
Harsha
Discussion posts and replies are publicly visible
Hi Harsha,
The below code snippet would be helpful to you,
load( local!data: {1,2,3,4,3,5,6,5,4,7}, local!uniqueData: union( local!data, local!data ), reject( fn!isnull, a!forEach( items: local!uniqueData, expression: if( count( wherecontains( fv!item, local!data ) ) > 1, fv!item, null ) ) ) )
Hope this helps!
Thanks,
Hema