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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
v-yiruan-msft
Community Support
Community Support

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

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

Helpful resources

Announcements
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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.