Showing results for 
Search instead for 
Did you mean: 
nikolaid Occasional Visitor
Occasional Visitor

Filter Api works only in development mode


I'm trying to filter dates and it works as expected in developer mode (pbiviz start).

After packaging and uploading the pbiviz-file into the same report, everything seems fine, except the filter doesn't filter anything.

Here's my filter function:

private applyFilter(startDate: Date , endDate: Date): void {
        let conditions: IAdvancedFilterCondition[] = [];
        let target = this.getAdvancedFilterColumnTarget(this.dataView);
        if(startDate && endDate) {
                operator: "GreaterThan",
                value: startDate
                operator: "LessThan",
                value: endDate

        let filter = new AdvancedFilter(target, "And", conditions);
        console.log(filter);, "predefinedRanges", "filter", 0 );

In both environments/modes the "host.applyJsonFilter" function is called without any error.

btw. I'm using the webpack setup.


I am grateful for any hint.

Helpful resources

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Top Kudoed Authors
Users Online
Currently online: 249 members 2,433 guests
Please welcome our newest community members: