Forum Discussion
boukasa
Oct 23, 2021Brass Contributor
OFFSET on results of FILTER
I assume I'm making a basic error or overlooking something silly. _test is a 5 column table with a column Bool. I want the first two columns only, for those rows where Bool is "Yes". I have a...
- Oct 23, 2021
OFFSET() requires range as first parameter, not an array. Instead you may use something like
=LET( matches,FILTER(_test,_test[Bool]="Yes","None"), shows, OFFSET(matches,0,0,,2), one, FILTER(matches, {1,1,0,0,0} ), two, INDEX( matches, SEQUENCE(ROWS(matches)), {1,2}), two )
SergeiBaklan
Oct 23, 2021Diamond Contributor
OFFSET() requires range as first parameter, not an array. Instead you may use something like
=LET(
matches,FILTER(_test,_test[Bool]="Yes","None"),
shows, OFFSET(matches,0,0,,2),
one, FILTER(matches, {1,1,0,0,0} ),
two, INDEX( matches, SEQUENCE(ROWS(matches)), {1,2}),
two
)