Forum Discussion
URGO_Kniest
3 years agoFrequent Visitor
Problem with PowerBI (RLS) with Direct Query
Hello PBI Community, I have a question regarding using RLS in combination with DirectQuery connections. I have the following situation in my data model: With this relation, I’m able ...
Smalfly
3 years agoResponsive Resident
Hi there,
userprincipalname() fetches the Power BI login of the report user and then compares it to the value of the department column. Is it correct that the column 'department' contains the email/login of your endusers?
- URGO_Kniest3 years agoFrequent Visitor
Hi,
Thank you for your answer.That's correct, the field contains the email addresses and the territory (link to "sales markets ih") in another field.
- Smalfly3 years agoResponsive Resident
I do see from your printscreen that the table contains the 2 fields email and department.
Can you try to put your RLS on email instead of on Department and then try again?
So: [EMAIL] = USERPRINCIPALNAME()