This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hello,
I made a Power BI report that connects to a SQL database and lets me change databases by updating a parameter. This works well when I publish the report and change the parameter in Power BI online. Now, I want to add this report to a .NET MVC application. I need to know how to change the database parameter from within the .NET app, like I can in Power BI online. Is it possible to do this?
Thanks.
@Anonymous thank you for your reply.
Your solution will work and it will update the Paramter which is being used to fetch the database.
The scernario is, we have multi tenant application and each tenant has it's own database. Now, we want to load the report for the logged in tenant.
e.g. if the Tenant1 is logged in then our mvc application should pass the Tenant database name as parameter value and it should load the report for that tenant, if Tenant2 logged in then it should load the report for that tenant only and so on.
So is it possible?
Hi @vikramkumawat ,
Base on your description, it seems like you want to change the database parameter from within the .NET app as you can in Power BI. Please try the following steps and check if can achieve your requirement:
Creating Embedded Reports in Your Web Apps with Power BI Embedded (codemag.com)
Embed Power BI report in a Power BI embedded analytics application for your organization - Power BI
2. Pass the dynamic parameter to embed report in .NET:
Power BI Embedded Query Parameters API | Azure updates | Microsoft Azure
Can I pass a dynamic query parameter to an embedded Power BI report in ASP.Net MVC? - Stack Overflow
Best Regards
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |