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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Issue with RLS

Hi Guys,

 

I've created 2 roles for my model. As seen below

 

Himanshu_13_0-1604497402733.png

[CompanyId]=
CALCULATE (
MAX ( Users[CompanyId] ),
FILTER ( Users, Users[Email] = USERPRINCIPALNAME() )
)

 

 

Himanshu_13_2-1604497446295.png

[Email] = USERPRINCIPALNAME()

 

But below is the output I'm getting which is wrong. I'm getting 3 rows istead of 1. 

So my imp question is, when we select 2 roles simultaneously does it work as AND condition or it works as OR condition in Power BI. As far as I can see it is working as OR condition which should not be the case ideally. If I'm giving an email ID then I should be the data for only that ID.

 

Himanshu_13_3-1604497572989.png

 

Desired Output with both the roles:

 

Himanshu_13_4-1604497729464.png

 

Can anyone please help me with this???

 

Regards,

Himanshu

1 ACCEPTED SOLUTION
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous ,

 

the permissions are combined and the highest rights take effect.

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

As the official document said, Multiple role mappings can result in unexpected outcomes.

 

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please upload some insensitive data samples and expected output.

 

Best Regards,
Eyelyn Qin

mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous ,

 

the permissions are combined and the highest rights take effect.

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.