Skip to end of metadata
Go to start of metadata

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

Compare with Current View Version History

« Previous Version 36 Next »

Overview

Use filters to display a sub-set of data in a table (grid) or chart. When you create or edit a filter, PhixFlow displays a window where you can specify a set of clauses. Each clause contains a number of conditions. This is illustrated below:

Sections on this page

You can name and save filters for future use, or use them temporarily. 

You can also use the selected data in a grid to act as a filter on the data displayed; see Creating Background Filters Within a Layout.

Filter Window

Toolbar

  •  Apply Filter Apply the filter without saving it.
  •  Apply Save without closing.
  •  Apply and Close Save and close.

To save a filter for future use, after entering the details remember to save the filter.

Filter Tab

FieldDescription
NameThe name of the filter.
Stream NameThe name of the table to which the filter applies.
Private

Available to users with the Create Public Filters privilege.

 Tick to make the filter available only to the user who created it. If this field is not visible to you, the filter is automatically private.

 Untick to make the filter available to other PhixFlow users.

Protect during import

 Untick to allow the filter settings to be changed if this filter is imported from another PhixFlow instance. If the imported configuration does not include this filter, it will be deleted.

 Tick to retain the filter settings if this filter is imported from another PhixFlow instance. To prevent orphaned filters, when a parent stream is deleted by the import, its filters are also deleted.

 More ...

When you have several instances of PhixFlow, for example development and production instances, you may want some item properties to be different for each instance. Usually, when you export from a source instance, then import to a target instance, PhixFlow overwrites item properties with those from the source instance. In the target instance, tick this box to prevent the current setting being overwritten by the source item.

Access Permissions

Available to users with the Create Public Filters privilege, when the Private check box is not ticked.

For details about how to control access to a filter, see Common Properties → Access Permissions.

Build a filter by adding conditions and clauses.

FieldDescription

 Create New

Add a clause to the filter. Hover over the editor to the right of a condition to see this button.

 Delete

Delete the selected clause or condition from the filter. Hover over the editor to the right of a condition or clause to see this button.

 Literal Value

Indicates the value entered is a literal value. Click this icon to switch the value as an expression.

 (Expression String)

Indicates the value entered is an expression. Click this icon to switch the value to a literal value.

Ignore Case

 Untick so that, for PhixFlow instances running on Oracle or MariaDB (MySQL), the condition only matches strings that have the same capitalisation (case-sensitive).

 Tick  so that the condition matches strings that have any capitalisation (case-insensitive). For example "abc" matches "abc", "Abc", "ABC", etc. For case-insensitive filters, there is no difference if the attribute is also indexed. 

Whether or not the check box is ticked by default depends on the underlying stream attribute property tab → Advanced section → Filter conditions are case-independent by default.

This option affects the behaviour of filters for PhixFlow instances running on Oracle or MariaDB (MySQL) databases.
For PhixFlow instances running on a SQLServer database, filters are always case-independent.

 Filter Picker

Display the filter picker. Click this icon to display a list of possible values to filter by. See Filters on Data Views#Using Filter Pickers, below.

Description Tab

Optionally, enter a description to explain the purpose of this filter.

Using Filter Pickers

If the table view that you are filtering on has Allow Filter Picker selected, then PhixFlow displays the  icon after the value field. To use a filter picker:

  1. Click on the filter picker icon  to display a list of the possible values to filter on for that field.
  2. Click to select one value, or Shift+click or Ctrl+click to select multiple values to use in the filter
  3. Click on the tick in the bottom right to finish.
    Alternatively double-click on a row to add that row to your selection and close.

To clear the currently selected values, click on the cross in the bottom left.

When you are constructing a column filter, the values displayed in the filter picker list have already been filtered by any table view:

  • background filters
  • table view filters
  • any other filter conditions.

When you have selected:

  • one value from the list, the filter condition changes to:
    • either Equals
    • or not Equals, when the selected condition is not Equals
  • multiple values from the list, the value field is automatically changed to an expression, and the filter condition changes to:
    • either Is in
    • or Is not inwhen the selected condition is set to Is not in.

There are some scenarios where PhixFlow cannot generate the list of values for a filter picker list.

  • pivot views
  • where the underlying table data is aggregated

In these cases, PhixFlow automatically hides the icon  Filter Picker.

Column Filters

When you display a data grid, for example the default table view, you can apply filters directly to a column.

  1. Hover your mouse pointer over the column header to display a  Filter icon.
  2. Click the  Filter icon to open the filter options.
  3. From the drop-down, select a filter condition.
  4. Enter the filter value or click  to select a value from those present in the data.
    To work in a larger space, for example to enter longer values or expressions:
    • either drag the bottom right corner of the value box
    • or click the  Larger Editor button.
  5. Set whether the value is a  Literal Value  or an  (Expression String).
  6. Optionally add further conditions and values.
  7. Click Apply.

Columns that have a filter are marked with this icon: .

You cannot apply a column filter to percentage aggregate values.

Filter Examples

Create prompt filter

You can create a filter that will prompt users to enter a value, and filter based on that. For example, if you have data which contains people's names, you could create a filter like:

Name contains _prompt.EnterName fx

Filter on Current User

If your data contains details of the user, you may be able to filter based on the currently logged in user. For example, to set a filter where the owner equals the current logged in user, add a condition to the filter:

Owner equals _user.name fx

Enter a list of values for an "Is In" or "Is Not In" filter

If you want to select a set of records which have a field set to one of a range of possible values you can do this by selecting the "Is in" or "Is not in" comparator from the drop down list and then simply typing the list of values into the edit box to the right of the comparator as a comma separated list like this:

Country Is in England, France, Germany ABC

Alternatively, you can enter the comparison value as expression:

Country Is in ["England","France","Germany"] fx


  • No labels