Forum Discussion
Embedding PowerBI in a PCF Control.
- 1 year ago
Hi Jaknap,
I have identified few alternative workarounds that may help resolve the issue. Please follow these steps:
The Power BI JavaScript SDK does not provide direct methods to disable real-time updates. However, you can manage the frequency and behavior of updates by adjusting the report configuration in Power BI. Reports linked to real-time or streaming datasets will continue to update automatically.To reduce network impact and control update frequency, consider:
- Configuring the report to use import mode (static datasets) instead of live or streaming datasets.
- Utilizing "load" or "render" events in the SDK to load reports only when necessary (e.g., on-demand).
The frequent subscribe requests are likely due to the Power BI report’s configuration or the live connection to a data source. These requests occur as Power BI needs to keep the data synced. To manage this, suggest:- Using the embedConfig parameter to control interactivity settings, such as disabling auto-refresh features.
- Employing event handlers like onDataChanged to manage update timings, rather than relying on default behaviors.
Kindly refer to these links:
Power BI embedded analytics overview - Power BI | Microsoft LearnPower BI embedded analytics Client APIs | Microsoft Learn
If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.
Thank you for using Microsoft Community Forum.
Thank you for your response. Much appreciated. Is there any settings or workaround I can do at the SDK level?
I am seeing lot of subscribe request being made in the network tab. Is this because of the real time update.
Thank You
J
Hi Jaknap,
I have identified few alternative workarounds that may help resolve the issue. Please follow these steps:
The Power BI JavaScript SDK does not provide direct methods to disable real-time updates. However, you can manage the frequency and behavior of updates by adjusting the report configuration in Power BI. Reports linked to real-time or streaming datasets will continue to update automatically.
To reduce network impact and control update frequency, consider:
- Configuring the report to use import mode (static datasets) instead of live or streaming datasets.
- Utilizing "load" or "render" events in the SDK to load reports only when necessary (e.g., on-demand).
The frequent subscribe requests are likely due to the Power BI report’s configuration or the live connection to a data source. These requests occur as Power BI needs to keep the data synced. To manage this, suggest:
- Using the embedConfig parameter to control interactivity settings, such as disabling auto-refresh features.
- Employing event handlers like onDataChanged to manage update timings, rather than relying on default behaviors.
Kindly refer to these links:
Power BI embedded analytics overview - Power BI | Microsoft Learn
Power BI embedded analytics Client APIs | Microsoft Learn
If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.
Thank you for using Microsoft Community Forum.