<?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 Getting Delay for Update Parameter &amp;amp; refresh API while embedding report in Webpage in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Getting-Delay-for-Update-Parameter-amp-refresh-API-while/m-p/4050849#M36081</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I had created a report &amp;amp; embed same in client's webpage successfully. I am using query parameter to dynanically update baseurl based on client's interaction. when client access particular report then update parameter &amp;amp; Refresh dataset API Call but it takes approx 1 min to&amp;nbsp; complete refresh cycle &amp;amp; load into webpage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue is during this time client is able to see previous client's data due to baseurl taking time to dynamically change when API call.&lt;/P&gt;&lt;P&gt;I reseached on internet &amp;amp; found that post purchasing PowerBI Embed Capacity( A SKU) above problem will be solve but I am not sure about this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody have idea how to solve above issue...?&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jul 2024 13:50:07 GMT</pubDate>
    <dc:creator>ViralGajjar2904</dc:creator>
    <dc:date>2024-07-19T13:50:07Z</dc:date>
    <item>
      <title>Getting Delay for Update Parameter &amp; refresh API while embedding report in Webpage</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Getting-Delay-for-Update-Parameter-amp-refresh-API-while/m-p/4050849#M36081</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I had created a report &amp;amp; embed same in client's webpage successfully. I am using query parameter to dynanically update baseurl based on client's interaction. when client access particular report then update parameter &amp;amp; Refresh dataset API Call but it takes approx 1 min to&amp;nbsp; complete refresh cycle &amp;amp; load into webpage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue is during this time client is able to see previous client's data due to baseurl taking time to dynamically change when API call.&lt;/P&gt;&lt;P&gt;I reseached on internet &amp;amp; found that post purchasing PowerBI Embed Capacity( A SKU) above problem will be solve but I am not sure about this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody have idea how to solve above issue...?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 13:50:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Getting-Delay-for-Update-Parameter-amp-refresh-API-while/m-p/4050849#M36081</guid>
      <dc:creator>ViralGajjar2904</dc:creator>
      <dc:date>2024-07-19T13:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Delay for Update Parameter &amp; refresh API while embedding report in Webpage</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Getting-Delay-for-Update-Parameter-amp-refresh-API-while/m-p/4052150#M36090</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="769992" data-lia-user-login="ViralGajjar2904" class="lia-mention lia-mention-user"&gt;ViralGajjar2904&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your dataset supports it, configure incremental refresh in Power BI. By updating only the data that has changed, you can reduce the time required to refresh the data. Make sure your data model is optimized for performance. This includes reducing dataset size, using efficient DAX queries, and removing unnecessary columns and rows.&lt;BR /&gt;Purchasing Power BI Embedded Capacity (A SKU) can significantly improve performance. This dedicated capacity ensures your reports have more resources and less contention with other tenants, resulting in faster data refreshes and parameter updates. Further improve performance with the dedicated capacity of caching that comes with the Power BI service.&lt;BR /&gt;Optimize API calls to reduce latency. This might include batching requests where possible and ensuring API calls don't block.&lt;BR /&gt;Leverage asynchronous operations to avoid blocking your application's main thread while waiting for an API response.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;async function refreshReport() {
    await updateParameters();
    await refreshDataset();
    // Update UI or handle data post-refresh
}&lt;/LI-CODE&gt;&lt;P&gt;Implementing load indicators:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;!-- Example HTML for loading indicator --&amp;gt;
&amp;lt;div id="loadingIndicator" style="display: none;"&amp;gt;
    Loading, please wait...
&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;// Example JavaScript to show/hide loading indicator(JS)
function showLoadingIndicator() {
    document.getElementById('loadingIndicator').style.display = 'block';
}

function hideLoadingIndicator() {
    document.getElementById('loadingIndicator').style.display = 'none';
}

async function updateAndRefresh() {
    showLoadingIndicator();
    await refreshReport();
    hideLoadingIndicator();
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post helps, then please consider&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;kudos to this post&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;to help the other members find it more quickly&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jul 2024 01:05:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Getting-Delay-for-Update-Parameter-amp-refresh-API-while/m-p/4052150#M36090</guid>
      <dc:creator>hackcrr</dc:creator>
      <dc:date>2024-07-21T01:05:01Z</dc:date>
    </item>
  </channel>
</rss>

