Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

180
Views
How to add a 'Business Year' condition to the AG Grid filter?

We use AG Grid and I can see that in the date filter we have 'This Week', 'This Quarter', 'This Month', 'This Year' etc. But our year is a business year that runs from April to March. How can I add that option to the filter?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Based on the date filters that you list, I am fairly sure that you are using AdapTable - our AG Grid add-on. If so, then you simply need to add a Custom Predicate in the AdapTableQLOptions section of AdapTable Options and make it available for all Date column filters. Based on your question something like this should do the trick:

adaptableQLOptions: {
  customPredicateDefs: [
    {
       id: 'business_year',
       moduleScope: ['filter'],
       columnScope: { 
         DataTypes: ['Date'] 
       },
       label: 'Business Year',
       handler: ({ value, inputs }) => {
         const businessYearStart: Date = new Date(2022, 3, 1);
         const businessYeaEnd: Date = new Date(2023, 2, 31);
         return value >= businessYearStart && value <= businessYeaEnd;
       },
    },
  ],
}

This will make that filter appear in Quick Filter bar dropdown for all Column Filters. See more at: https://docs.adaptabletools.com/guide/adaptable-ql-predicate-custom

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!