Forum Discussion

ebee's avatar
ebee
Helper I
1 year ago
Solved

RLS + filter out nulls

Hi, Let's say I have a DimOrganizations table that is affected by RLS. It has a one to many relationship to some Fact table via org_id column. Now, the Fact table has some nulls in its org_id. By de...
  • ebee's avatar
    ebee
    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.