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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.