# Dashboard Variable with Multiple Filters

**URL:** <https://community.dynatrace.com/t/dashboard-variable-with-multiple-filters/45958>\
**Category:** DQL\
**Tags:** dashboards\
**Created:** [June 6, 2024, 5:10pm UTC](https://community.dynatrace.com/t/dashboard-variable-with-multiple-filters/45958 "2024-06-06T17:10:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![krzysztof\_hoja](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/krzysztof_hoja/32/34625_2.png) [@krzysztof\_hoja](https://community.dynatrace.com/u/krzysztof_hoja)\
**Post date:** [June 10, 2024, 6:19pm UTC](https://community.dynatrace.com/t/dashboard-variable-with-multiple-filters/45958/2 "2024-06-10T18:19:53Z")

</div>

Let’s define filter this way:

 ![krzysztof_hoja_0-1718043317823.png](https://global.discourse-cdn.com/dynatrace/original/3X/e/9/e950d718dae91e495fe2349333388dc481df5bb2.png)

and create DQL query so combines conditionally all filters:

```markup
fetch logs
| filter 
($Traffic=="Test" and contains(request,"-test") ) or
($Traffic=="Bot" and contains(content,"bot") ) or
($Traffic=="Real" and not contains(content,"bot") and not contains(request,"-test"))
| fields content
| limit 10

```

Depending on variable value only one condition will be active. Other 2 are are false, but they do not do any harm as are always _ **false** _.

Kris

---

_[View the full topic](https://community.dynatrace.com/t/dashboard-variable-with-multiple-filters/45958)._
