cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Embed Group Reports or Tiles

Hey,

 

I'm working on integrating Reports with Power BI Embedded and the REST API. I already manages to embed MY reports and tiles and i know i can also get groups where i'm in, but how can I embed Reports from a group? Is that possible?

 

Thanks in advance.

7 REPLIES 7
Highlighted
Community Champion
Community Champion

Re: Embed Group Reports or Tiles

@NerdFlanders With Power BI Embedded you import pbix file into your azure workspace. So I don't think you need to do anything with group workspaces of power bi service. You simply need pbix file for each report and publish them to your azure workspace unless I've misunderstood you.

Highlighted
Helper I
Helper I

Re: Embed Group Reports or Tiles

No, there are two, let's say versions, of power bi embedded, the one you explained and there is one there you can access reports, dashboards and tiles directly in your workspace with REST API, so you can embed even single tiles on a website. There you also can get your groups, see at Apiary.

I'm wandering why there is a function to get my groups if I can't get any reports from there, or can i?

Highlighted
Helper I
Helper I

Re: Embed Group Reports or Tiles

I found it out by myself:

 

simply add groups/<groupid>/ to you base uri https://api.powerbi.com/beta/myorg/

 

If not you'll only get the reports, dashboards and tiles from your own workspace, but if you organize your reports by topic in different groups its neccessary to get reports from there aswell.

Highlighted
Helper I
Helper I

Re: Embed Group Reports or Tiles

Hello @NerdFlanders

Have you tried to embed group reports using iFrame or JavaScript API?

Like in this tutorial:

https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-integrate-report/

 

Highlighted
Frequent Visitor

Re: Embed Group Reports or Tiles

@NerdFlanders : I have the same issue and read the same page, but I didn't understand what they tell by :

 

    // when using a report in a group, you must provide the groupId on the iFrame SRC

 

Can you give me the line of code where "you provide the groupID on the iframe SRC" ?

 

Thank you,

 

Laurent

Highlighted
Helper I
Helper I

Re: Embed Group Reports or Tiles

@lfrancfort : The exact embed URL I'm using looks like that:

 

https://app.powerbi.com/reportEmbed?reportId=< your report ID >&groupId=< your group ID >

 

actually we managed it to embed any report to SharePoint with pasting simple JavaScript code into the SharePoint site and made this Iframe responsive to the window size.

So no C# code or WebParts oder anything additional

Highlighted
Frequent Visitor

Re: Embed Group Reports or Tiles

Thank you very much, I didn't understand what they meant by "provide the groupid".

 

Laurent

 

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.

Top Solution Authors
Top Kudoed Authors