INDEX()
or ANY()
interchangeably.Let’s say you’ve got a Current_User (slice) with a field that users can change to turn on a “special mode” inside your app, and you’ve keyed everything (show ifs for columns, views, actions, etc.) off the presence of a value inside that field.
ISNOTBLANK(ANY(Current_User[User_Special_Mode_Flag]))
This happens because the ANY()
tells the system to pull out the first item in the list
And since there is a record present for the Current_User (slice)…
ISNOTBLANK()
= true
ISNOTBLANK(INDEX(Current_User[User_Special_Mode_Flag], 1))
ANY()
in the sense that INDEX()
both takes the first item, and… um… extracts (??) it too. lol
(I hope that made some sort of sense)
Additionally, ANY() has sometimes been known to change data-types from whatever it was (number, decimal, list) to a text.
Interesting.
However, I was unable to replicate your scenario:
I thought maybe I mis-read, so I changed this, to have a Slice of zero records:
But still:
I don’t remember if there’s any more edge cases, the only one I could remember is this is not blank thing.
If i recall correctly, i have used ANY() where i need to look back at a parent table from a child record in order to change the value of a parent, what you said makes sense now when i look back. So Index is now my goto expression? I would think that after so many years there would be something built in that would do that.