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
sheidari
Frequent Visitor

RLS at the Team Level: Data Model and DAX

I am looking to set up RLS for team captains identified for 68 teams in a league.  Each team has 1 team captain and when that team captain logs into their dashboard, they should only see their entire team's results.  I've included the link to my sample PBI file. 

 

Team-Level RLS Sample 

 

I need help with two things:

 

  1. What changes do i need to make to my data model to accommodate team-level security?
  2. What would be the most efficient DAX expression to use on a table filter under managing roles?

Ideally i'd like to set this up to be dynamic so if a team captain changes throughout the year, the model will pick it up.

 

Thanks,

 

Shahab

1 ACCEPTED SOLUTION
6 REPLIES 6
amitchandak
Super User
Super User

Also refer, if this can help

https://radacad.com/dynamic-row-level-security-with-organizational-hierarchy-power-bi

https://www.blue-granite.com/blog/using-dynamic-row-level-security-with-organizational-hierarchies

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

These are great for hierachy level RLS, but mine is just focused on team-level. If I am the team captain for team #3, I should be able to just see the transactions for team 3 (including all its players) and no other team.

amitchandak
Super User
Super User

Refer , if this can help

https://community.powerbi.com/t5/MBAS-Gallery/Microsoft-Power-BI-Unleash-row-level-security-patterns...

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

Do non-captains have access to the model? if so, do they only see their own stats?

 

 

 

yes, non-captains have access to the model as well but only to their own data.

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