Scenario
User wants to create Customer Saved Search to List All Customers with Sales on the Same Month Last Year but no Sales this Month.
Solution
- Navigate to Lists > Search > Saved Searches > New
- Click Customer
- Search Title: Enter Title
Example: All Customers with Sales on the Same Month Last Year but no Sales this Month - Click Criteria tab
- Click Standard subtab
- Use Expressions: Enter Checkmark
- Filter:
Note: For every required field use the drop-down menu to select it and once adjusted click Set if needed.- Select Transaction Fields…
- Transaction Filter: Select Main Line
- Main Line: Select YES
- And/Or: Select And
- Select Transaction Fields…
- Transaction Filter: Select Type
- Type: Select any of
- Select Cash Sale, Invoice
- And/Or: Select And
- First Parents: Select (
- Select Transaction Fields…
- Transaction Filter: Select Date
- Date: Select within
- Select same month last fiscal year
- And/Or: Select Or
- Select Transaction Fields…
- Transaction Filter: Select Date
- Date: Select within
- Select this month
- Second Parents: Select )
- Click Summary subtab
- Field:
Note: For every required field use the drop-down menu to select it and once adjusted click Set if needed.- Summary type: Select Sum
- Select Formula (Numeric)
- Click Set Description symbol
- Formula: Enter CASE WHEN {transaction.trandate} between trunc(add_months({today}, -12), 'month') AND last_day(add_months({today}, -12)) THEN 1 ELSE 0 END
- Formula (Numeric): Select greater than
- Value: Enter "0"
- Summary type: Select Sum
- Select Formula (Numeric)
- Click Set Description symbol
- Formula: Enter CASE WHEN {transaction.trandate} between trunc({today}, 'month') AND last_day({today}) THEN 1 ELSE 0 END
- Formula (Numeric): Select equal to
- Value: Enter "0"
- Click Results tab
- Click Columns subtab
- Field:
Note: For every required field use the drop-down menu to select it and once adjusted click Add if needed.- Select: Internal ID
- Summary Type: Select Group
- Select: Formula (Numeric)
- Summary Type: Select Sum
- Formula: Enter CASE WHEN {transaction.trandate} between trunc(add_months({today}, -12), 'month') AND last_day(add_months({today}, -12)) THEN 1 ELSE 0 END
- Summary Label: Enter 12 Months Ago
- Select: Formula (Numeric)
- Summary Type: Select Sum
- Formula: Enter CASE WHEN {transaction.trandate} between trunc({today}, 'month') AND last_day({today}) THEN 1 ELSE 0 END
- Summary Label: Enter This Month
- Click Save & Run