Forum Discussion

KKK's avatar
KKK
Frequent Visitor
4 years ago
Solved

Scorecard embed code does not work in canvas app

Hi Everyone,   I formed an embed code for scorecard(example shown below)   https://app.powerbi.com/scorecardEmbed?scorecardId=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx   When I tried to use this code in p...
  • KKK's avatar
    4 years ago

    Thank you. My apologies if i was not clear previously. Our all embed codes work fine and we also use the same way which you have suggest for many reports. We do not include the keyword "autoAuth=true" when I am embedding a report in power bi tile of canvas app and that works very well without any issues as the users are already logged in to canvas app(created for mobile). the scorecard embed code also doesn't not show any error message which means(I presume) that the link we have formed is correct. The problem is that it does not load the data. It only shows a processing ring. I would want to see the data. One observation is that when we embed any power bi report it does not cover the menu bar along with it. But when I used my embed code for scorecard, it definitely shows a menu bar(i am not sure how important that is). Do you think that it is not displaying the data in canvas app because of the menu bar? I believe autoAuth keyword is not the concern here. I look forward to hearing from you

  • ibarrau's avatar
    ibarrau
    4 years ago

    Alright. Now I get it. I don't think you can get a scorecard embbeded that way. The PowerApps is asking for a Tile. The tile is a component inside a dashboard. It's a very specific thing. I have also seen that you can tweak that to embed a report, but that looks like a hackish solution to me. I don't think scorecards will work. It's not very stable yet.

    The things I have said before you can google them. They depend on the licence.

    - Publish to web: power bi free licence. Unsecury way to build a public content.

    - Embed code with iframe: power bi pro licence. You can get an url that can be added in an iframe html tag at any web app.

    - Create a development with Embed Analytics (app owns data or user owns data). Power Bi Embedded or premium licence. You can build a complex development. You will have many possibilities with javascript. Noy only can you embed the report but also interact with external things on the website directly to the report.

    The last one is the most flexible way. The last two might work I guess. Embedding in a webapp should work like the link you generated and told me it was rendering on a browser.

    I hope that helps,