<?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: Filtering an Embedded Power BI Report via HTML inputs in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072986#M41183</link>
    <description>&lt;P&gt;This can be done using any programming language that can make HTTP requests, such as JavaScript. To get started, you can refer to the official Power BI REST API documentation, which provides information on how to authenticate, retrieve reports, and apply filters.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Feb 2023 19:50:48 GMT</pubDate>
    <dc:creator>Sahir_Maharaj</dc:creator>
    <dc:date>2023-02-09T19:50:48Z</dc:date>
    <item>
      <title>Filtering an Embedded Power BI Report via HTML inputs</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072816#M41163</link>
      <description>&lt;P&gt;Hi. I have a React web application with a power bi report embedded in it. Is there a way to filter data in a report programatically by using an html input text box in the web application?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 18:39:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072816#M41163</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-09T18:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering an Embedded Power BI Report via HTML inputs</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072975#M41174</link>
      <description>&lt;P&gt;Hello&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, you can programmatically filter data in a Power BI report that is embedded in a React web application. You can use the Power BI JavaScript API to interact with the embedded report and apply filters. Here is an outline of the steps:&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 19:47:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072975#M41174</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2023-02-09T19:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering an Embedded Power BI Report via HTML inputs</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072976#M41175</link>
      <description>&lt;P&gt;1. Embed the Power BI report in your React application using the Power BI JavaScript API.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 19:47:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072976#M41175</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2023-02-09T19:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering an Embedded Power BI Report via HTML inputs</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072977#M41176</link>
      <description>&lt;P&gt;2. Create an HTML input text box in your React application.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 19:48:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072977#M41176</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2023-02-09T19:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering an Embedded Power BI Report via HTML inputs</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072978#M41177</link>
      <description>&lt;P&gt;3. Listen to the "change" event of the input text box and retrieve its value.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 19:48:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072978#M41177</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2023-02-09T19:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering an Embedded Power BI Report via HTML inputs</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072979#M41178</link>
      <description>&lt;P&gt;4. Use the Power BI JavaScript API's "setFilters" method to apply a filter to the embedded report based on the value entered in the input text box.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 19:48:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072979#M41178</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2023-02-09T19:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering an Embedded Power BI Report via HTML inputs</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072980#M41179</link>
      <description>&lt;P&gt;Here is a code example I have written in React:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;import React, { useState, useEffect } from 'react';
import * as pbi from 'powerbi-client';

const Report = () =&amp;gt; {
  const [report, setReport] = useState(null);
  const [inputValue, setInputValue] = useState('');

  useEffect(() =&amp;gt; {
    const embedConfiguration = {
      type: 'report',
      id: '&amp;lt;REPORT_ID&amp;gt;',
      embedUrl: '&amp;lt;REPORT_EMBED_URL&amp;gt;',
      accessToken: '&amp;lt;ACCESS_TOKEN&amp;gt;',
      tokenType: pbi.models.TokenType.Aad
    };

    const powerbi = new pbi.Service(
      pbi.factories.hpmFactory,
      pbi.factories.wpmpFactory,
      pbi.factories.routerFactory
    );

    const reportContainer = document.getElementById('reportContainer');
    const report = powerbi.embed(reportContainer, embedConfiguration);
    setReport(report);
  }, []);

  const handleInputChange = (event) =&amp;gt; {
    setInputValue(event.target.value);
  };

  const applyFilter = () =&amp;gt; {
    if (report) {
      report.getFilters()
        .then((filters) =&amp;gt; {
          const newFilters = [{
            ...filters,
            $schema: "http://powerbi.com/product/schema#basic",
            target: {
              table: "&amp;lt;TABLE_NAME&amp;gt;",
              column: "&amp;lt;COLUMN_NAME&amp;gt;"
            },
            operator: "In",
            values: [inputValue]
          }];

          report.setFilters(newFilters)
            .catch((error) =&amp;gt; console.error(error));
        })
        .catch((error) =&amp;gt; console.error(error));
    }
  };

  return (
    &amp;lt;div&amp;gt;
      &amp;lt;input type="text" value={inputValue} onChange={handleInputChange} /&amp;gt;
      &amp;lt;button onClick={applyFilter}&amp;gt;Filter&amp;lt;/button&amp;gt;
      &amp;lt;div id="reportContainer" /&amp;gt;
    &amp;lt;/div&amp;gt;
  );
};

