Creating Variable Filter Criteria

A variable filter allows you to filter a group of objects based on a variable value. The value used in the filter is only determined at the time the filter is used by looking up the current value of the selected attribute or relationship. A specific, fixed value cannot be selected. For example, you might want to filter employee names based on the name of the employee currently logged in, rather than a specific employee name.
For example, you could select a group of work requests that were requested by the current employee (the employee currently logged in), regardless of who that is. This allows you to create one configuration for a table (for example, a “My Requests” configuration), rather than separate configurations for each of the users (such as “Joe’s Requests” or “Sarah’s Requests”).
To do this, you can filter the Work Request class’s Requestor attribute by the Current Employee. Since this data is not part of the Work Request class, you would use a relationship (or join path) to capture that data. In this case, you would select the relationship Enterprise.CurrentEmployee, and the attribute EmployeeName.
This topic describes how to create variable filters on an existing calculation input. For general information about using filtering criteria in a calculation input, see Filtering Criteria. For detailed information about creating filter-based calculation inputs, see Creating Calculation Inputs Based on Filters.
Note: To create filter-based calculation inputs, you should a good understanding of APM object modeling concepts. To learn more about the object model, see Object Model Overview.

To Create a Variable Filter Criteria

1.
2.
To add a filter criteria, click the New list and then Variable Filter . The Filter Criterion dialog appears.
3.
For example, to filter a list of tasks based on the asset, you would select the Work Order Task class’ Asset to work on relationship. Or, you could select a relationship from the Work Order Task class to the Maintenance Group class. You could then use the Maintenance Group Name attribute to filter the group of tasks.
For example, if you are filtering a group of work order tasks, you might select the Task status attribute. You can then select one of the task statuses (for example, Planned) as the value to filter on.
4.
5.
Select the Condition to use for the filter. The choices available vary depending on the data type of the selected attribute.
6.
7.