Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi everyone,
I'm going round in circles while trying to embed multiple reports into a Power BI Embedded solution, I hope someone can help.
I've downloaded the example "App Owns Data" Visual Studio MVC application and have managed to get it working with the "default" first dashboard or report in a group but now I'd like to be able to control which report is displayed. It looks like I need to control the value of the "reportId" within the HomeController.cs code file and I can manually manipulate this value by simple assigning it a hard-coded value, I can then embed any report in the group.
My issue comes from how to actually pass a reportid into the HomeController.cs file so I can control which report is actually displayed. Has anyone been able to do this?
Thanks
@Anonymous wrote:
Hi everyone,
I'm going round in circles while trying to embed multiple reports into a Power BI Embedded solution, I hope someone can help.
I've downloaded the example "App Owns Data" Visual Studio MVC application and have managed to get it working with the "default" first dashboard or report in a group but now I'd like to be able to control which report is displayed. It looks like I need to control the value of the "reportId" within the HomeController.cs code file and I can manually manipulate this value by simple assigning it a hard-coded value, I can then embed any report in the group.
My issue comes from how to actually pass a reportid into the HomeController.cs file so I can control which report is actually displayed. Has anyone been able to do this?
Thanks
@Anonymous
I don't quite get your issue. If you'd like to embed one fixed report, you can hard code the reportid. In other case, you can get the reportids and embed reports according to your bussiness logic. You'll find all reports in one workspace via
var reports = await client.Reports.GetReportsInGroupAsync(GroupId);
Hi, so if I get the reportids can i then loop through and embed them on a web page?
@Anonymous wrote:
Hi, so if I get the reportids can i then loop through and embed them on a web page?
You can surely do that. The reports just have to be in different iframes.
Hi @Anonymous
I solved it creating multiple App Workspace and make the call to them dynamic. In each App Workspace is a report an it is displaying depending an id that I send through my app. Hope it helps you
Regards
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 11 | |
| 6 | |
| 4 | |
| 4 | |
| 3 |