Forum Discussion
RLS in Direct Query
Hi Anonymous
Direct Query mode comes with limitations, Including using measures
https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-use-directquery
I recommend using the Power BI desktop feature to implement RLS
https://docs.microsoft.com/en-us/power-bi/admin/service-admin-rls
- Anonymous5 years agoNot applicable
It doesnt solve the issue.
Is there a way I can change this expression as per the Direct query?
[CompanyId]=
CALCULATE (
MAX ( Deals[CompanyId] ),
FILTER ( Users, Users[LoginLevelName] = "Owner")
)Regards,
Himanshu
- aj19735 years agoCommunity Champion
Nothing wrong with the measure! but CALCULATE is not allowed in RLS
Did you try to implement RLS through the desktop instead of measure? if it didn't work then you might need to change the Mode of connection to Import mode at least for the User Table. But still you will need to use the RLS of the desktop.