Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello
im new to RLS and having trouble.
What am trying to achieve is, based on the userprincipalname return data for the groups he is in.
unfortnantly i have to use username from fact_table to this bridge table below
Ex:
BRIDGE TABLE
Email (userprincipalname) | Group | Username
pedro@gmail.com 1 pedro
pedro@gmail.com 2 pedro
Mario@gmail.com 1 Mario
Joana@gmail.com 1 Joana
What i want is that when pedro logs in, he sees data from his groups ( 1 and 2 ) while joana and mario only see data from group 1
Solved! Go to Solution.
Hi, @Anonymous
It’s my pleasure to answer for you.
According to your description,I think you don't need to use 'UPN', you can create two roles filtering 'group=1'and 'group=2' in PBI desktop 'manage roles', then add members in PBI Service(role1:pedro,Mario,Joana email role2:pedro).
Like this:
Reference:Row-level security (RLS) with Power BI - Power BI | Microsoft Docs
If it doesn’t solve your problem, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
It’s my pleasure to answer for you.
According to your description,I think you don't need to use 'UPN', you can create two roles filtering 'group=1'and 'group=2' in PBI desktop 'manage roles', then add members in PBI Service(role1:pedro,Mario,Joana email role2:pedro).
Like this:
Reference:Row-level security (RLS) with Power BI - Power BI | Microsoft Docs
If it doesn’t solve your problem, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous
You can create a role in your powerbi desktop under the modeling tab like below. Once you create the role, you can test the role as well in the powerbi desktop using View As option in the modelling tab.
Proud to be a Super User!
User | Count |
---|---|
124 | |
108 | |
99 | |
62 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |