You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Report filters are used to modify the content of the whole report. Multiple filters can be displayed in the sidebar or directly in the report as a special type of view. Each filter can have different functionality and appearance.

Creating Filters

Only  report author  or  report editor  can create report variables and set their default values. Every other user that has access to the report, can only change report variable values.

To create a new filter, open the Variables sidebar.

You can use 2 approaches when creating filters:

  • Quick filters - Filters are created with default layout of multi-select boxes

  • Creating filtering components - Layout of every filter is configured separately

Creating filter component

  1. Click on Edit button to enter Variables dialog.
  2. Select which type of component you would like to create. To create a filter component, select Filter. 
  3. Optionally, change the identifier.
  4. Click on Add.
  5. Select which type attribute to use for filtering
  6. Select the condition (contains or doesn't contain)
  7. Optionally, select default value. See below.
  8. Optionally, edit the Advanced settings to change the appearance and functionality of the filter. See below.
  9. Save the filter

Setting default value

To set one or more default values, click on Default values and select values which should be used as default. These values will be preselected when the user opens the report for the first time or when the user resets the filters.

Defining the default values via formula

Available since BellaDati 2.9.11.

It is possible to dynamically calculate the default value. Expected return type is Array or single value, e.g.: [ 'abc', 'def' ] or 'abc'.

Example

 

def array = []
array << 'East'
array << 'South'

Setting default value for date attribute

For date attributes, it is possible to configure the date value as day, week, month, quarter or year.

Using relative dates

By enabling the option Use relative dates, the users can set the default value dynamically by using relative dates. Following relative dates are available:

Relative dateActual value
nowCurrent day
actualDayCurrent day

actualWeek

Current week (first day of week)
actualMonthCurrent month (first day of month)
actualQuarterCurrent quarter (first day of quarter)
actualYearCurrent year (1st January of current year)

Additionally, the value can be further modified by adding or subtracting certain amount of days, weeks, months etc., e.g. actualQuarter+1y-5d.

ModifierValue
ddays
wweek
mmonth
qquarter
yyear

 

 

 

  • No labels