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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
kvnbn
Frequent Visitor

Restrict viewable data with RLS

I have a table that lists all payments made from insurance companies to our client. Sample data:

 

Table Name: Insurance Payments

InsurancePayment AmountPayment Date
Delta$50009/18/23
Gamma$100008/17/23
Beta$20008/19/23

 

I want to visualize all of the payments in a pie chart, grouped by insurance. However, there are over 100 insurances, so to avoid having 100 slices in the pie chart, I want to group the insurances into a few major companies and the rest will be placed in a "smaller insurance" category. We have multiple clients and I want to do this across all our clients' reports, but I don't want to manually group the insurances on each client's report.

 

I was thinking of creating a master list of all insurances, grouping them in Excel, adding this list to each client's report, then creating a relationship between this master table and the insurance payments table. This way, whenever we receive payment from a new insurance, I can just add it to the master list and it will be automatically grouped when I refresh the report. Example:

 

Table Name: Insurance Master List

InsuranceInsurance Group
Delta1
Gamma2
Beta1

 

For privacy purposes, however, I would like for the client to only know about the insurances that they have payments from. For example, if client A has payments from Delta, and client B has payments from Gamma, I don't want client A to know that Gamma is even an option, which they might find out from looking at the underlying dataset and seeing the master list. So if client A happens to access the master list, they should see: 

 

InsuranceInsurance Group
Delta1

 

Is there a way to accomplish this? I was thinking of RLS but I'm not sure how I would go about doing that with DAX. I don't want to hide the entire master list otherwise the client won't be able to see any groupings whatsoever (correct me if I'm wrong). Please let me know if there is a more elegant solution as well

2 REPLIES 2
parry2k
Super User
Super User

@kvnbn RLS is the way to go, first, you have to decide the restriction granularity, is it at the Group level or the Insurance company level?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

kvnbn
Frequent Visitor

It's at the Insurance company level

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.

Top Solution Authors