Question
How do I exclude tickets with a specific tag from reports?
Answer
Filters can't exclude tags in Explore reports. To exclude tickets with a specific tag, create a custom metric or attribute.
If you're new to custom metrics and attributes, see Get started with custom metrics and attributes.
For example, if you want to show all created tickets without the tag tag1, create the report with a new Standard calculated metric that removes any tickets that contain the specific tag tag1.
To create the report:
- Open Explore. To create a custom report, you need to have Explore Professional or a higher plan level.
- Click the reports icon
- Click the New report button
- Select the Support - Tickets dataset. Click Start report.
- In the report builder, click the Calculations icon on the right sidebar.
- Click Standard calculated metric. The Standard calculated metric formula editor opens.
- In the Name field, type a name for your new metric
-
In the Formula field, copy and paste this formula. Replace the value tag1 with the ticket tag value that you want to filter out from the report.
IF (NOT INCLUDES_ANY([Ticket tags], "tag1")) THEN [Ticket ID] ENDIF
- Click Save
- Under Metrics, add the metric to the report. Click the metric and select the COUNT aggregator.
- Click Apply. The report displays your tickets without the tag value. You can also add filters, or adjust the default date filter at the top of the report to a specific date range.
For more information on these types of reports and the options to filter reports based on tag values, see: