Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi,
I added a Role for "Non Retailer A" users whom I do not want them to a "Retailer A" Geography in reports but they can see all other geographies.
[GEOGRAPHY] <> "RETAILER A CORP"
|| [GEOGRAPHY] <> "RETAILER A-CHICAGO"
|| [GEOGRAPHY] <> "RETAILER A-KANSAS CITY"
|| [GEOGRAPHY] <> "RETAILER A-DALLAS"
|| [GEOGRAPHY] <> "RETAILER A-CINCINNATI"
|| [GEOGRAPHY] <> "RETAILER A-SALT LAKE CITY"
When I then change my View as Role to "Non Retailer A" users role I am still able to see Retailer A geographies in my slicers and even the data if I select one of the Retailer A geograhies.
What am I doing wrong?
Solved! Go to Solution.
@Anonymous , condition seems fine, try like
not([GEOGRAPHY] in{ "RETAILER A CORP", "RETAILER A-CHICAGO","RETAILER A-KANSAS CITY", "RETAILER A-DALLAS", "RETAILER A-CINCINNATI", "RETAILER A-SALT LAKE CITY"})
or
[GEOGRAPHY] not in{ "RETAILER A CORP", "RETAILER A-CHICAGO","RETAILER A-KANSAS CITY", "RETAILER A-DALLAS", "RETAILER A-CINCINNATI", "RETAILER A-SALT LAKE CITY"}
RLS - Row Level security
https://community.powerbi.com/t5/MBAS-Gallery/Microsoft-Power-BI-Unleash-row-level-security-patterns-in-Power/td-p/712613
https://radacad.com/dynamic-row-level-security-with-organizational-hierarchy-power-bi
https://www.blue-granite.com/blog/using-dynamic-row-level-security-with-organizational-hierarchies
https://docs.microsoft.com/en-us/power-bi/service-admin-rls
https://blog.tallan.com/2018/04/10/row-level-security-in-power-bi-part-1-roles-and-users/
@Anonymous , condition seems fine, try like
not([GEOGRAPHY] in{ "RETAILER A CORP", "RETAILER A-CHICAGO","RETAILER A-KANSAS CITY", "RETAILER A-DALLAS", "RETAILER A-CINCINNATI", "RETAILER A-SALT LAKE CITY"})
or
[GEOGRAPHY] not in{ "RETAILER A CORP", "RETAILER A-CHICAGO","RETAILER A-KANSAS CITY", "RETAILER A-DALLAS", "RETAILER A-CINCINNATI", "RETAILER A-SALT LAKE CITY"}
RLS - Row Level security
https://community.powerbi.com/t5/MBAS-Gallery/Microsoft-Power-BI-Unleash-row-level-security-patterns-in-Power/td-p/712613
https://radacad.com/dynamic-row-level-security-with-organizational-hierarchy-power-bi
https://www.blue-granite.com/blog/using-dynamic-row-level-security-with-organizational-hierarchies
https://docs.microsoft.com/en-us/power-bi/service-admin-rls
https://blog.tallan.com/2018/04/10/row-level-security-in-power-bi-part-1-roles-and-users/
@amitchandak - Thank you. The first option worked. Now I need to figure out how to assign users to this group.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
84 | |
76 | |
75 | |
43 | |
36 |
User | Count |
---|---|
109 | |
56 | |
52 | |
48 | |
43 |