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

Problema con RLS

Hola, chicos

He creado 2 roles para mi modelo. Como se ve a continuación

Himanshu_13_0-1604497402733.png

[CompanyId]
CALCULAR (
MAX ( Usuarios[CompanyId] ),
FILTER ( Usuarios, Usuarios[Correo electrónico] - USERPRINCIPALNAME() )
)

Himanshu_13_2-1604497446295.png

[Correo electrónico] - USERPRINCIPALNAME()

Pero a continuación está la salida que estoy recibiendo que está mal. Estoy recibiendo 3 filas en lugar de 1.

Por lo tanto, mi pregunta imp es que cuando seleccionamos 2 roles simultáneamente funciona como condición AND o funciona como condición OR en Power BI. Por lo que puedo ver está funcionando como condición de quirófano que no debería ser el caso idealmente. Si estoy dando un ID de correo electrónico, entonces debería ser los datos para sólo ese ID.

Himanshu_13_3-1604497572989.png

Salida deseada con ambos roles:

Himanshu_13_4-1604497729464.png

¿Puede alguien ayudarme con esto???

saludos

Himanshu

1 ACCEPTED SOLUTION
mwegener
Most Valuable Professional
Most Valuable Professional

Hola @Himanshu_13 ,

los permisos se combinan y los derechos más altos surten efecto.

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

Hola @Himanshu_13 ,

Como dice el documento oficial, Múltiples asignaciones de roles pueden dar lugar a resultados inesperados.

¿He respondido a tu pregunta? Por favor, marque mi respuesta como solución. Muchas gracias.
Si no es así, cargue algunas muestras de datos insensibles y la salida esperada.

Saludos
Eyelyn Qin

mwegener
Most Valuable Professional
Most Valuable Professional

Hola @Himanshu_13 ,

los permisos se combinan y los derechos más altos surten efecto.

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.

Top Kudoed Authors