Recent Rendering performance improvements now available in Power BI Embedded
Published date: August 14, 2019
The following improvements were added recently:
- Embedding different reports into the same iframe – allowing apps that provide their end-users with a list of reports to use the same iframe, switch between the reports, and thus achieve better performance than embedding in new iframes. To use this functionality, all you need to do is to call embed() method with the same div element.
Code example:// Embed to reportContainer div element with embed configuration
powerbi.embed(reportContainerDivElement, embedConfiguration1);
// Switch to another report on button click
function onButtonClick() {
// Embed to THE SAME reportContainer div element with ANOTHER embed configuration
powerbi.embed(reportContainerDivElement, embedConfiguration2);
}
- Query caching for embedded reports – Query caching is now available for embedded reports backed by Power BI Premium or Power BI Embedded capacity. Query Caching speeds up content loading by caching previously used query results. Controlling query caching is done on the dataset settings page in the Power BI service. Learn more.
If you haven’t done it yet, we encourage you to follow the guidelines in the Power BI Embedded performance best practices article. Here are some of the useful tips you can find in the article:
- Install version 2.6.5 or higher of Power BI client SDK. We continue to release more enhancements, so make sure to follow up from time to time and update your SDK version.
- Avoid generating the embed URL yourself. Instead, make sure you get the embed URL by calling the Get reports, Get dashboards, or Get tiles API. We added a new parameter to the URL called config, used for performance improvements.
It’s also important to build your reports to be fast and reliable in any platform. Please follow the Power BI performance best practices article to make sure you use the best practices.