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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
proka
Frequent Visitor

Parameters with powerbi-js

Hi!

 

I've made a report in PowerBI Desktop which has a parameter defined:

 

I am using this parameter in the Advanced Query Editor:

 

I am embedding the report in an MVC app, via PowerBI JS (with Azure AD and all that stuff...)

 

 

I don't know how to send the parameter from MVC 😞

 

I know about filters and odata, but I am interested in this solution, with the Parameter!

3 REPLIES 3
v-yuta-msft
Community Support
Community Support

Hi proka,

 

Based on my research, currently there's no such Query Parameter key can be defined in a JS Object. You can use Data source selection event or filter instead.

 

Please refer to:

https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Configuration-Details

https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html#

 

Regards,

Jimmy Tao

Thanks, but your ansywer doesn't help me at all..........

 

I couldn't find anything on data source selection event. And I know about the filters, I asked how can I hide one particular filter....

....

 

 

Any other responses are welcome!

proka
Frequent Visitor

I would be ok also with having the filter hidden in the filterpane. Is this possible?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.