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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Ritesh_Air
Post Patron
Post Patron

RLS but need to compare at Region and National Level

Hi,

 

So I have Retailer data and row level security defined which works fine. When our sales guy logs in, they see their Retailers, not any one elses.

 

But now, I want to compare this one Retailer to Region (which has multiple Retailers) and to National (which has multiple Regions).

 

But RLS restricts me to see anything beyond my assigned Retailer when I log in as (View As). How do I resolve this convoluted situation?

 

Thanks in Advance,

Ritesh

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Ritesh_Air,

Perhaps you can reference the raw table region field to link this table, then records will be filtered by the current RLS filter.

How did these table relationships mapping? Can you please share some of your data structure to help us clarify your scenarios?

Regards,

Xiaoxin Sheng

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @Ritesh_Air,

The most simple solution I think is duplicate query tables at the query editor side and processed on them to keep some general values/information then you can use to compare with records that filtered by RLS. (Notice: this copied summary table required not to have relationships to other tables or it will be filtered by RLS effect through relationships)
Regards,

Xiaoxin Sheng

Thanks @Anonymous @amitchandak 

 

I am able to create a summary table just with National number. As national number won't change for any retailer, I can have a card next to Retailer number.

 

It gets little interesting when I want to compare it to Regional number. How do I force it to have just their own Region numbers? With the below formula, if I un-comment Line 4 then I can get all the Regions. But then I just want to show Retailers their own region, not all the regions.

 

Here is National:

 

Ritesh_Air_0-1600657455251.png

 

 

 

Ritesh_Air_1-1600657218993.png

 

 

Thanks,

Ritesh

Anonymous
Not applicable

Hi @Ritesh_Air,

Perhaps you can reference the raw table region field to link this table, then records will be filtered by the current RLS filter.

How did these table relationships mapping? Can you please share some of your data structure to help us clarify your scenarios?

Regards,

Xiaoxin Sheng

@Anonymous 

 

Yes, that did the trick.

 

thanks,

ritesh

amitchandak
Super User
Super User

@Ritesh_Air , I think for this you might have to create a summary table and use that.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors