<?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 SPA URL Filtering in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/SPA-URL-Filtering/m-p/3331584#M43455</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I have an SPA, that renders properly and works as expected. I need to preset the filters in the report, when I try this with the URL it renders but the filter isn't applied. I have found many guides including Microsofts own documentation, they all explain it the same way so I'm pretty sure I'm formatting it correctly. My question is, is this even possible or does it need to be done using javascript in the app itself? I've read in the documentation this is possible for embedded reports, but I'm unsure if an SPA is considered an embedded report. Below is my URL, TIA!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://localhost:44300/index.html?reportId=44c69566-4a28-4433-900a-2af17d7a8a80&amp;amp;?filter=Accounts/FName%20eq%20%20%27dealer4%27" target="_blank" rel="noopener"&gt;https://localhost:44300/index.html?reportId=44c69566-4a28-4433-900a-2af17d7a8a80&amp;amp;filter=Accounts/FName%20eq%20%20%27dealer4%27&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jul 2023 16:46:51 GMT</pubDate>
    <dc:creator>gpen23</dc:creator>
    <dc:date>2023-07-14T16:46:51Z</dc:date>
    <item>
      <title>SPA URL Filtering</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/SPA-URL-Filtering/m-p/3331584#M43455</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have an SPA, that renders properly and works as expected. I need to preset the filters in the report, when I try this with the URL it renders but the filter isn't applied. I have found many guides including Microsofts own documentation, they all explain it the same way so I'm pretty sure I'm formatting it correctly. My question is, is this even possible or does it need to be done using javascript in the app itself? I've read in the documentation this is possible for embedded reports, but I'm unsure if an SPA is considered an embedded report. Below is my URL, TIA!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://localhost:44300/index.html?reportId=44c69566-4a28-4433-900a-2af17d7a8a80&amp;amp;?filter=Accounts/FName%20eq%20%20%27dealer4%27" target="_blank" rel="noopener"&gt;https://localhost:44300/index.html?reportId=44c69566-4a28-4433-900a-2af17d7a8a80&amp;amp;filter=Accounts/FName%20eq%20%20%27dealer4%27&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 16:46:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/SPA-URL-Filtering/m-p/3331584#M43455</guid>
      <dc:creator>gpen23</dc:creator>
      <dc:date>2023-07-14T16:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: SPA URL Filtering</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/SPA-URL-Filtering/m-p/3333409#M43480</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/589320"&gt;@gpen23&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I think these URL filters should be setting and added to the embed URL part in embedded configurations instead of directly add to your HTML page url.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;For example:&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;//Report url
var embedUrl = "https://app.powerbi.com/reportEmbed?reportId=&amp;lt;report_id&amp;gt;&amp;amp;groupId=&amp;lt;group_id&amp;gt;";
//Url filter
var filter = "&amp;amp;$filter=&amp;lt;table&amp;gt;/&amp;lt;column&amp;gt; eq '&amp;lt;value&amp;gt;'";
var finalUrl = embedUrl + filter;

// Get the HTML element that will loading the embedded report
var reportContainer = document.getElementById("reportContainer");

// Embed the report with Power BI JavaScript API
var report = powerbi.embed(reportContainer, {
    type: "report",
    embedUrl: finalUrl,
    tokenType: models.TokenType.Aad,
    accessToken: "&amp;lt;access_token&amp;gt;",
    settings: {
        filterPaneEnabled: false,
        navContentPaneEnabled: true
    }
});&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/" target="_blank"&gt;Power BI embedded analytics Client APIs&lt;/A&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 02:25:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/SPA-URL-Filtering/m-p/3333409#M43480</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-17T02:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: SPA URL Filtering</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/SPA-URL-Filtering/m-p/3334664#M43488</link>
      <description>&lt;P&gt;Hi Xiaoxin,&lt;/P&gt;&lt;P&gt;I tried changing the embedURL value to include the filter but I get the same result. One question I do have though, how does that affect the URL I navigate to? The app.powerbi.com URL was the value for embedURL by default, but as you can see from the URL in my original post that is not required for the page to render. Do I also need to modify the URL I navigate to? Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 15:10:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/SPA-URL-Filtering/m-p/3334664#M43488</guid>
      <dc:creator>gpen23</dc:creator>
      <dc:date>2023-07-17T15:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: SPA URL Filtering</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/SPA-URL-Filtering/m-p/3338072#M43512</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/589320"&gt;@gpen23&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;The URL filters will be applied to the embed URL. It should not affect the current web page URL usages and you do not need to change it.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;If that not work on your side, I'd like to suggest you take a look at the following link about 'limitations about URL filter' and 'use URL filter on embed report' if helps:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-url-filters#embedding-scenarios" target="_blank"&gt;Filter a report using query string parameters in the URL - Power BI | Microsoft Learn&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-embed-secure#filter-report-content-by-using-url-filters" target="_blank"&gt;Embed a report in a secure portal or website - Power BI | Microsoft Learn&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 08:15:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/SPA-URL-Filtering/m-p/3338072#M43512</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-19T08:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: SPA URL Filtering</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/SPA-URL-Filtering/m-p/3357966#M43680</link>
      <description>&lt;P&gt;I read these prior to making the post, I would not consider this a soloution.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 12:57:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/SPA-URL-Filtering/m-p/3357966#M43680</guid>
      <dc:creator>gpen23</dc:creator>
      <dc:date>2023-07-31T12:57:00Z</dc:date>
    </item>
  </channel>
</rss>

