Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Row Level Security not working in App

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?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@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/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@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/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak - Thank you. The first option worked. Now I need to figure out how to assign users to this group.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.