Forum Discussion
Dynamic RLS Help
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 😞
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?
- v-yuta-msft6 years ago
Community Support
Anonymous ,
Have you solved your issue by now? If you have, could you please help mark the correct answer to finish the thread? Your contribution will be much appreciated.
Regards,
Jimmy Tao