Forum Discussion

ds100's avatar
ds100
Copper Contributor
Jul 11, 2022
Solved

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 

  • mtarler's avatar
    mtarler
    Silver Contributor

    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 

  • Detlef_Lewin's avatar
    Detlef_Lewin
    Silver Contributor

    ds100 

    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"))

     

Resources