# Powerchart script transformation over historical values

**URL:** <https://forum.inductiveautomation.com/t/powerchart-script-transformation-over-historical-values/86321>\
**Category:** Ignition\
**Tags:** ignition81, scripting, designer\
**Created:** [February 25, 2024, 6:21pm UTC](https://forum.inductiveautomation.com/t/powerchart-script-transformation-over-historical-values/86321 "2024-02-25T18:21:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jorge\_G](https://avatars.discourse-cdn.com/v4/letter/j/a698b9/32.png) [@Jorge\_G](https://forum.inductiveautomation.com/u/Jorge_G)\
**Post date:** [February 25, 2024, 6:21pm UTC](https://forum.inductiveautomation.com/t/powerchart-script-transformation-over-historical-values/86321/1 "2024-02-25T18:21:09Z")

</div>

Hi! Im working on a view which contains only a powerchart where i want to display some historical data but before showing the data i want to apply some operations to. Im passing as expresion (where i'll be adding the parameters) with the path of the tag. This is not my problem, my problem is that i'm not able to iterate over dataset rows and apply a multiplication of the data via scripting... Any resources I can check so i can show data propperly modified??  
Thanks in advance.

---

<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:** [February 25, 2024, 6:23pm UTC](https://forum.inductiveautomation.com/t/powerchart-script-transformation-over-historical-values/86321/2 "2024-02-25T18:23:24Z")

</div>

You'll have to use another chart type. The PowerChart doesn't permit any custom operations between the historian output and the chart display.

---

<div class="post-metadata">

**Author:** ![Jorge\_G](https://avatars.discourse-cdn.com/v4/letter/j/a698b9/32.png) [@Jorge\_G](https://forum.inductiveautomation.com/u/Jorge_G)\
**Post date:** [February 25, 2024, 6:24pm UTC](https://forum.inductiveautomation.com/t/powerchart-script-transformation-over-historical-values/86321/3 "2024-02-25T18:24:03Z")

</div>

So what chart would fit my needs? Thanks for fast answering

---

<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:** [February 25, 2024, 6:25pm UTC](https://forum.inductiveautomation.com/t/powerchart-script-transformation-over-historical-values/86321/4 "2024-02-25T18:25:26Z")

</div>

Start with the TimeSeries chart. Place your historian binding on a custom property. Then you can process the result as you see fit for delivery to the chart's data series properties.

---

<div class="post-metadata">

**Author:** ![Jorge\_G](https://avatars.discourse-cdn.com/v4/letter/j/a698b9/32.png) [@Jorge\_G](https://forum.inductiveautomation.com/u/Jorge_G)\
**Post date:** [February 25, 2024, 6:37pm UTC](https://forum.inductiveautomation.com/t/powerchart-script-transformation-over-historical-values/86321/5 "2024-02-25T18:37:46Z")

</div>

Ok i'll try to bind data as tag history and then apply my changes. Thanks
