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
kvnbn
Advocate I
Advocate I

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.

It's at the Insurance company level

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.