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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
PBInewbee123
Frequent Visitor

How to let a visual not being affected by RLS

Hi,

 

I am creating a dashboard where I want to show parent materials, with all their child materials (mat nr, qty, ...). I also want to show the nr of pieces on stock at the central warehouse, but also locally.

This means that a certain location should see all child materials, whether or not they have local stock of that child material, but only their own stock and not that of any other location (except for the central warehouse).

This is part of a much bigger report, for which RLS is set up, based on the location of the users.

Issue that I am having now is that from the moment a user wants to check this, they only see the child materials that are on their stock, and not the others anymore, due to the RLS. Any idea how to solve this?

I thought about creating 2 visuals: 1 showing all information except local stock level, and a second one, showing only the child material and the stock level, but also then, the RLS will filter the first visual. Any ideas?

 

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @PBInewbee123 ,

 

Thanks @amitchandak  for the quick reply and solution. Here are some of my additions.

1.This is my test data.

vtangjiemsft_0-1709796473350.png

2.We can create a table.

Table 2 = SUMMARIZE('Table','Table'[user],"Remaining stock",CALCULATE(SUM('Table'[stock]),ALL('Table'))-SUM('Table'[stock]))

3.We can create RLS.

vtangjiemsft_1-1709796532428.pngvtangjiemsft_2-1709796544269.png

4.Then the result is as follows.

vtangjiemsft_3-1709796584883.pngvtangjiemsft_4-1709796600008.pngvtangjiemsft_5-1709796616110.png

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @PBInewbee123 ,

 

Thanks @amitchandak  for the quick reply and solution. Here are some of my additions.

1.This is my test data.

vtangjiemsft_0-1709796473350.png

2.We can create a table.

Table 2 = SUMMARIZE('Table','Table'[user],"Remaining stock",CALCULATE(SUM('Table'[stock]),ALL('Table'))-SUM('Table'[stock]))

3.We can create RLS.

vtangjiemsft_1-1709796532428.pngvtangjiemsft_2-1709796544269.png

4.Then the result is as follows.

vtangjiemsft_3-1709796584883.pngvtangjiemsft_4-1709796600008.pngvtangjiemsft_5-1709796616110.png

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

amitchandak
Super User
Super User

@PBInewbee123 , You need to have a table (may be aggregated), where the RLS filter does not apply.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.