Sorting and filtering in Designer

  1. To access sorting, select Sort icon from the toolbar.

  2. Enable the columns you like to sort the report by. When sort is enabled on a column, that column automatically comes up before columns on which sort is disabled. Drag and drop the order of the columns to change the sort order.

  3. Select an enabled sort to change the sort type and enable Display Sorting. When Display Sorting is enabled, the columns are sorted after the database query has run so all expressions are executed.

You can create and enable filters for your Designer report. Filters can be used to restrict the result set in a report so that only records that satisfy the filter conditions are used. Filter conditions can be defined on any of the selected columns in a report. When filtering a report, chart results are also filtered. Access filters by clicking the Filters icon from the toolbar.

  1. To create a new filter either:
    1. Select the Filters icon from the toolbar, select the +Add Filter icon. Choose either the Filter or Advanced Filter option. Select the column to filter on. The filter will be added to the filter section. Select the filter to edit and apply to the report.
    2. From the Report Content menu, select the Entity Actions icon and then Create Filter.
    3. From the report display area, click on the entity, select the Entity Actions icon, and select Create Filter.
  2. Select the Filter Type:
    • Data (default): The filter operation is carried out at the database level and returns only results that meet the criteria.
    •  Display: The filter operation is applied after the database returns the result set for the report query; only the selected values are displayed in the report.
    • Set-based: The result set of another report is used to provide filter values. This is useful for exception reporting. Important: When this filter is based on another report, the column in the subreport must not contain any BQL functions or positional calculations. BQL expressions in set-based filter subqueries are not supported. The set-based filter is an "IN" or "NOT IN" subquery that can use the basic operators such as equal to (=), less than (<), etc.
  3. Select the filter operator from the list
  4. Select the filter style. The styles available are based on the data type. Filter styles include:
    • Check list: for multi-select text-based, or numeric data types.
    • Slider: for date, datetime, and integer data types.
    • Value: for text-based data.
    • Date picker: for date data types.
    • Variable: for multi-select, text-based, numeric data, or date types.
  5. Choose the options to filter by. This displays differently depending on the selected filter style.
  6. Select the More Options icon to access the following items:
    • Apply to Measures: Select whether to apply the filter the measures in the report.
    • Prompted: When enabled, this creates a filter that can be used by a dashboard prompt. Birst will automatically create a prompt for you when the report is added to a dashlet. 
  7. When you have finished with the filter selection, select Apply.
  8. Advanced Filters should be used to create complex expressions. Advanced Filters support parenthetical precedence, operators such as IN and NOT IN, and nesting using AND/OR syntax between filters.
    1. Advanced Filters are created using the Expression Builder..
    2. Enter the name of your filter. This displays at the top of the report to indicate the filters that are applied
    3. Create the BQL expression.
    4. By default, Advanced Filters are data filters meaning the filter operation is carried out at the database level and returns only results that meet the criteria. To change this to a display filter, enable Use as a display filter.
    5. When finished, select Done.
  9. Applied filters on the report will display at the top of the report. Hover over the filter to view more information.
  10. Remove filters from a report by clicking the X icon or disabling from the Filters menu.