The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi Team,
I'm trying to apply RLS using USERPRINICPALNAME() in Customers table.
User Security table looks like below....
Above security table is related with CUstomers table based on CITY column.
However, some user don't have city, I need to show all city of USA, eg: ALEX and Global means all Country.
How to setup this RLS using USERPRINCIPALNAME ?
Tried below DAX code and use this to get ouput of selected country for login_user's
You can see measure shows correct data as "Germany."UK"
But when I use this measure inside Customers table filter for Country, It not applying RLS ?
Hi @vijay27316
Thanks for reaching out to us.
please refer to this tutorial,
Row-level security (RLS) with Power BI - Power BI | Microsoft Learn
Row-level security (RLS) guidance in Power BI Desktop - Power BI | Microsoft Learn
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
78 | |
72 | |
46 | |
39 |
User | Count |
---|---|
135 | |
108 | |
69 | |
64 | |
56 |