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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. 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
Super User
Super User

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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.