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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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/

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/

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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.