Edit a search formula in Data Mining
When you select more than 1 criterion for a search, Data Mining creates a search formula consisting of AND and OR relationships between the criteria.
Most Data Mining default search formulas use AND relationships. This means a client's data needs to contain all the selected criteria for the client to pass the search.
Edit the search formula when you need to change the relationships to find 2 or more types of clients who have some data in common.
note
You can't modify predefined searches.
- In theData Miningwindow, select theClient database, thenContinue (Step 2).
- In the Print selection group box, select the report or letter, mailing labels, or an export report.
- In the Client search/focus group box, selectAdd / Modify Searches.
- Select the name of the user-created search, thenEdit.
- SelectEdit Formula.note
- The selected search needs to include 2 or more criteria for theEdit Formulato appear.
- You can view an example at the end of these steps.
- To change the relationship between criteria, select a search criterion and drag it to a new position in the AND or OR column, or selectANDorOR.
- SelectDone, thenDoneagain.tip
- The text in theEdit FormulaandSelect Search Criteriawindows is updates as you make changes to the formula
- When you select the search criterion description, the other available locations for the criterion in the AND and OR columns are highlighted in white.
Example: Search for 1040 clients who had an adjusted gross income of more than $50,000 and whose employer's names contained either the word "Bowman" or "Beech."
- Select1040 IndividualfromClient databasedropdown list, thenContinue (Step 2).
- Choose the report or letter, mailing labels, or an export report.
- SelectAdd/Modify Searches.
- To add a new search, selectAdd.
- To edit an existing custom search, select the search name, thenEdit.
- Enter aSearch name.
- SelectInput screen field.
- Select the criteriaEmployer's name contains BowmanandEmployer's name contains Beech.
- SelectCalculated value.
- Select the previously defined search criterion,Adjusted Gross Income is more than 50000from theAvailable criterialist.
- SelectEdit Formula.noteAll selected search criteria are in the 1st column, separated by the word AND.
- DragEmployer's name contains Beechto the top of the 2nd column, or select theOR.noteEmployer's name contains BowmanandEmployer's name contains Beechare separated by the word OR.