Forum Discussion
Dynamic RLS Help
Anonymous ,
How about using dax below?
[Account] =
CALCULATETABLE (
VALUES ( SECURITY[Account] ),
FILTER (
ALL ( SECURITY ),
SECURITY[Email] = USERPRINCIPALNAME ()
&& SECURITY[Account] <> BLANK ()
)
)
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks so much for your reply,
I just tried this as
[Account]
IN CALCULATETABLE (
VALUES ( SECURITY[Account] ),
FILTER (
ALL ( SECURITY ),
SECURITY[Email] = USERPRINCIPALNAME()
&& SECURITY[Account] <> BLANK ()
)
)
and the table still stays filtered? (doesnt work as an = either sadly 😞
- vik08106 years agoResolver V
Anonymous , as far as I understand, your intention is not to filter at all, if the account is empty. You have to use then logical OR instead of AND.
[Account] IN CALCULATETABLE ( VALUES ( SECURITY[Account] ), FILTER ( ALL ( SECURITY ), SECURITY[Email] = USERPRINCIPALNAME () || ISBLANK(SECURITY[Account]) ) )- Anonymous6 years agoNot applicable
Thanks vik0810
That returns nothing at all though, What I want to happen is the filter to basically leave everything UNFILTERED.
- Anonymous6 years agoNot applicable
Im starting to wonder is what im hoping unrealistic / unachievable using RLS?