cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
keithpoplar
Frequent Visitor

JavaScript sdk date time filter

I downloaded Power BI angular client sample (https://github.com/Azure-Samples/powerbi-angular-client) and try to implement an advanced filter in the hosting application to filter my report by date time.

 

It didn't work. The server returns this error: Object {message: "Invalid filter definition"}

 

Below is the code segment for advanced filter:

 

    static predefinedFilter2 = new pbi.models.AdvancedFilter({
        table: "f_msANA_byRelease_transformed",
        column: "aaValuePeriodStartTime"
    }, "And",
        {
            operator: "GreaterThan",
            value: "2016-06-01"
        }
    );

I tried to change the date time to different format but hit the same error.

 

Any suggestion is appreciated.

0 REPLIES 0

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors