7093df58b233676c8ee9e79f85f99f29ddbafa37
FAQ/Questions/How-is-Use-Previous-OR-used-in-Filters.md
| ... | ... | @@ -1,14 +1,15 @@ |
| 1 | 1 | #How is "Use Previous OR" used in Filters? |
| 2 | 2 | |
| 3 | -The filter operator "Use Previous OR" will use the previous field's filter as its own filter. Using this technique, you can require two or more fields to be filtered with only one filter. This is helpful when your database uses composite keys or when you just want to show results filtered by field A AND field B but with only exposing one filter to the users viewing the reports. |
|
| 3 | +The filter operator "Use Previous OR" will use the previous field's filter as its own filter. Using this technique, you can require two or more fields to be filtered with only one filter. This is helpful when your database uses composite keys or when you just want to show results filtered by field A OR field B but with only exposing one filter to the users viewing the reports. |
|
| 4 | 4 | |
| 5 | -Example: |
|
| 5 | +##Example |
|
| 6 | 6 | |
| 7 | -Filters Tab: |
|
| 7 | +Here we are using a filter on RequiredDate and specifying that it should fall between 2/27/2012 and 5/13/2012. We then specify a filter on ShippedDate and use the operator "Use Previous OR" to force an OR condition on the two filters using the same values for each. |
|
| 8 | 8 | |
| 9 | -Filter Field Operator Value(s) |
|
| 10 | -OrderDate - Between - 01/10/2007 And 03/01/2008 |
|
| 11 | -ShippedDate - Use Previous OR |
|
| 9 | + |
|
| 12 | 10 | |
| 13 | -Results: |
|
| 14 | -The data returned would show all data that falls within the OrderDate range. The ShippedDate would pull data in accordance with the date range above as well. The end results would be Order Dates & Shipped Dates that are within the date range specified. |
|
| ... | ... | \ No newline at end of file |
| 0 | +##Results |
|
| 1 | + |
|
| 2 | +The data returned would show all data with a RequiredDate between the two values OR with a ShippedDate that falls between those same values. The results can be seen below. Notice the values outlined in red. These values do not fall within the date ranges specified, but the other value on the same row does fall within the range. Therefore, we are using an OR operation rather than an AND which would be the case if we defined both filters with their own Between operator. |
|
| 3 | + |
|
| 4 | + |
|
| ... | ... | \ No newline at end of file |