Forum Discussion
Set Parameter for parametrized report in Power BI Embedded
I am currently working on a Dynamics 365 project, where I need to use Power BI Embedded to embed reports within my clients' environments. We serve different clients across various organizations and environments. The requirement is to embed a parameterized report, which resides in my organization's workspace, into my clients' workspaces. The report will use a dynamic data source for its parameters.
Specifically, I need to know how to dynamically set the report parameters for each client during runtime in Power BI Embedded.
For example, if the parameter "OrgName" is set to "ABC" during the embedding process, the report should reflect the data source corresponding to "ABC."
To meet this requirement, we need the "OrgName" parameter to be dynamically set based on the client accessing the report, as follows:
- For Client 1, the parameter should be set to "ABC."
- For Client 2, the parameter should be set to "DEF."
- For Client 3, the parameter should be set to "GHI."
This dynamic behavior is essential to ensure that each client views data specific to their respective Dynamics 365 environment, without affecting other clients.
So my ask is, how do I set the parameter of the report being embedded in runtime in Power BI Embedded?
- Anonymous1 year ago
Hi nihal2001 ,
Dynamically set parameters for reports in Power BI Embedded. You can use the Power BI JavaScript API to dynamically set embedUrl, access token, and reportId based on the user's workspace and report ID.
Embed content in your Power BI embedded analytics application - Power BI | Microsoft Learn
This is the related document, you can view this content:
Solved: Passing Parameters Dynamically in Power BI Embedde... - Microsoft Fabric Community
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 Reply
- AnonymousNot applicable
Hi nihal2001 ,
Dynamically set parameters for reports in Power BI Embedded. You can use the Power BI JavaScript API to dynamically set embedUrl, access token, and reportId based on the user's workspace and report ID.
Embed content in your Power BI embedded analytics application - Power BI | Microsoft Learn
This is the related document, you can view this content:
Solved: Passing Parameters Dynamically in Power BI Embedde... - Microsoft Fabric Community
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.