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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Dynamic Row level security

Hi ,

 

Pushpak_0-1645159116166.png

I want to filter both hierarchies "region" and "product" in the DRLS like when User =1 I should only see Region= canada and Product = Amarilla and when User = 3 he should see all "Region" and "Product". Please can anyone help me with this scenario that will be helpful.

 

Thanks.

1 ACCEPTED SOLUTION
v-janeyg-msft
Community Support
Community Support

Hello @Anonymous 

 

According to your desired result. I have a sample method you can refer.

First, you need  to create a e-mailmanager column in table.

Like this:

E-mailmanager =
MAXX ( FILTER ( table, [Region] = "ALL" && [Product] = "All" ), [Users] )

If this value is fixed, you can also directly write.

E-mailmanager = "xxx@xxx.com"

Then you can create the new role easily.

Like this:

[Users] = USERPRINCIPALNAME () || [E-mailmanager] = USERPRINCIPALNAME () 

vjaneygmsft_0-1645672203386.png

 

Best Regards,

Community Support Team _Janey

If this post helps, then please consider Accept it as the solution to help the other members find it more.

View solution in original post

2 REPLIES 2
v-janeyg-msft
Community Support
Community Support

Hello @Anonymous 

 

According to your desired result. I have a sample method you can refer.

First, you need  to create a e-mailmanager column in table.

Like this:

E-mailmanager =
MAXX ( FILTER ( table, [Region] = "ALL" && [Product] = "All" ), [Users] )

If this value is fixed, you can also directly write.

E-mailmanager = "xxx@xxx.com"

Then you can create the new role easily.

Like this:

[Users] = USERPRINCIPALNAME () || [E-mailmanager] = USERPRINCIPALNAME () 

vjaneygmsft_0-1645672203386.png

 

Best Regards,

Community Support Team _Janey

If this post helps, then please consider Accept it as the solution to help the other members find it more.

Anonymous
Not applicable

Try This Measure
VAR colomn = if(Users[id]=1,1,0)
IF (
MAXX ( FILTER ( Users, Users[Email_id] = USERNAME () ), colomn ) = 1,
Users[Email_id] = USERNAME (),
1 = 1
)

Helpful resources

Announcements
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.