export default Report;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 09 Feb 2023 19:49:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072980#M41179</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2023-02-09T19:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering an Embedded Power BI Report via HTML inputs</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072981#M41180</link>
      <description>&lt;P&gt;This is just a basic example. You can modify it according to your needs.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 19:49:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072981#M41180</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2023-02-09T19:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering an Embedded Power BI Report via HTML inputs</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072982#M41181</link>
      <description>&lt;P&gt;Note that you will need to replace the placeholders (e.g. &amp;lt;REPORT_ID&amp;gt;, &amp;lt;REPORT_EMBED_URL&amp;gt;, &amp;lt;ACCESS_TOKEN&amp;gt;, &amp;lt;TABLE_NAME&amp;gt;, &amp;lt;COLUMN_NAME&amp;gt;) with the actual values for your report.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 19:49:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072982#M41181</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2023-02-09T19:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering an Embedded Power BI Report via HTML inputs</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072985#M41182</link>
      <description>&lt;P&gt;Another option to filter data programmatically in Power BI is to use the Power BI REST API. You can programmatically set filters on a report by making a REST API request to the Power BI service and passing in the filter values that you want to apply.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 19:50:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072985#M41182</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2023-02-09T19:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering an Embedded Power BI Report via HTML inputs</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072986#M41183</link>
      <description>&lt;P&gt;This can be done using any programming language that can make HTTP requests, such as JavaScript. To get started, you can refer to the official Power BI REST API documentation, which provides information on how to authenticate, retrieve reports, and apply filters.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 19:50:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072986#M41183</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2023-02-09T19:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering an Embedded Power BI Report via HTML inputs</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072987#M41184</link>
      <description>&lt;P&gt;Another thing to keep in mind is that Power BI offers both client-side and server-side embedding options. When embedding a report in a React web application, you can choose to either embed the report directly on a client-side component, or you can embed the report on a server-side component and have it rendered in the client-side component. Each option has its own advantages and disadvantages, and the choice will depend on your specific use case and requirements.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 19:51:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072987#M41184</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2023-02-09T19:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering an Embedded Power BI Report via HTML inputs</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072990#M41185</link>
      <description>&lt;P&gt;If you are interested in server-side embedding, you can make use of the Power BI .NET Client Library, which provides a convenient way to interact with the Power BI REST API from .NET applications.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 19:51:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072990#M41185</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2023-02-09T19:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering an Embedded Power BI Report via HTML inputs</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072991#M41186</link>
      <description>&lt;P&gt;This can be especially useful for filtering reports programmatically as it provides a more secure and scalable solution compared to client-side embedding.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 19:51:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072991#M41186</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2023-02-09T19:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering an Embedded Power BI Report via HTML inputs</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072994#M41187</link>
      <description>&lt;P&gt;In any case, I would recommend thoroughly testing the solution in a development environment before deploying it to production, to ensure that it meets your requirements and is working as expected.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 19:52:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072994#M41187</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2023-02-09T19:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering an Embedded Power BI Report via HTML inputs</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072995#M41188</link>
      <description>&lt;P&gt;It's also a good idea to monitor the performance of the report to ensure that it remains fast and responsive even as the volume of data grows over time.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 19:53:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072995#M41188</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2023-02-09T19:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering an Embedded Power BI Report via HTML inputs</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072997#M41189</link>
      <description>&lt;P&gt;Power BI provides several performance monitoring and optimization tools that can help you identify and resolve performance issues.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 19:53:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072997#M41189</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2023-02-09T19:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering an Embedded Power BI Report via HTML inputs</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072999#M41190</link>
      <description>&lt;P&gt;&lt;SPAN&gt;If you have any other questions or if there is anything else I can assist with, please let me know.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 19:54:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3072999#M41190</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2023-02-09T19:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering an Embedded Power BI Report via HTML inputs</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3108602#M41504</link>
      <description>&lt;P&gt;Dankie,!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 18:54:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filtering-an-Embedded-Power-BI-Report-via-HTML-inputs/m-p/3108602#M41504</guid>
      <dc:creator>RaphaëlGargie</dc:creator>
      <dc:date>2023-03-02T18:54:33Z</dc:date>
    </item>
  </channel>
</rss>

