Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
cchrystal
Regular Visitor

Passing Parameters Dynamically in Power BI Embedded

Hello All,

 

I'm working on integrating a PBI report into an internal application through Power BI Embedded. As a part of this solution we have incorporated a parameter to filter the dataset down to a unique ID specific to the end user consuming the report through our internal application.

 

Is there a way, through the Query Parameter API, to update the parameter based off a link or existing code in our internal application?

 

IE: Rather than having to input each parameter value in the JSON script having a call to the URL that automatically updates the parameter based off the ID being targetted by the end user?

 

Thanks in advance for any and all assistance

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @cchrystal ,

 

As far as I know, I think you can try dyncmic M query parameters.

With Dynamic M Query Parameters, model authors can let report viewers use filters or slicers to set the value(s) for an M Query Parameter, which can be especially useful for query performance optimizations. With Dynamic M Query Parameters, model authors have more control over how filter selections get incorporated into DirectQuery source queries.

For referenece:

Dynamic M query parameters in Power BI Desktop

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
StephenL_CA
Frequent Visitor

Hi, I have a similar problem to resolve. I have a dataset that is the result of a stored procedure accepting an input parameter value.

First, I have no issue to embed the report using JavaScript. But my web application, depending on the case, passes in a different parameter value. I am hoping to pass this value to the sp to each time get a different set of data (the schema is the same). I read the Dynamic M query parameters in Power BI Desktop article. But I am confused, in Power BI Desktop, I could not find the "Bind to parameters" in Model View when following the steps to set up my list table.

What do I do wrong? I have Power BI Desktop Version: 2.118.828.0 which should be the latest.

Thank you in advance for your help.

Anonymous
Not applicable

Hi @cchrystal ,

 

As far as I know, I think you can try dyncmic M query parameters.

With Dynamic M Query Parameters, model authors can let report viewers use filters or slicers to set the value(s) for an M Query Parameter, which can be especially useful for query performance optimizations. With Dynamic M Query Parameters, model authors have more control over how filter selections get incorporated into DirectQuery source queries.

For referenece:

Dynamic M query parameters in Power BI Desktop

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.