Reputation: 21
I have created a power bi report in Power BI Desktop using a stored procedure having parameters From Date, To Date, CategoryId, DepartmentId. I have uploaded the report to Power BI Report Server. Now I am trying to embed the report in my MVC application using "iframe", but I don't know how to pass parameters to report at run time from the application.
Can anyone help me?
And Is there any other option other than using "iframe" for embedding the report to my MVC Application and passing parameters. ?
Thanks & Regards
Upvotes: 2
Views: 3564
Reputation: 13440
You must pass the filters in the URL, like this:
https://yourserver/Reports/xxx?rs:Embed=true&filter=MyBaseTable/CategoryId eq 2 and MyBaseTable/DepartmentId eq 3 and MyBaseTable/DateField ge 2019-01-01 and MyBaseTable/DateField le 2019-01-31
For more information, you can see Filter a report using query string parameters in the URL.
Upvotes: -1