20 Advanced Filters

  • Create a filter using an expression
  • Set a default filter on a table view

Create a filter using an expression

The chart is cluttered. You will now add a filter to this view to limit the results to the last 40 days:

  1. In the chart, press  Filter.
  2. Press  Create Filter.
  3. Configure the filter with the following details:
    • Name: Last 40 days
    • Conditions:
      1. The condition dialogue starts with Where ALL the following are true - leave this as it is
      2. Select Calculation Date
      3. Press on equals - from the drop down list that appears, select greater than.
      4. Enter this formula, which will take the current date, and then go back 40 days

        dateAdd(now(), _DAY_OF_MONTH, -40)
      5. Press the ABC button - this will now say fx

        1. This switches the input to handle expressions rather than a string.
      6. When you have completed all these details press Apply and Save.
  4. Your grid should now show only results from the last 40 days.

Set default filter on a view

Since the view Debt levels by payment means 2 is too cluttered to be useful with all results showing, you decide to make the filter Last 40 days, that you created in the previous exercise, the default filter for this view:

  1. Right-click on the chart for Debt levels by payment means 2
    and press  Show view configuration.
  2. Set Default Filter to Last 40 days
  3. Press  Apply and Close.

Go into Application Mode to see the results.