# Perspective Power Chart - Parameterised Tags?

**URL:** <https://forum.inductiveautomation.com/t/perspective-power-chart-parameterised-tags/81661>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [November 8, 2023, 2:38pm UTC](https://forum.inductiveautomation.com/t/perspective-power-chart-parameterised-tags/81661 "2023-11-08T14:38:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthony\_Watts](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@Anthony\_Watts](https://forum.inductiveautomation.com/u/Anthony_Watts)\
**Post date:** [November 8, 2023, 2:38pm UTC](https://forum.inductiveautomation.com/t/perspective-power-chart-parameterised-tags/81661/1 "2023-11-08T14:38:50Z")

</div>

I have built a view that uses a Power Chart.  
I have 10 process units that I would like to use the same view, therefore can I use parameters or scripting or ...to reference the tags in the power chart?  
e.g. on one view I want to trend Lab\_Stn **01** \_PSU\_I01  
using the same view for another process unit I would like to trend Lab\_Stn **02** \_PSU\_I01.  
This way I would not need to build 10 different views. Just use the same template.

---

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [November 8, 2023, 9:35pm UTC](https://forum.inductiveautomation.com/t/perspective-power-chart-parameterised-tags/81661/2 "2023-11-08T21:35:10Z")

</div>

Most Integrators have built their own wrapper for the Power Chart for this reason.  
The critical part for this is generally making the correct historical tag path for the `props.pens[0].data.source`  
An example of this is:

`penTagPath = 'histprov:'+historicalDatabase+':/drv:'+gateway+':'+tagProvider+':/tag:'+tagPath`

This should come out as:

`histprov:DatabaseName:/drv:Gateway:default:/tag:TestFolder/TestTag`

Where:  
"DatabaseName" is the Historical Database  
"Gateway" is the Gateway Name  
"default" is the tag provider (normally seen in tag paths as [default])  
"TestFolder/TestTag" is the tag path

As soon as you are dynamically creating this source, you can just change the tag path based on a parameter to the page.
