# Filter by a Custom Fiscal Year

Here’s how to filter by a custom fiscal year date.

## Example

```nolang
q = load "opportunities";
q = filter q by date('CreatedDate_Year', 'CreatedDate_Month', 'CreatedDate_Day') in ["current fiscal_year".."current_fiscal_year"];
q = group q by 'CreatedDate_Year_Fiscal';
q = foreach q generate
   'CreatedDate_Year_Fiscal' as 'Fiscal Year',
   count() as 'count';
q = order q by 'CreatedDate_Year_Fiscal' asc;
q = limit q 2000;
```

Here’s the query output.

| Fiscal Year | Count |
| ----------- | ----- |
| 2020        | 1     |
