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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Krish_nidar
Frequent Visitor

Row Level Security only with AZ group

Hi Friends, It would be great ,if i get soution for beow

 

We are having five departments each department need to see their respective pages.

Users are grouped in AZ groups.

AZ group table as below

 

Krish_nidar_0-1755236941175.png

 

Krish_nidar_1-1755236948700.png

 

Target page navigation measure

 

Krish_nidar_2-1755236998217.png

 

TargetPage =

SWITCH(

    TRUE(),

    USERMEMBEROF("az_moi_dp_pbi_admins"), "Admin",

    USERMEMBEROF("az_moi_dp_den_developers"), "HR",

    USERMEMBEROF("az_moi_dp_pbi_developers"), "Finance",

    "Home"

)

1 ACCEPTED SOLUTION
rajendraongole1
Super User
Super User

Hi @Krish_nidar  - there is no function with usermemof ,

 

can you try the below logic:

 

TargetPage =
VAR LoggedInUser = USERPRINCIPALNAME()
RETURN
LOOKUPVALUE(
Mapping[TargetPage],
Mapping[UserEmail], LoggedInUser,
"Home" -- default if no match
)

 

Hope this helps. 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

5 REPLIES 5
v-echaithra
Community Support
Community Support

Hi @Krish_nidar ,

May I ask if you have resolved this issue? Please let us know if you have any further issues, we are happy to help.

Thank you.

v-echaithra
Community Support
Community Support

Hi @Krish_nidar ,

I hope the information provided is helpful.I wanted to check whether you were able to resolve the issue with the provided solutions.Please let us know if you need any further assistance.

Thank you.

v-echaithra
Community Support
Community Support

Hi @Krish_nidar ,

Thank you @rajendraongole1  for your input.
We’d like to follow up regarding the recent concern. Kindly confirm whether the issue has been resolved, or if further assistance is still required. We are available to support you and are committed to helping you reach a resolution.

Thank you for your patience and look forward to hearing from you.

Best Regards,
Chaithra E.

rajendraongole1
Super User
Super User

Hi @Krish_nidar  - there is no function with usermemof ,

 

can you try the below logic:

 

TargetPage =
VAR LoggedInUser = USERPRINCIPALNAME()
RETURN
LOOKUPVALUE(
Mapping[TargetPage],
Mapping[UserEmail], LoggedInUser,
"Home" -- default if no match
)

 

Hope this helps. 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





v-echaithra
Community Support
Community Support

Hi @Krish_nidar ,

Thank you for reaching out to Microsoft Community.

Create a role in Power BI like this: [UserName] = USERNAME()
This will filter the AZ_Group_Table to only include the logged-in user’s row(s). If multiple users share a group, they can have multiple rows.
Since the Dept field connects AZ_Group_Table to each department table, once RLS is applied, users will only see rows in the related tables for their department.
Validate RLS: Use “View as Role” in Power BI Desktop to simulate each user.
Instead of hardcoding AZ Groups in TargetPage, use the filtered Dept from RLS. Here's a revised version:

TargetPage = SELECTEDVALUE('AZ_Group_Table'[Dept], "Home")


This way, when the user logs in, RLS filters the table to their row, and TargetPage gives the department name directly.

Hope this helps!
Warm regards,
Chaithra E.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors