Forum Discussion
Embed Power BI Report that Uses a Semantic Model
Power BI Embedded allows us to generate one Embed Token to bind multiple datasets and reports.
You can make some changes in the profiles you bind to the dataset:
--------------------------------------------------------
{
…
"datasets": [
{
"id": "xxx1"
},
{
"id": "xxx2"
}
],
"reports": [
{
"id": "xxxx"
}
…
}
--------------------------------------------------------
After that, different RLS role needs to be bound to the corresponding dataset:
For example, in the following picture that the first dataset corresponds to the role of ‘sales’, and the second dataset corresponds to the role of ‘executive’.
Link of RLS in embedded token:
Link of example of generating an embed token for two datasets with RLS identities.
Embed Token - Generate Token - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Best Regards,
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- DanielReinman2 years agoFrequent Visitor
Thank you for the response. However the issue I am encountering is not that I have multiple reports; wehave already solutioned for this and applied RLS that works effectively, based upon the UPN of whomever is accessing the data. The issue seems to me that the Dataset and report reside in entirely different workspaces, so the group ID related to the dataset is different than the group ID related to the report. Are you aware of a way to overcome this? Should I be listing both Group IDs in the code?