Forum Discussion
ds100
Jul 11, 2022Copper Contributor
How to Filter dynamic array with table field-to-dynamic array criteria?
Is there a way - with the Filter function or an alternative - to replicate below function but allowing for $G3# to replace $G3?
FILTER(Table2[Date],(Table2[Symbol]=$G3)
Thanks
ds100 alternatively i think you want something like this:
=BYROW(G3#,LAMBDA(r,TEXTJOIN(", ",,TEXT(UNIQUE(FILTER(Table2[Date],(Table2[Symbol]=r),"")),"m/d"))))
using BYROW lets you perform the operation on each row of the G3# spill
- ds100Copper Contributor
ds100 , you are welcome
Practically the same
=LET( u, UNIQUE(Table2[Symbol]), IF( {1,0}, u, MAP( u, LAMBDA(v, TEXTJOIN(",", 1, TEXT( FILTER(Table2[Date], Table2[Symbol] = v), "m/d" ) ) ) ) ) )
- ds100Copper Contributor
Map function came in handy for something else. Thanks again
- Detlef_LewinSilver Contributor
Since G3# includes all values of "Symbol" a filter on G3# would include all rows - making the filter obsolete.
=TEXTJOIN(", ",,TEXT(UNIQUE(Table2[Date]),"m/d"))