On a Transaction Saved Search, the user wants to expose the number of Transactions Created per Hour.
Solution
- Navigate to Lists > Searches > Saved Searches
- Find the Saved Search in concern
- Click Results
- Click Columns
- Fields:
- Select Formula (Numeric)
- Summary Type: Select Maximum
- Function: Select Round
- Formula: Enter sum(case when {systemnotes.type} = ‘Create’ and {systemnotes.field} = ‘Record’ and to_char({systemnotes.date},’hh24′) = ’16’ then 1 else 0 end)/NULLIF(count(distinct case when {systemnotes.type} = ‘Create’ and {systemnotes.field} = ‘Record’ then to_char({systemnotes.date},’YYMMDD’) end),0)
- Summary Label: Total No. of Transactions (4pm – 5pm)
Note: The expected result will be the number of transactions created from 4:00-4:59 pm. Should the user want to modify the time range, just edit the to_char({systemnotes.date},’hh24′) = ’16’ expression.
- Select Formula (Numeric)
- Click Save & Run