Forum Discussion
RLS + filter out nulls
- 1 year ago
Oh!! You are correct. In a normal RLS role, nulls are not shown.
I think I found a bug. If you filter a user table with RLS dax ie. containsstring( username(), [user] ), it will show all nulls from any linked fact tables.
Using
containsstring( username(), [user] ) && not( isblank( [user] ))fixes it.
Hi ebee ,
that is strange. According to my experience, the default is that null values are always filtered out by RLS.
Are you sure your RLS is doing what it is supposed to do apart from the null values? Hence, that everything has been set-up correctly?
If so, can you please share some sample data with us?
Oh!! You are correct. In a normal RLS role, nulls are not shown.
I think I found a bug. If you filter a user table with RLS dax ie. containsstring( username(), [user] ), it will show all nulls from any linked fact tables.
Using