Power BI Embedded: What it is and how to use it in you web app


What is Power BI

Power BI is a business analytics tool that helps you visualize data and share insights. Embedding Power BI in your application or website allows you to share the benefits of Power BI with your users without requiring them to leave your application or visit the Power BI website. Some benefits of using embedded Power BI include:

  1. Customization: You can customize the appearance and behavior of the embedded Power BI content to match your application or website, which can improve the user experience.

  2. Integration: Embedding Power BI allows you to integrate business intelligence capabilities into your application or website, which can help you provide more value to your users.

  3. Security: Power BI offers various security measures to protect your data, and embedding Power BI allows you to take advantage of these measures to ensure the security of your data.

  4. User experience: Embedding Power BI in your application or website can improve the user experience by providing users with access to powerful business intelligence capabilities without requiring them to leave your application or website



What is Power BI Embedded

Power BI Embedded is a service that allows developers to embed interactive Power BI reports and dashboards into their applications or websites. It allows developers to take advantage of the powerful business intelligence and data visualization capabilities of Power BI without requiring their users to leave the application or visit the Power BI website.

Power BI Embedded is designed to be easy to use, with a JavaScript library that makes it simple to embed Power BI content in an HTML page. It also offers various customization options, allowing developers to control the appearance and behavior of the embedded content to match their application or website.

Power BI Embedded is suitable for a wide range of scenarios, such as embedding reports and dashboards in internal business applications, providing customers with access to business intelligence capabilities, and embedding reports and dashboards in websites.
 

How to use power bi embedded

To use Power BI Embedded, you'll need to follow these steps:

  1. Sign up for a Power BI account and create a workspace.

  2. Create a Power BI report or dashboard that you want to embed.

  3. Publish the report or dashboard to the workspace.

  4. Obtain an Azure AD authentication token and an embed token for the report or dashboard.

  5. Use the Power BI JavaScript library to embed the report or dashboard in your application or website. You can use the Power BI JavaScript library to customize the appearance and behavior of the embedded content.

Here is some sample code that demonstrates how to use the Power BI JavaScript library to embed a report in an HTML page:

<!DOCTYPE html>
<html>
<head>
  <script src="https://cdn.jsdelivr.net/npm/powerbi-client@2.7.0/dist/powerbi.min.js"></script>
  <style>
    #reportContainer {
      width: 800px;
      height: 600px;
    }
  </style>
</head>
<body>
  <div id="reportContainer"></div>
  <script>
    var embedUrl = "https://app.powerbi.com/reportEmbed?reportId=REPORT_ID";
    var accessToken = "ACCESS_TOKEN";
    var embedContainer = document.getElementById("reportContainer");

    var report = powerbi.embed(embedContainer, {
      type: "report",
      accessToken: accessToken,
      embedUrl: embedUrl
    });
  </script>
</body>
</html>


This code will embed a report with the specified REPORT_ID in the element with the ID "reportContainer". You'll need to replace ACCESS_TOKEN with a valid Azure AD authentication token.

For more information about using the Power BI Embedded in you web app, reach out to us.

Copyright © 2019 Torpedo. All Rights Reserved

Powered by Kentico CMS | Cookie Policy

By using our website you agree to our cookies policy. Read More Close