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

Filter a barchart - row level security

I plan to show to our users in the company their usage of Email and Teams. As the information is senssitive I plan to use the row level security.  This is sorted out.

 

But I am struggeling in the dashboard that the visual shows always the number for all users or nothing.

The Filter at the left I do not want to use. 

 

 

 

UserNameUserNameVisual which should be filteredVisual which should be filteredUserActivityUserActivity

1 ACCEPTED SOLUTION
dax
Community Support
Community Support

Hi @Anonymous , 

You could refer to my sample.

779.PNG

780.PNG

781.PNG

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
lbendlin
Super User
Super User

You will want to wire your RLS dimension table to the facts table (with the consumption details) in a 1:M relationship (based on UPN column)

Anonymous
Not applicable

The relationship is already setup as one to many.Relationship.jpg

dax
Community Support
Community Support

Hi  @Anonymous ,

If you want to use UPN to filter it, I think you don't need user name table, you could try to use role setting like below to see whether it work or not

776.PNG

 Then set security in service, you could refer to service-admin-rls  for details.

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

I changed according to your recommendations. After applying the setting the information is still not visible for the user. By applying view as the values are empty. raw data informationraw data informationvisual after appying the "show as" rolevisual after appying the "show as" role May be the data setup is not correct?

Anonymous
Not applicable

It does not work either.  I uploaded the Workbook here https://we.tl/t-FaDidJUe0n . May be you can check it?

dax
Community Support
Community Support

Hi @Anonymous , 

You could refer to my sample.

779.PNG

780.PNG

781.PNG

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

dax
Community Support
Community Support

Hi @Anonymous , 

The USERPRINCIPALNAME ( ) will return current user's UPN, so you need make sure whether current user's UPN(you could use this function to check it) is user5@compamy.com. It is, you could set below to see whteher it work or not

 

777.PNG

If it is not user5@company.com, you could set like below to see whether it work or not.

778.PNG

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.