The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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: