The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
This is a copy of:
I have created this new one, because the old one seems to be completely ignored, even though it has got a lot of attention.
_________________________________________________________________________
I have report which uses a composite data model, with a mix between DirectQuery to other Power BI datasets and some imported tables from SQL Server. The model also uses calculation groups, allthough I do not think this is related to the issue.
The data model also has RLS, and I can test this in desktop and it works as intended.
However, when I publish the report to the service and I want to "test as role", I get the following error message.
Is this a bug, or is "test as role" really not supported for a composite model?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI @daaa
Hi @daaa
If you use Direct Query connection in Desktop to connect to Semantic model, you will find that in this case, you can't set up RLS in Desktop , which is why you can't use “test as role” function in Service either.
The only reason you can use “test as role” in Desktop is because you still have imported data in your conforming model.
Or you can consider integrating the data into datamart and setting up RLS in datamart. you can refer to the official documentation below for details.
https://learn.microsoft.com/en-us/power-bi/transform-model/datamarts/datamarts-access-control#row-le...
Best Regards,
Community Support Team _ Ailsa Tao