Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello,
I have created a PBI Report. Now I am exploring options to do RLS. Normal method does work and i have asked users to test. Now moving forward we want to control the RLS using Excel sheet. Now our RLS is based off on geography or country specific. So we have created different roles for countries and we go add users manually in Service. But we want to do this dynamically like the excel should dictate that. If a person name X belongs to US today and excel reflects the same, he should view only US data (At present we need to add his email manually in service). Tomorrow if X moves to Canada we want to update that spreadsheet and the user should view only cannada data.
I have read some blogs about dynamic RLS. But what i am looking for is controlling RLS using excel sheet. Let me know if this is possible. If possible how?
Thanks,
Karthik
hi, @Anonymous
You may refer to this blog:
For your case, you could define the role dim table in excel and then import it into power bi report and set refresh for it.
Regards,
Lin
Hello,
I created a excel which will control the RLS with Person name, Email and GEO and Product. That table is called as User_Access in the diagram. Now when i import the model I created a relationship between User_Access and Geo_Hierarchy tables connecting Geo.
Next step i went to manage roles and created a role called accessa and declared [User] = USERPRINCIPALNAME().
Next i published the same to Service and shared the report with a user. When user viewed the report he is getting below error
Can someone tell me where I am going wrong. I checked many forums but nothing helped. If someone can shed some light on where I am going wrong will be helpful.
Note: I did not go to dataset for the report and make any changes. Not sure if that is a step I am missing.
Has anyone found a way of linking the excel to the dataset access step? Surely there is a way that the excel list can automatically add the users to dataset security?
Hi Karthik,
Did you check the bidirectional is active in the relationship level ?
Does anyone know how to control RLS with Excel?
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
104 | |
99 | |
98 | |
41 | |
38 |
User | Count |
---|---|
151 | |
123 | |
79 | |
73 | |
71 |