does not work because it returns the key columns of the row(s) that meet the conditions in the expression. Slice filters need to evaluate with a TRUE or FALSE. So the result needs to be compared with the [Key column] of the table to return a TRUE or FALSE as result and return the matching row(s) in the slice.
Sorry everyone. I had tried this but I was using what I thought was the key column. Turns out I was thinking of a different table. All sorted with key=“formula from initial post”
I prefer it because _RowNumber is in every table, so I can copy this expression for use elsewhere with fewer modifications.
You don’t have to know the table’s key column off the top of your head, and you don’t have to change the expression if the key column name changes.
There are conditions where a table can have duplicate key column values, so relying on its uniqueness doesn’t always work. _RowNumber will never have duplicate values.