Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Two RLS settings for the same file based on report type

I have a data model with a sales table with the following information:

1.PNG

I also have two types of reports in the same file:

  1. Reports with information historic sales perfomance
  2. Reports with information about current sales performance

When sales staff is acessing the report, they are only supposed to see their own data:

RLS on "Sales AmountSales Person (at time of sale)" in the historic section:

- Joe Black, Tim Green and Matt Gray will each see their one sale

and RLS on "Sales Person (current)" in the current section:

- Joe Black sees two sales, Tim Green one sale and Matt Gray no sales

 

Is it possible to set up dynamic RLS for this scenario without duplicating the sales table or creating two seperate data models? 

2 REPLIES 2
tex628
Community Champion
Community Champion

I have an idea. It's quite complicated byt it might work. 


Assuming that you have a Sales Person table that you're applying the RLS on we want to change the connection from Sales person <-> Sales person to Combination <-> Combination.

Essentially we want to give every combination of current and historic sales person a numeric ID. Taking your example we would like to convert it to the following. 
image.png

Create a mapping table, containing only distict ID's. And finally create a new column in your sales table, mapping the combinations of sales people into the same ID's that we already created in the Sales person table.

I'm not completly certain this works, but i think this is as close as you can get. Let me know how it goes and if you need any help!

/ J


Connect on LinkedIn
Anonymous
Not applicable

Nice idea, thanks for the suggestion. Let me see if I can find a way to set it up like that to test it.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.