# Initial parametrized values in a power chart

**URL:** <https://forum.inductiveautomation.com/t/initial-parametrized-values-in-a-power-chart/58705>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [April 21, 2022, 4:34pm UTC](https://forum.inductiveautomation.com/t/initial-parametrized-values-in-a-power-chart/58705 "2022-04-21T16:34:20Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karim\_Acuna\_Morales](https://avatars.discourse-cdn.com/v4/letter/k/c77e96/32.png) [@Karim\_Acuna\_Morales](https://forum.inductiveautomation.com/u/Karim_Acuna_Morales)\
**Post date:** [April 21, 2022, 4:34pm UTC](https://forum.inductiveautomation.com/t/initial-parametrized-values-in-a-power-chart/58705/1 "2022-04-21T16:34:20Z")

</div>

Hello everyone, i’m working on a project where i have to show the value from a tag with history in a power chart. The tag path is dynamic, and this value is set passing a parameter to this page with an On Click action, changing the “object or machine” where the value from tag is pulled. I have already tried in the way Inductive University does it and it doesn’t worked, so maybe you have another idea.

My question,

1. How can I change the path where the data is pulled with the parameter, so it takes it from different objects or machines?
2. Is there any form where i can set values to the power chart so it always shows the tag data in the chart without having to select it in the tag browser?

---

<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:** [April 21, 2022, 5:30pm UTC](https://forum.inductiveautomation.com/t/initial-parametrized-values-in-a-power-chart/58705/2 "2022-04-21T17:30:47Z")

</div>

Try binding `props.pens.0.data.source` to the view parameter containing the tag path.

![Power Chart data source](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/1/019642c317156e8d9cd515edc5ab33c8a91cf2b6.png)

---

<div class="post-metadata">

**Author:** ![Karim\_Acuna\_Morales](https://avatars.discourse-cdn.com/v4/letter/k/c77e96/32.png) [@Karim\_Acuna\_Morales](https://forum.inductiveautomation.com/u/Karim_Acuna_Morales)\
**Post date:** [April 21, 2022, 6:12pm UTC](https://forum.inductiveautomation.com/t/initial-parametrized-values-in-a-power-chart/58705/3 "2022-04-21T18:12:04Z")

</div>

I’m trying to bind it with this structure:

{LiveAnalysisEquipmentPath}/OEE Performance

Where {LiveAnalysisEquipmentPath} is the parameter that brings the path and is not working, it shows nothing.

I bound the parameter to the label that is down on the left to be sure the parameter is passing correctly to the page and it’s working.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/a/fae6aef377786c5fccadaafb76ac888177638ef1.png)

---

<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:** [April 21, 2022, 6:49pm UTC](https://forum.inductiveautomation.com/t/initial-parametrized-values-in-a-power-chart/58705/4 "2022-04-21T18:49:33Z")

</div>

It’s not clear what exactly you have done.

Try this:

- Run the Power Chart in Developer preview mode.
- Add one of the history tags you are interested in monitoring.
- Stop the preview and examine the historian tag path. See if that matches the one in your label.

I suspect you may be passing in the live tag instead of the historian. For example, I have a simulation tag on my test gateway with actual tag path,  
`[default]Machine1/Compressor1 motor amps`

Its historian tag is  
`histprov:Historian:/drv:ignition-desktop-l2q5jpp:default:/tag:compressor1 motor amps`

You need the second format.

---

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [July 24, 2024, 10:11pm UTC](https://forum.inductiveautomation.com/t/initial-parametrized-values-in-a-power-chart/58705/5 "2024-07-24T22:11:58Z")

</div>

Where do I get the format from? Is there an easy way to get the format and whats the best way to have it dynamic?

---

<div class="post-metadata">

**Author:** ![tyler.bennett](https://avatars.discourse-cdn.com/v4/letter/t/f04885/32.png) [@tyler.bennett](https://forum.inductiveautomation.com/u/tyler.bennett)\
**Post date:** [July 25, 2024, 3:52pm UTC](https://forum.inductiveautomation.com/t/initial-parametrized-values-in-a-power-chart/58705/6 "2024-07-25T15:52:18Z")

</div>

> [@drewdin](#):
>
> Where do I get the format from? Is there an easy way to get the format and whats the best way to have it dynamic?

Technically, you do not need the second (historical tag path) format anymore. Since v8.1.14 [the perspective Power Chart will accept the first format (non-historical tag paths)](https://www.docs.inductiveautomation.com/docs/8.1/appendix/components/perspective-components/perspective-chart-palette/perspective-power-chart#:~:text=tag%20paths%20are%20converted) and convert it internally.

However, if one wanted to change the format, something like this works.

```python
from com.inductiveautomation.ignition.common.tags.paths.parser import TagPathParser
from com.inductiveautomation.ignition.common import QualifiedPathUtils

def getQualifiedPath(path_string):
	myBasicTagPath = TagPathParser.parseSafe(path_string)
	myQualifiedPath = QualifiedPathUtils.fromTagPathNew(myBasicTagPath)
	return myQualifiedPath.toString()
	
path_string = "[System]Gateway/UptimeSeconds"
qualifiedPath_string = getQualifiedPath(path_string)
print path_string 
print qualifiedPath_string

```

```plaintext
>>> 
[System]Gateway/UptimeSeconds
prov:System:/tag:Gateway/UptimeSeconds
>>>

```

For further study, this is a good reference: [Javadocs & Notable API Changes](https://github.com/inductiveautomation/ignition-sdk-examples/wiki/Javadocs-&-Notable-Api-Changes)  
Pick an Ignition version then use the search feature to look up the details of the imported classes.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 25, 2024, 3:58pm UTC](https://forum.inductiveautomation.com/t/initial-parametrized-values-in-a-power-chart/58705/7 "2024-07-25T15:58:35Z")

</div>

> [@tyler.bennett](#):
>
> Technically, you do not need the second (historical tag path) format anymore. Since v8.1.14 [the perspective Power Chart will accept the first format (non-historical tag paths)](https://www.docs.inductiveautomation.com/docs/8.1/appendix/components/perspective-components/perspective-chart-palette/perspective-power-chart#:~:text=tag%20paths%20are%20converted) and convert it internally.

Well, except for the gotcha with remote tag providers discussed over here:

> [@Remote Tag Provider History Queries](https://forum.inductiveautomation.com/t/remote-tag-provider-history-queries/93632):
>
> I'm working on a couple tasks related to historians and history queries, and have encountered some behaviors of remote tag providers (RTPs) that have me stymied: There's no public way to retrieve the gateway name that a RTP is pointing at, nor any public way to retrieve the far end's real tag provider name. (Reflection has exposed com.inductiveautomation.ignition.gateway.tags.distributed.client.RemoteTagProvider and com.inductiveautomation.metro.api.ServerId to me, and a number of private fie…

---

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [July 25, 2024, 9:44pm UTC](https://forum.inductiveautomation.com/t/initial-parametrized-values-in-a-power-chart/58705/8 "2024-07-25T21:44:08Z")

</div>

Thanks, so I can use a regular tag path unless i a remote tag provider?

---

<div class="post-metadata">

**Author:** ![Sarah\_Sonnier](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sarah_sonnier/32/80232_2.png) [@Sarah\_Sonnier](https://forum.inductiveautomation.com/u/Sarah_Sonnier)\
**Post date:** [October 1, 2025, 3:29pm UTC](https://forum.inductiveautomation.com/t/initial-parametrized-values-in-a-power-chart/58705/9 "2025-10-01T15:29:23Z")

</div>

this changed my life, thanks for pointing out that regular tags can be the source
