Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
eddywijaya
Frequent Visitor

Cache mechanism in Embedded Report

Hi All,

I noticed that report shown in https://app.powerbi.com have some cache mechanism when the user open it for the 2nd time and so on. Making it faster to load the report.

Can the Embedded report have the same user experience for this?

3 REPLIES 3
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @eddywijaya,

 

Please refer to PowerBI-JavaScript/wiki/Phased-Embedding-API#preload-warm-start. You can try it out.

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-jiascu-msft,

Thanks for your reply, I have tried your solution and it considerably faster now.

But I applied (pre-defined) filter in my embedded report

 

Like this :

var  MyFilter = {
    $schema: "http://powerbi.com/product/schema#basic",
    target: {
        table: "Table1",
        column: "Column1"
    },
    operator: "Contains",
    values: "1234"              
}

report.on("loaded", function() {
    report.setFilters([MyFilter]).catch
    (errors => {console.log(errors)});
});

 I tried to do the same with on('preload') but the data shown is not filtered

 

Hi @eddywijaya,

 

I'm afraid Preload wouldn't work with filters. Because it only requires a base URL.

>>>This function only requires the type of embedded entity, and a base URL for PowerBI Embedded, i.e. embed URLs without any specific URL parameters such as reportId, groupId etc.

 

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.

Top Kudoed Authors