Let the platform do the work

Understanding Report Filters

Overview

The Define Filters step of the report wizard determines which records the report includes or filters out. Filter groups and operators allow for additional levels of complexity as you combine filters to get the precise result set you desire.

Features & Restrictions

Target Module Filters

To filter on a field related to the target module, select it from the Available Fields list on the bottom left, and it will be added to the list of filters.
rest/v11/doc_PagesFiles/6a6c4859-6da2-057b-ef1e-550283ac9dd0/file/uploadfile?force_download=0&platform=base

To filter on a field in a related module, choose the name of the module in the Related Module list, and the Available Fields list below will display fields belonging to the related module.
rest/v11/doc_PagesFiles/b59bf8b2-6690-8cd2-0e17-550283196ed8/file/uploadfile?force_download=0&platform=base

Now you can select the desired field from the related module as a filter.
rest/v11/doc_PagesFiles/a58ce21a-00a0-1426-37f7-5502802f2551/file/uploadfile?force_download=0&platform=base

Filter Values

Once the filter has been created, you can specify what field values constitute a match for this report in the Define Filters section.rest/v11/doc_PagesFiles/e8b004ec-7693-a9d0-97c3-550280ac1646/file/uploadfile?force_download=0&platform=base

Run-time

You also have the option to mark any of your filters as "Run-time". Doing so will make the filter available on the saved report and allows for quickly changing your filter values without having to edit the report.
rest/v11/doc_PagesFiles/cdbb1e71-341c-8737-df16-5502802fd2d2/file/uploadfile?force_download=0&platform=base

Operators

Sugar allows you to choose between two operators, AND and OR, using dropdowns within the Define Filters section.

By default operators are set to AND which will cause the filters work cumulatively. All filters, or groups of filters, under an AND operator will need to be true for a record in order for that record to appear as a result of the report.

Changing an operator to OR will mean that if any single filter under that OR is true for a record, the record will be included on the report.

The OR accepts records matching any of the filters while the AND accepts records matching all filters.

Filter Groups

By default, all filters will be added to a single group. To split filters into multiple groups, use the Add Filter Group button.rest/v11/doc_PagesFiles/a845e02f-3a47-a24f-0a00-550282ed8590/file/uploadfile?force_download=0&platform=base

When you have more than one filter group and click a new filter field, Sugar will prompt for which filter group the new field should belong.rest/v11/doc_PagesFiles/d5a5e91b-13d3-383f-3f2b-5502823ea17c/file/uploadfile?force_download=0&platform=base

Filter groups and operators can be combined to achieve complex filtering situations. For example, if we need a report for documents belonging to accounts created prior to this quarter where the document is either new this week or new this month if connected to a lead, we would use the following filter groups with an OR operator joining the two together:rest/v11/doc_PagesFiles/9141aee2-c0ae-6cc1-84c5-550280413fa9/file/uploadfile?force_download=0&platform=base

rest/v11/doc_PagesFiles/10e806ef-175c-4bb1-e6eb-55022f9bcfc8/file/uploadfile?force_download=0&platform=base