![](https://media.stonly.com/media/images/0023f8b5-db2a-4cd5-8200-4db3b4d28be8.png?s=29325524d9bf87ba57d33e549decbe295fb2fc70a0dcdd3a9e49a9099fd494ae5d84cad4cd44049fcdf9dc84a8f2c51531f74044da6770acc371b8712c252e1b5d0af6ef166a3b9e3a2e9e6412d50df06ce1455077d6df7036a56adcf9c90c211d5f6dfb77a2b79a865dfdd711556482&w=1280&h=1440&auto=format)
![](https://media.stonly.com/media/images/6b914f85-b2ed-4c4a-8a0a-e7114b9cc206.png?s=29325524d9bf87ba57d33e549decbe295fb2fc70a0dcdd3a9e49a9099fd494ae5d84cad4cd44049fcdf9dc84a8f2c51531f74044da6770acc371b8712c252e1b4b996345e0d142fb6cdcf2cd991e1a65f894972483c81b68b6bdf816c0679a5a1d5f6dfb77a2b79a865dfdd711556482&w=1280&h=1440&auto=format)
![](https://media.stonly.com/media/images/9b8659be-b4ff-469c-bbba-f12cafd21597.png?s=29325524d9bf87ba57d33e549decbe295fb2fc70a0dcdd3a9e49a9099fd494ae5d84cad4cd44049fcdf9dc84a8f2c51531f74044da6770acc371b8712c252e1bf782bf07f459997944d3c0b718e28f153d86c080f7d06c7eef3f7d9c4ebe30531d5f6dfb77a2b79a865dfdd711556482&w=1280&h=1440&auto=format)
![](https://media.stonly.com/media/images/7f8c3c5e-d046-4d0e-b6bd-eeadc14aa915.png?s=29325524d9bf87ba57d33e549decbe295fb2fc70a0dcdd3a9e49a9099fd494ae5d84cad4cd44049fcdf9dc84a8f2c51531f74044da6770acc371b8712c252e1b84ed69a36b1ea2ed7686146f68e83ca7d4109c7e48d8215e7ee9c3b0ff414d531d5f6dfb77a2b79a865dfdd711556482&w=1280&h=1440&auto=format)
![](https://media.stonly.com/media/images/0023f8b5-db2a-4cd5-8200-4db3b4d28be8.png?s=29325524d9bf87ba57d33e549decbe295fb2fc70a0dcdd3a9e49a9099fd494ae5d84cad4cd44049fcdf9dc84a8f2c51531f74044da6770acc371b8712c252e1b5d0af6ef166a3b9e3a2e9e6412d50df06ce1455077d6df7036a56adcf9c90c211d5f6dfb77a2b79a865dfdd711556482&w=1280&h=1440&auto=format)
![](https://media.stonly.com/media/images/6b914f85-b2ed-4c4a-8a0a-e7114b9cc206.png?s=29325524d9bf87ba57d33e549decbe295fb2fc70a0dcdd3a9e49a9099fd494ae5d84cad4cd44049fcdf9dc84a8f2c51531f74044da6770acc371b8712c252e1b4b996345e0d142fb6cdcf2cd991e1a65f894972483c81b68b6bdf816c0679a5a1d5f6dfb77a2b79a865dfdd711556482&w=1280&h=1440&auto=format)
AND statement formula
You can make an AND statement within the same component in the formula editor. AND statement means that you add multiple filter conditions to the component, and they all must be true.
Create a new Data function component in the formula editor.
Choose a data source, function, and field (if applicable).
(Optional) Choose a date field that the formula result will be based on.
Add at least two filters to the component. You will see a small "and" between the filter lines. This is how you know you have made an AND statement.
Example
A development team wants to know how many of the support tickets are qualified as bugs and are pending developer action. Here below is a data source that stores all data on support tickets.
To find out how many bugs are pending developer action, the team manager builds the following formula:
Number of Support Tickets where Resolution is Bug and the Status is Pending developer action
The preview in the formula editor shows 2, which matches the registrations in the data source.
![](https://media.stonly.com/media/images/9b8659be-b4ff-469c-bbba-f12cafd21597.png?s=29325524d9bf87ba57d33e549decbe295fb2fc70a0dcdd3a9e49a9099fd494ae5d84cad4cd44049fcdf9dc84a8f2c51531f74044da6770acc371b8712c252e1bf782bf07f459997944d3c0b718e28f153d86c080f7d06c7eef3f7d9c4ebe30531d5f6dfb77a2b79a865dfdd711556482&w=1280&h=1440&auto=format)
![](https://media.stonly.com/media/images/7f8c3c5e-d046-4d0e-b6bd-eeadc14aa915.png?s=29325524d9bf87ba57d33e549decbe295fb2fc70a0dcdd3a9e49a9099fd494ae5d84cad4cd44049fcdf9dc84a8f2c51531f74044da6770acc371b8712c252e1b84ed69a36b1ea2ed7686146f68e83ca7d4109c7e48d8215e7ee9c3b0ff414d531d5f6dfb77a2b79a865dfdd711556482&w=1280&h=1440&auto=format)
OR statement formula
An OR statement means that you add certain filter conditions to the component where one or the other must be true.
Create a new Data function component in the formula editor.
Choose a data source, function, and field (if applicable).
(Optional) Choose a date field that the formula result will be based on.
Add a filter to your data function component.
Add a new data function component or duplicate the existing one.
In the new component, adjust your data source, field and filters as needed.
Feel free to repeat steps 5 and 6 as many times as needed.
Example
The same development team from above now wants to see how many bugs are pending both developer action and developer investigation. Here below is a data source that stores all data on support tickets.
To see how many bugs are pending developer action and investigation, the team manager builds the following OR statement:
Number of Support Tickets where Resolution is Bug and the Status is Pending developer action
+
Number of Support Tickets where Resolution is Bug and the Status is Pending developer investigation
The preview in the formula editor shows 3, which matches the registrations in the data source.