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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
mohit_K
Helper I
Helper I

Row Level Security using Two Tables

I have a Data Table as shown below :-

Territory IDValueSKU ID
11122
12223
13322
24423
25522
26623
37724
38824
39922
41225
41326
51425
63224
65424
64527
66727

 

I have two other tables, one for Territory ID mapping and the other for SKU ID mapping.
As shown below :-
Territory Table :-

Territory IDEmail Id
1A@gmail.com
2A@gmail.com
3d@gmail.com
4bb@gmail.com
5cc@gmail.com
6cc@gmail.com
7A@gmail.com
8k@gmail.com
1c@gmail.com
1dd@gmail.com
2dd@gmail.com
3dd@gmail.com
4dd@gmail.com

 

SKU Table :-

SKU IDEmail
22mk@gmail.com
23A@gmail.com
24m@gmail.com
25b@gmail.com
26mk@gmail.com
27A@gmail.com
22A@gmail.com
23mk@gmail.com
25mk@gmail.com

 

The Territory and SKU tables are linked to Data Table with a Many to Many Relationship
I want to apply Row Level Security such that the rows in the Data Table are filtered
according to the user logged in and they should be able to view only the Territory or SKU assigned to them.

 

So if user dd@gmail.com logs in them the Output should be :-

Territory IDValueSKU ID
11122
12223
13322
24423
25522
26623
37724
38824
39922
41225
41326


dd@gmail.com only exists in Territory Table hence only filter from that table

 

if user mk@gmail.com logs in them the Output should be :-

Territory IDValueSKU ID
11122
12223
13322
24423
25522
26623
39922
41225
41326
51425

 

mk@gmail.com only exists in SKU Table hence only filter from that table


if user A@gmail.com logs in, then the Output should be :-

Territory IDValueSKU ID
11122
12223
13322
24423
25522
26623


A@gmail.com exists in both Territory and SKU Table hence filter from both the tables.


How should I go about creating Row Level Secutrity on these two independent tables?

2 REPLIES 2
Anonymous
Not applicable

Hi @mohit_K,

Did this suggestion help with your scenario? if that is the case, you can consider Kudo or accept it to help others who faced similar issues.

If these also not help, please share more detailed information to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

HI @mohit_K,

Perhaps you can write two search expressions to lookup values from different tables to get 'SKU id' and 'Territory id' based on USERNAME function.
Then you can use filter both two fields with 'OR' logic on the 'mapping' table at the same time. 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.