<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Power bi visuals embed using API in external site in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-bi-visuals-embed-using-API-in-external-site/m-p/4823608#M63083</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1249533"&gt;@v-sdhruv&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for reply, can you please tell in simple steps my plan is to get data from semantic model -(API) then how to connect to charts &amp;gt; (&lt;SPAN&gt;e.g., D3.js, Chart.js, Plotly)-then external website.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Sep 2025 12:24:25 GMT</pubDate>
    <dc:creator>pbidaxlearner</dc:creator>
    <dc:date>2025-09-11T12:24:25Z</dc:date>
    <item>
      <title>Power bi visuals embed using API in external site</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-bi-visuals-embed-using-API-in-external-site/m-p/4821341#M63047</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help with power bi embeding using only semantic model and service principle Name for security , need to use different visual than power bi in external site, any suggestions much appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 11:57:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-bi-visuals-embed-using-API-in-external-site/m-p/4821341#M63047</guid>
      <dc:creator>pbidaxlearner</dc:creator>
      <dc:date>2025-09-09T11:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Power bi visuals embed using API in external site</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-bi-visuals-embed-using-API-in-external-site/m-p/4823127#M63074</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/572387"&gt;@pbidaxlearner&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Using service principals and semantic models&amp;nbsp;is ideal for secure, scalable embedding in enterprise-grade applications.Ensure the service principal has at least viewer or contributor access to the workspace hosting the semantic model. You can enforce RLS by passing the effective identity of the user when generating embed tokens. This ensures users only see data they’re authorized to view.&lt;BR /&gt;&lt;BR /&gt;Refer-&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/embedded-row-level-security" target="_blank"&gt;Security in Power BI embedded analytics - Power BI | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;If you want to render visuals using a different visualization library (e.g., D3.js, Chart.js, Plotly), consider this approach:&lt;/P&gt;
&lt;P&gt;1.Query Semantic Model via XMLA or REST API:&lt;/P&gt;
&lt;P class="lia-align-left"&gt;Use the XMLA endpoint to query the semantic model directly.&lt;/P&gt;
&lt;P class="lia-align-left"&gt;Extract the data using PowerShell, Azure Logic Apps, or custom client apps.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/enterprise/powerbi/service-premium-connect-tools" target="_blank"&gt;Semantic model connectivity and management with the XMLA endpoint in Power BI - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/enterprise/powerbi/service-premium-service-principal" target="_blank"&gt;Automate Power BI Premium workspace and semantic model tasks with service principals - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 05:57:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-bi-visuals-embed-using-API-in-external-site/m-p/4823127#M63074</guid>
      <dc:creator>v-sdhruv</dc:creator>
      <dc:date>2025-09-11T05:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Power bi visuals embed using API in external site</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-bi-visuals-embed-using-API-in-external-site/m-p/4823608#M63083</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1249533"&gt;@v-sdhruv&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for reply, can you please tell in simple steps my plan is to get data from semantic model -(API) then how to connect to charts &amp;gt; (&lt;SPAN&gt;e.g., D3.js, Chart.js, Plotly)-then external website.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 12:24:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-bi-visuals-embed-using-API-in-external-site/m-p/4823608#M63083</guid>
      <dc:creator>pbidaxlearner</dc:creator>
      <dc:date>2025-09-11T12:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Power bi visuals embed using API in external site</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-bi-visuals-embed-using-API-in-external-site/m-p/4826438#M63106</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/572387"&gt;@pbidaxlearner&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;To retrieve data from a Power BI semantic model using an API,&lt;/P&gt;
&lt;P&gt;Register an Azure AD App and configure it as a service principal then assign it the necessary read permissions.&lt;/P&gt;
&lt;P&gt;Use Microsoft Entra ID for authentication.&lt;BR /&gt;List available semantic model using&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GET https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/semanticModels&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;(Requires viewer access to the workspace also ensure the service principal has ruild or read permissions on the semantic model)&lt;BR /&gt;&lt;BR /&gt;Once you've extracted data from the Power BI semantic model , convert it into a format your charting library understands—usually JSON&amp;nbsp;&lt;BR /&gt;Eg- JSON&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[
  { "label": "Sales", "value": 120 },
  { "label": "Marketing", "value": 80 },
  { "label": "Development", "value": 150 }
]
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Choose your charting library-&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;canvas id="myChart"&amp;gt;&amp;lt;/canvas&amp;gt;
https://cdn.jsdelivr.net/npm/chart.js
&amp;lt;script&amp;gt;
  const data = [
    { label: "Sales", value: 120 },
    { label: "Marketing", value: 80 },
    { label: "Development", value: 150 }
  ];

  const ctx = document.getElementById('myChart').getContext('2d');
  new Chart(ctx, {
    type: 'bar',
    data: {
      labels: data.map(d =&amp;gt; d.label),
      datasets: [{
        label: 'Department Budget',
        data: data.map(d =&amp;gt; d.value),
        backgroundColor: 'rgba(75, 192, 192, 0.6)'
      }]
    }
  });
&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;Refer-&amp;nbsp;&lt;A href="https://www.chartjs.org/docs/latest/samples/information.html" target="_blank"&gt;Chart.js Samples | Chart.js&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://plotly.com/python/" target="_blank"&gt;Plotly Python Graphing Library&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Then you can embed this in your external webpage.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2025 13:06:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-bi-visuals-embed-using-API-in-external-site/m-p/4826438#M63106</guid>
      <dc:creator>v-sdhruv</dc:creator>
      <dc:date>2025-09-15T13:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Power bi visuals embed using API in external site</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-bi-visuals-embed-using-API-in-external-site/m-p/4829415#M63131</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/572387"&gt;@pbidaxlearner&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN data-teams="true"&gt;I hope the information provided above assists you in resolving the issue. If you have any additional questions, please feel free to reach out.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Thnak You&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 07:54:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-bi-visuals-embed-using-API-in-external-site/m-p/4829415#M63131</guid>
      <dc:creator>v-sdhruv</dc:creator>
      <dc:date>2025-09-18T07:54:38Z</dc:date>
    </item>
  </channel>
</rss>

