Row filter expression for slice

Dave2
Participant IV

Hi

I’m trying to create a row filter expression for a slice with the following criteria:

AND([Procedure]=“Task Analysis”, [Status]=“Current”, [Step #]= ??? ))

It’s the third criterion that I’m struggling with, because I need the list of records with the lowest number (that’s also “current” and a “task analysis” obviously), and it can be any number from 1-15. I’ve played around with MINROW and LIST() but nothing has worked so far. Thanks!

Solved Solved
0 2 149
1 ACCEPTED SOLUTION

Steve
Participant V

Try:

AND(
  ([Procedure] = “Task Analysis”),
  ([Status] = “Current”),
  (
    [Step #]
    = MIN(
      SELECT(
        table[Step #],
        AND(
          ([Procedure] = [_THISROW].[Procedure]),
          ([Status] = [_TTHISROW].[Status])
        )
      )
    )
  )
)

replacing table with the name of the table.

View solution in original post

2 REPLIES 2

Steve
Participant V

Try:

AND(
  ([Procedure] = “Task Analysis”),
  ([Status] = “Current”),
  (
    [Step #]
    = MIN(
      SELECT(
        table[Step #],
        AND(
          ([Procedure] = [_THISROW].[Procedure]),
          ([Status] = [_TTHISROW].[Status])
        )
      )
    )
  )
)

replacing table with the name of the table.

Steve! You’re my hero, man. It worked. Thanks!

Top Labels in this Space