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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
MiguelMercadoS
Regular Visitor

filter just one table by login

Hi Everyone! 

 

I'm creating a dashboard that allows students to see their classmates and I need that they only see the classes where they belong. 

I have one table with the information of the students and one table for the classes, the tables are related by one ID.

I'm using the 'Manage roles' option and using this DAX to filter by login in the classes table: 

[LOGIN] = SUBSTITUTE(userprincipalname(),"@eafit.edu.co","")

The filter shows the student's classes but doesn't show their classmates

 

What can I do?

1 REPLY 1
bcdobbs
Community Champion
Community Champion

From you description I think you need a separate security table: Two columns Login and Class which is related to your Class table based on class.

 

Apply the RLS to this security table which will then filter the class table to just show the correct classes but will leave you able to see the other students in the class. You might have to play a little with filter direction between existing class and existing student tables. If you can build a demo pbix file I can help futher.



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.