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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Need help with RLS

Hello,

 

I am trying to create a dashboard based on the following scenario

 

  • I have multiple users who will be using the dashboard and need to restrict data displayed based on their user id or email id
  • If a user who is not part of the predefined list logs in , the dashboard should not show any data
  • The visuals will be based on data tab in file attached and the security checks has to be based on user wise facility and users tab
  • I don't have an option to add user id field to data tab
 

Data

https://drive.google.com/file/d/19W6kqK5D9QLoBjoL6DgGQ3j_LdF2hsYr/view?usp=sharing 

 

 

 

I tried creating relationships and setting filters under manage roles but nothing seems to work...either I see all data or don't see any data while toggling through view as option.

 

 

 

Can anyone help me with this. 

 

 

 

1 ACCEPTED SOLUTION

HI @Anonymous ,

 

Can you please refer my last reply on using USERPRINCIPALNAME() instead of USERNAME() in accordance with the article link.

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

 

 

If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 

 

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

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

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

17 REPLIES 17

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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