Scenario
Create a Saved Search that shows Expense Reports related to certain Expense Category only.
Solution
For example, Expense Report 123 has two Expense Categories: Category One and Category Two. The main objective is to show only Expense Reports that has Category One. Since Expense Report 123 has both categories, it should be excluded in the result.
Create a Saved Transaction Search:
- Navigate to Reports > Saved Searches > All Saved Searches > New
- Select Transaction
- Add the fields below under Criteria tab > Summary subtab:
- First formula
- Summary Type: Maximum
- Field: Formula (Numeric)
- Description: Is 0
- Formula: max(case when {expensecategory} IN (‘Category Two’) then 1 else 0 end)
- Second formula
- Summary Type: Maximum
- Field: Formula (Numeric)
- Description: Is 1
- Formula: max(case when {expensecategory} IN (‘Category One’) then 1 end)
- First formula
- Under Results tab, set Summary Type of Document Number to Group and Amount to Sum
- Set the Search Title
- Click Save & Run