# Device State Table Conditions

**URL:** https://forums.losant.com/t/device-state-table-conditions/4700
**Category:** Help
**Tags:** dashboard
**Created:** [August 22, 2022, 11:43pm UTC](https://forums.losant.com/t/device-state-table-conditions/4700 "2022-08-22T23:43:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ChrisGM](https://avatars.discourse-cdn.com/v4/letter/c/51bf81/32.png) [@ChrisGM](https://forums.losant.com/u/ChrisGM)
#### Post date: [August 22, 2022, 11:43pm UTC](https://forums.losant.com/t/device-state-table-conditions/4700/1 "2022-08-22T23:43:19Z")

</div>

I have a list of devices in a device state table, they are shown/hidden based on the context user permissions.

I would now like to include a “show in table” tag, to be used as a flag, to show/hide from the table.

Would there be a way of showing devices which meet (Condition A and B)

Currently, the usercontext overrides and shows all the devices.  
The show/hide flag becomes irrelevant.

---

<div class="post-metadata">

### Author: ![Sebastian\_Turner](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/sebastian_turner/32/4024_2.png) [@Sebastian\_Turner](https://forums.losant.com/u/Sebastian_Turner)
#### Post date: [August 23, 2022, 1:19pm UTC](https://forums.losant.com/t/device-state-table-conditions/4700/2 "2022-08-23T13:19:39Z")

</div>

Currently, the Device State Table does not support [advanced queries](https://docs.losant.com/references/advanced-queries/), however, we are working on adding that feature to this block. I don’t currently have an ETA, but I’ll follow up on this thread when I do.

In the mean time, you _could_ build what you’re describing using the [Custom HTML Block](https://docs.losant.com/dashboards/custom-html/), though it would be fairly complex in comparison.

---

<div class="post-metadata">

### Author: ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)
#### Post date: [October 2, 2024, 1:19pm UTC](https://forums.losant.com/t/device-state-table-conditions/4700/3 "2024-10-02T13:19:25Z")

</div>

Following up on this old thread - all dashboard blocks that query device telemetry data or metadata (with the exception of the Image Block) now support advanced query for targeting which devices to return.
