Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

row level security but keep the data

My company is evaluating Power BI as a replacement for our current BI tool. As a proof-of-concept, I developed a report that visualizes our sales data. My visuals aggregate data from multiple sales c...
  • Anonymous's avatar
    Anonymous
    7 years ago

    Hi Anonymous,

     

    >>So, If I am part of the VanArsdel group, I will see the name "VanArsdel" not Other7.  All other Manufacturer names are Hidden as Other1, Other2, etc. 

    Unfortunately, current power bi not allow to create calculate column/table based on USERNAME/USERPRINCIPALNAME function. RLS also not support to dynamic hide some of data model fields.(row level based security, it not means object level security)

     

    Measure is possible to achieve this, but it can't use as axis to expand summarized records. 

     

    In my opinion, I'd like to suggest you create new table to duplicate specific table records to twice(original records and replace name records) and custom field 'is hidden'. 

    Add a user control table to set up which type of records users can view.(manger to see his data and original records, normal user see their own data, particular users can see their data and replaced records)

     

    After these steps, use duplicate table as source of specific visuals which need to be viewed by channel executives.

     

    In addition, you can also consider to setup security on database side.

     

    Regards,

    Xiaoxin Sheng