Difference between revisions of "Specifying Multiple Criteria in Reports"

From SmartWiki
Jump to: navigation, search
 
(18 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{SeqReportPageHeader}}
 +
 
Before you start to use multiple selection criteria it is vital that you understand how the '''Report Builder''' will interpret the criteria.  Mistakes in the construction of criteria are one of the biggest sources of confusion on '''ALL''' reporting tools.
 
Before you start to use multiple selection criteria it is vital that you understand how the '''Report Builder''' will interpret the criteria.  Mistakes in the construction of criteria are one of the biggest sources of confusion on '''ALL''' reporting tools.
  
Line 5: Line 7:
 
If the criteria is for a different field, then you enter the criteria under that field. The system will imply an '''AND''' between the columns.  For example:
 
If the criteria is for a different field, then you enter the criteria under that field. The system will imply an '''AND''' between the columns.  For example:
  
[[Image:Reps29.png]]
+
{| class="wikitable"
 +
|+
 +
!Field!!Title!!Last Name
 +
|+
 +
|Criteria||='President'||Like 'A%'
 +
|}
 +
 
  
 
* Select the records where the title is equal to President '''AND''' the Last Name begins with '''A'''.
 
* Select the records where the title is equal to President '''AND''' the Last Name begins with '''A'''.
  
[[Image:Reps30.png]]
+
{| class="wikitable"
 +
|+
 +
!Field!!Title!!Last Name!!First Name
 +
|+
 +
|Criteria||='President'||Like 'A%'||Like 'A%'
 +
|}
  
 
* Select the records where the title is equal to President '''AND''' the Last Name begins with A '''AND''' the First name begins with '''A'''.
 
* Select the records where the title is equal to President '''AND''' the Last Name begins with A '''AND''' the First name begins with '''A'''.
Line 15: Line 28:
 
==Or Between Rows==
 
==Or Between Rows==
  
If you enter second criteria for the same field in a second criteria row, the system will use an '''OR''' to select the records.  For example:
+
If you enter a second set of criteria for the same field in a second criteria row, the system will use an '''OR''' to select the records.  For example:
  
[[Image:Reps31.png]]
+
{| class="wikitable"
 +
|+
 +
!Field!!Title
 +
|+
 +
|Criteria||='President'
 +
|+
 +
|OR||Like 'VP%'
 +
|}
  
 
* Select all the records where the title is equal to President '''OR''' starting with the letters '''VP'''.
 
* Select all the records where the title is equal to President '''OR''' starting with the letters '''VP'''.
  
[[Image:Reps32.png]]
+
{| class="wikitable"
 +
|+
 +
!Field!!Title!!Last Name
 +
|+
 +
|Criteria||='President'||Like 'A%'
 +
|+
 +
|OR||Like 'VP%'||
 +
|}
  
* Select all the records where the title is equal to President '''OR''' any title starting with the letters VP '''AND''' Last Name beginning with the letter '''A''' regardless of the title.
+
* Select all the records where the title is equal to President '''AND''' where the last name starts with '''A''', '''OR''' any last name, with a title starting with the letters 'VP'.
  
[[Image:Reps33.png]]
+
{| class="wikitable"
 +
|+
 +
!Field!!Title!!Last Name
 +
|+
 +
|Criteria||='President'||Like 'A%'
 +
|+
 +
|OR||Like 'VP%'||Like 'A%'
 +
|}
  
 
* Select all the records where the title is equal to President '''OR''' any title starting with the letters VP '''AND''' Last Name beginning with '''A'''.
 
* Select all the records where the title is equal to President '''OR''' any title starting with the letters VP '''AND''' Last Name beginning with '''A'''.
  
[[Category:Reports]][[Category:System Management]][[Category:Applications]]
+
 
 +
{{PrevNextStart}} [[Using Sounds Like Criteria in Reports]]
 +
{{PrevNextMid}} [[Prompting for Criteria in Reports]] {{PrevNextEnd}}
 +
 
 +
[[Category:Reports]][[Category:Criteria]]

Latest revision as of 08:38, 15 January 2016

caption Click here to watch a video on SmartSimple's integrated reporting subsystem.

Before you start to use multiple selection criteria it is vital that you understand how the Report Builder will interpret the criteria. Mistakes in the construction of criteria are one of the biggest sources of confusion on ALL reporting tools.

Implied AND between Columns

If the criteria is for a different field, then you enter the criteria under that field. The system will imply an AND between the columns. For example:

Field Title Last Name
Criteria ='President' Like 'A%'


  • Select the records where the title is equal to President AND the Last Name begins with A.
Field Title Last Name First Name
Criteria ='President' Like 'A%' Like 'A%'
  • Select the records where the title is equal to President AND the Last Name begins with A AND the First name begins with A.

Or Between Rows

If you enter a second set of criteria for the same field in a second criteria row, the system will use an OR to select the records. For example:

Field Title
Criteria ='President'
OR Like 'VP%'
  • Select all the records where the title is equal to President OR starting with the letters VP.
Field Title Last Name
Criteria ='President' Like 'A%'
OR Like 'VP%'
  • Select all the records where the title is equal to President AND where the last name starts with A, OR any last name, with a title starting with the letters 'VP'.
Field Title Last Name
Criteria ='President' Like 'A%'
OR Like 'VP%' Like 'A%'
  • Select all the records where the title is equal to President OR any title starting with the letters VP AND Last Name beginning with A.





Previous.png Using Sounds Like Criteria in Reports Prompting for Criteria in Reports Next.png