# Power Table dynamic column hide

**URL:** <https://forum.inductiveautomation.com/t/power-table-dynamic-column-hide/61363>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [June 29, 2022, 6:23pm UTC](https://forum.inductiveautomation.com/t/power-table-dynamic-column-hide/61363 "2022-06-29T18:23:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregsachs](https://avatars.discourse-cdn.com/v4/letter/g/58f4c7/32.png) [@gregsachs](https://forum.inductiveautomation.com/u/gregsachs)\
**Post date:** [June 29, 2022, 6:23pm UTC](https://forum.inductiveautomation.com/t/power-table-dynamic-column-hide/61363/1 "2022-06-29T18:23:43Z")

</div>

Ok, I was thinking I could use configurecell to look at column headers and show or hide the column based on the name of it compared to a tag, but that does not seem to be an available attribute. Am I missing something?

(IE I have a database table with many columns, in the pattern R00000. Based on a referenced object being 0-9, I would like to hide columns except those where the second digit matches.)  
Extracting digit 2 is trivial; digit=ColName[1:2].  
is there a way to turn that column off?

---

<div class="post-metadata">

**Author:** ![Ryan\_Christian\_Lacan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan_christian_lacan/32/35201_2.png) [@Ryan\_Christian\_Lacan](https://forum.inductiveautomation.com/u/Ryan_Christian_Lacan)\
**Post date:** [July 6, 2022, 10:12pm UTC](https://forum.inductiveautomation.com/t/power-table-dynamic-column-hide/61363/2 "2022-07-06T22:12:29Z")

</div>

Hi Gregsachs,

How are you populating this table? It would be easier if you make a dynamic Named Query with parameters and filter the incoming data onto the table. Another approach would be to create a Custom Property for each column, then create a Cell Update binding for “Column Attributes” property on the Power Table Component. Hide is one of the attributes and you can bind this specifically to one of your custom properties. You would then create an expression binding on these custom properties to check if a tag matches the value.

Regards,

---

<div class="post-metadata">

**Author:** ![gregory.sachs](https://avatars.discourse-cdn.com/v4/letter/g/e47774/32.png) [@gregory.sachs](https://forum.inductiveautomation.com/u/gregory.sachs)\
**Post date:** [July 7, 2022, 5:48pm UTC](https://forum.inductiveautomation.com/t/power-table-dynamic-column-hide/61363/3 "2022-07-07T17:48:19Z")

</div>

Ok, I can see how the column set would work.  
My big issue is that I have 400 columns/data points to present, and I have been trying to avoid most of the obvious ways of grouping, IE named query with parameters or similar.

---

<div class="post-metadata">

**Author:** ![Ryan\_Christian\_Lacan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan_christian_lacan/32/35201_2.png) [@Ryan\_Christian\_Lacan](https://forum.inductiveautomation.com/u/Ryan_Christian_Lacan)\
**Post date:** [July 7, 2022, 8:46pm UTC](https://forum.inductiveautomation.com/t/power-table-dynamic-column-hide/61363/4 "2022-07-07T20:46:24Z")

</div>

Hi Gregory Sachs,

Unfortunately, those two solutions are the most ideal way to solve this issue. Alternatively, creating a dynamic named query, then creating a script on a button component to pull that data and use scripting to [alter that dataset](https://docs.inductiveautomation.com/display/DOC80/Datasets) will also work. However, I highly suggest querying the ones that you would like to show on the table rather than trying to get rid of them one by one.

Regards,

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [July 8, 2022, 1:44am UTC](https://forum.inductiveautomation.com/t/power-table-dynamic-column-hide/61363/5 "2022-07-08T01:44:03Z")

</div>

Sure, use a binding in columns prop based on data and adding a script transform to build the complex structure using your trivial demostration.
