# Configure tag history binding expression syntax

**URL:** <https://forum.inductiveautomation.com/t/configure-tag-history-binding-expression-syntax/54690>\
**Category:** Ignition\
**Created:** [January 5, 2022, 5:04pm UTC](https://forum.inductiveautomation.com/t/configure-tag-history-binding-expression-syntax/54690 "2022-01-05T17:04:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [January 5, 2022, 5:04pm UTC](https://forum.inductiveautomation.com/t/configure-tag-history-binding-expression-syntax/54690/1 "2022-01-05T17:04:32Z")

</div>

I’m trying to create tag history bindings with parameters. As a first step I’m trying to understand how this works by creating a simple tag history query expression:

 ![Tag binding expression](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/3/731d46d774f758f6e10e5a02f3d54a09a9438c96.png)

I’m getting “Error configuration” at the bottom of the binding dialog.

I’m missing some understanding here. Can anyone give me some guidance?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 5, 2022, 5:06pm UTC](https://forum.inductiveautomation.com/t/configure-tag-history-binding-expression-syntax/54690/2 "2022-01-05T17:06:10Z")

</div>

Expressions don’t support collection literals like `[]` and `{}`. The ‘Expression’ is _probably_ best as a direct or indirect (`property()`) reference to a custom property somewhere with the correct formatting.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [January 5, 2022, 7:24pm UTC](https://forum.inductiveautomation.com/t/configure-tag-history-binding-expression-syntax/54690/3 "2022-01-05T19:24:50Z")

</div>

Thank you, Paul, but isn’t that just moving the problem over to the binding on the property() reference?

Let’s say I’m creating a Perspective XY Chart to be used on a dashboard for a group of machines.

```auto
Machine 1
> Ambient temp
> Compressor1 motor amps (ns=1;s=[Simulator1]_Meta:Refrigeration/Compressor1/motorAmps)
Machine 2
> Ambient temp
> Compressor1 motor amps (ns=1;s=[Simulator2]_Meta:Refrigeration/Compressor1/motorAmps)

```

How would I generate the custom property to allow me to feed the Machine 1 or Machine 2 tags into the chart history binding?

Thank you for your patience.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 5, 2022, 8:19pm UTC](https://forum.inductiveautomation.com/t/configure-tag-history-binding-expression-syntax/54690/4 "2022-01-05T20:19:25Z")

</div>

If it’s a binary one or the other, you could use an expression structure binding, right? The aggregate and alias would be fixed keys, and the `path` would use an expression to pull in whichever is appropriate.

Anything more dynamic than that and I would just use a script transform.

To be totally honest, I’ve never completely understood the ‘why’ of how expression mode works on Perspective history bindings.

---

<div class="post-metadata">

**Author:** ![Vidar\_Kro](https://avatars.discourse-cdn.com/v4/letter/v/ba9def/32.png) [@Vidar\_Kro](https://forum.inductiveautomation.com/u/Vidar_Kro)\
**Post date:** [June 30, 2022, 6:43am UTC](https://forum.inductiveautomation.com/t/configure-tag-history-binding-expression-syntax/54690/5 "2022-06-30T06:43:01Z")

</div>

Can you show an example of how this is done? I realy need the tag history binding path to be dynamic or else the whole function is useless.

---

<div class="post-metadata">

**Author:** ![anthony\_ho](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@anthony\_ho](https://forum.inductiveautomation.com/u/anthony_ho)\
**Post date:** [April 30, 2023, 3:22pm UTC](https://forum.inductiveautomation.com/t/configure-tag-history-binding-expression-syntax/54690/6 "2023-04-30T15:22:37Z")

</div>

You have to point to a custom property which contains an array of object. In the first object, add a value "path" and enter your tag path. To make it dynamic, bind the tag path.

---

<div class="post-metadata">

**Author:** ![Luis\_Perez1](https://avatars.discourse-cdn.com/v4/letter/l/b3f665/32.png) [@Luis\_Perez1](https://forum.inductiveautomation.com/u/Luis_Perez1)\
**Post date:** [November 1, 2023, 4:51pm UTC](https://forum.inductiveautomation.com/t/configure-tag-history-binding-expression-syntax/54690/7 "2023-11-01T16:51:51Z")

</div>

I created a custom property on the view level with the correct syntax. and then bound that custom property in the expression of the tag query history  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/a/8a0ea05e75842da4acd6af0ce87c0ac836df020e.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/a/fa1f19746b2397842d3e5fcffd2c8705ae3814c1.png)
