简体   繁体   中英

How to Pass Parameters to a Power BI Report on Report Server from MVC Application at Runtime

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

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM