Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I needed some help with the RLS in my model.
Trying to set up RLS on my dimensions so that it gets filtered in to the transaction as well. But, i was
I have 2 dimension table with Products and region info. I have the user information with the region name tied to it.
Luis has responsibility of specific products and i need to show only the sales that Luis is tied from transactions
How to set the RLS on the dimesniosn so that it is driven dynamically based on the user info. Luis is in EU region and i don't want to hardcode this in the RLS. How to model this dynamically?
Pbix is https://drive.google.com/file/d/1yxPLYii4V_uIvKkTxk30wbvbl_hSNzqO/view?usp=sharing
Solved! Go to Solution.
Hi @Anonymous ,
I updated your sample pbix file, please check whether that is what you want.
1. Create relationship between table Users and Products
2. Create a role for the table Users with the formula as below
[PrincipalName] =USERPRINCIPALNAME()
3. Test role
In addition, you can refer the content in the following links to get it.
Dynamic Row Level Security with Power BI Made Simple
Best Regards
Hi @Anonymous ,
I updated your sample pbix file, please check whether that is what you want.
1. Create relationship between table Users and Products
2. Create a role for the table Users with the formula as below
[PrincipalName] =USERPRINCIPALNAME()
3. Test role
In addition, you can refer the content in the following links to get it.
Dynamic Row Level Security with Power BI Made Simple
Best Regards
@Anonymous , Based on what I got
The first and the third table should join on the region.
And in you should create a role to filter the first table
table1[email] = userprincipalname()
How to use Row Level Security (RLS): https://youtu.be/NfdIA0uS6Nk
Thanks @amitchandak
If i join the user and the region that is going to be a many to many relation.
Sorry if i didn't explain this properly. My intention is to drive this in such a way that if the user is assigned the Region in the AD ( which is the first table - User ) that should drive the region filter in the dimension also.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 43 | |
| 39 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 63 | |
| 32 | |
| 30 | |
| 23 |