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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
emiljas
Frequent Visitor

Incremental updates mode - do not load all data after switching to edit mode

Hi,

I created simple custom visual to test incremental updates mode:

 

public update(options: VisualUpdateOptions) {
    this.formattingSettings = this.formattingSettingsService.populateFormattingSettingsModel(VisualFormattingSettingsModel, options.dataViews[0]);

    console.log('VISUAL_UPDATE');

    const dataView = options.dataViews[0];
    const lenght = dataView.table.rows.length - ((dataView.table["lastMergeIndex"] === undefined) ? 0 : dataView.table["lastMergeIndex"] + 1);

    if (options.operationKind === VisualDataChangeOperationKind.Create) {
        console.log("CREATE", lenght);
    }
    else if (options.operationKind === VisualDataChangeOperationKind.Segment) {
        console.log("SEGMENT", lenght);
    }

    if (options.dataViews[0].metadata.segment) {
        console.log("REQUEST_ACCEPTED", this.host.fetchMoreData(false));
    }
}

 

 

On report startup you can see this in developer console and it seems to be fine:

VISUAL_UPDATE
CREATE 15000
REQUEST_ACCEPTED true
VISUAL_UPDATE
SEGMENT 14999
REQUEST_ACCEPTED true
VISUAL_UPDATE
SEGMENT 14999
REQUEST_ACCEPTED true
VISUAL_UPDATE
SEGMENT 10077
 
Unfortunately when I switch to report editing then I can see this:
VISUAL_UPDATE
CREATE 10077
So I am getting only last segment. Is it expected behaviour? Am I missing something?
0 REPLIES 0

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Solution Authors