Forum Discussion

chasejc's avatar
chasejc
Regular Visitor
6 months ago
Solved

How to Set Up Row Level Security for 2 Separate Filter Conditions Without Duplicating Fact Table?

I'm trying to set up a RLS such that a salesman can switch between viewing sales he made personally to any customer and sales made to just customers he's responsible for which includes ones he didn't...
  • v-saisrao-msft's avatar
    v-saisrao-msft
    6 months ago

    Hi chasejc,

    Thank you samratpbi Zanqueta danextian, for your insights.

    Apply RLS to set the maximum access for each salesperson, so they can view either their own sales or sales made to customers they manage. RLS should define the complete range of data they are allowed to see and should not be used as a toggle. Create a disconnected table with options such as “Personal Sales” and “Customer Responsibility” to use as a slicer in the report. Depending on the slicer selection, use measures to adjust the visuals to display either personal sales or customer-owned sales, and apply these measures as visual-level filters (like > 0 or not blank) to manage what is shown without needing extra tables or relationships.

     

    Thank you.