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
Rishabh-Maini
Helper II
Helper II

AAS Model Embedded Report

Hi all,

I have an embedded PowerBI report built on top of an AAS model which just fails to run. It was working fine when I was using it via import mode, but when the mode was changed to Live Connection, the report just won't run. There is no RLS which actually filters the data, but since "https://docs.microsoft.com/en-us/power-bi/developer/embedded/embedded-row-level-security#customdata-... says that we have to use RLS in order to embed the report, I created a role and added members to it. Unsure if I am supposed to write a DAX query to filter data anywhere? 

Below is the error:

11:12:36:747 USER_DEBUG [153]|DEBUG|Body: {"error":{"code":"InvalidRequest","message":"Creating embed token for accessing dataset *Dataset ID* requires effective identity to be provided"}}

I have gone through several articles, including:

https://prologika.com/power-bi-embedded-service-principals-and-ssas/
https://prologika.com/power-bi-embedded-service-principals-and-aas/
https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-customers?tabs=net-cor...
https://sqlswimmer.com/2019/02/07/how-to-use-power-bi-embedded-for-your-customers/

I tried using effective identity, but I'm not sure if I'm passing the correct parameters.
Also, still unsure about the CustomData() function. And if so, where to use it? What are the modifications and whrere will they be implemented? 

Stuck with this issue for about 2 months to no avail. Is there a working sample code which I can refer to make this work?

Any and all help will be appreciated.

Thanks.



1 REPLY 1
v-janeyg-msft
Community Support
Community Support

Hi, @Rishabh-Maini 

 

So how do you use CustomData() function? Do you follow this step to set it up?

vjaneygmsft_0-1632121931577.png

 

You can reference this similar solved case, Hope it helps:

Solved: Azure Analysis Services RLS and Embedding - Microsoft Power BI Community

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.


Best Regards,

Community Support Team _ Janey

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.

Top Solution Authors