We can exclude a particular item from saved search results using the following formula:
- Navigate to:
Lists > Searches > Saved Searches > New. - Select Search Type:
Transaction. - Set Required Criteria: Add any necessary filters or conditions for your search.
- Click Results: To define the columns and calculations for the results.
- Add Formula:
- In the
Resultstab, add a new column. - For
Field, selectFormula (Currency). - Set the
Summary Typeas needed (e.g.,Sum).
- Enter Formula:
- Formula:
CASE WHEN {type} = 'Sales Order' AND {item} <> 'Name of item to be excluded' THEN NVL({amount}, 0) ELSE 0 END
- Save the Search: Give your saved search a name and save it.
- This formula ensures that transactions of type ‘Sales Order’ are included in the results, but it excludes those with the specified item. The
NVL({amount}, 0)function ensures that any null amounts are treated as 0.