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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
gspollock
Helper I
Helper I

Role filter not working

Hi,

I am trying to implement row level security.  The expression that is entered to filter the data in the fact table FACT_REPORT_SHARE in Manage Roles is this:

[EID] = LOOKUPVALUE(DIM_OBIEE_SECURITY_USER[USER_LOGIN],DIM_OBIEE_SECURITY_USER[USER_EMAIL], USERPRINCIPALNAME())

The EID that is returned by the expression is the Employee ID that is assigned to the user.  The [USER_LOGIN] column is the Employee ID.

 

I added a measure to FACT_REPORT_SHARE with the same expression:

EID2 = LOOKUPVALUE(DIM_OBIEE_SECURITY_USER[USER_LOGIN],DIM_OBIEE_SECURITY_USER[USER_EMAIL], USERPRINCIPALNAME())
 
When I put the EID and EID2 columns in a table, it is correctly returning my own EID in the EID2 column, but the EID column returns all the EID's in the table.
 
So it seems that this expression in Manage Roles is not filtering FACT_REPORT_SHARE.  What am I doing wrong?
[EID] = LOOKUPVALUE(DIM_OBIEE_SECURITY_USER[USER_LOGIN],DIM_OBIEE_SECURITY_USER[USER_EMAIL], USERPRINCIPALNAME())
1 REPLY 1
Anonymous
Not applicable

Hi @gspollock ,

If I understand correctly, it seems that you applied RLS in the table, but it didn't work. Am I right? If yes, you can refer the following links to try to solve your problem.

Dynamic Row Level Security with Profiles and Users in Power BI : Many-to-Many Relationship - RADACAD

vyiruanmsft_0-1690884318736.png

Solved: Role Level Security on Multiple Tables - Microsoft Fabric Community

 

If the above one can't help you, could you please provide some raw data in your table 'FACT_REPORT_SHARE' and 'DIM_OBIEE_SECURITY_USER'  (exclude sensitive data) with Text format and your expected result with backend logic and special examples? By the way, is there any relationship between them? If yes, please also provide the related info. It would be helpful to find out the solution. You can refer the following link to share the required info:

How to provide sample data in the Power BI Forum

 

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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