Forum Discussion
arisblan
Feb 20, 2025Copper Contributor
Dynamic Array filter multiple values
Is there a method to use the FILTER formula for filtering "table 1" based on values of table 2 thanks for helping
- Feb 21, 2025
One more
=FILTER( Table1, COUNTIF(Table2[Filter], Table1[Year]), "no data" )
PeterBartholomew1
Feb 22, 2025Silver Contributor
Just to have choice
= REDUCE(Table1[#Headers],Table2,
LAMBDA(acc,criterion,
VSTACK(acc, FILTER(Table1, Table1[Year]=criterion))
)
)This performs repeated filter steps and stacks the results.
- SergeiBaklanFeb 22, 2025Diamond Contributor
PeterBartholomew1 , IMHO, that's overcomplicated. You iterate criteria and stack them into result with high-level functions. Calc engine in any of xxIFS function combines criteria on boolean AND applying filter to source data. My guess calc engine shall do that more efficiency.
- PeterBartholomew1Feb 22, 2025Silver Contributor
Agreed.