> For the complete documentation index, see [llms.txt](https://docs.agilecase.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.agilecase.com/administrator-documentation/reports/creating-reports/applying-groups-of-conditions.md).

# Applying Groups of Conditions

This lesson will show you how to apply groups of conditions to your reports.

## Adding a Group of Conditions

<figure><img src="/files/1ecCjAL4IQUZnivAMHmj" alt=""><figcaption></figcaption></figure>

When creating a report using conditions, it is possible to add a group of conditions that work together. To create a group of conditions, first add a single condition as you would normally. Then click the `{+}` icon to add a second condition to the group.

## Setting Secondary Conditions

<figure><img src="/files/zLcNs3AAIvN2GmimcHIj" alt=""><figcaption></figcaption></figure>

You can now specify a secondary condition in the same manner as the first.

The dividing line between the conditions, “And any of the following apply”, is very important. Clicking the underlined “any” allows you to determine the conditions of the group. You can change this from “any” to “all”, “none”, or “not all”. This controls how the report will pick out the relevant records.

This report will pick out any record that is created by the user you specify and that was created before the specified date. Changing the “any” in the second condition to “none” would generate a report containing all of the records created by the specified user that were not created before the specified date.

Using groups of conditions like this allows you to set more complex conditions in your reports so you can always achieve the information you are seeking.

## Preview Report with Multiple Conditions

<figure><img src="/files/PGPNSOb4QBSz8EzObaRT" alt=""><figcaption></figcaption></figure>

This screenshot shows the preview of a report using the condition group created in this lesson. After entering a user name, only those cases created by the user before 02/02/2015 are displayed.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.agilecase.com/administrator-documentation/reports/creating-reports/applying-groups-of-conditions.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
