# Sum history tags on graph

**URL:** <https://forum.inductiveautomation.com/t/sum-history-tags-on-graph/59336>\
**Category:** Ignition\
**Created:** [May 8, 2022, 11:17pm UTC](https://forum.inductiveautomation.com/t/sum-history-tags-on-graph/59336 "2022-05-08T23:17:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jay\_Baker](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jay_baker/32/35448_2.png) [@Jay\_Baker](https://forum.inductiveautomation.com/u/Jay_Baker)\
**Post date:** [May 8, 2022, 11:17pm UTC](https://forum.inductiveautomation.com/t/sum-history-tags-on-graph/59336/1 "2022-05-08T23:17:44Z")

</div>

Hi - just wondering if there is an easy way I can show the sum of multiple historical tags as a single line on the ‘Time Series Chart’ component?

For example: I have ten silos each with volume tags, and I want to show a total silo volume graph over, say the last 24 hours, with a line showing the sum of all ten tags.

(I know I could create a calculated tag in the background to sum these all up and just show that tag, but I’d rather not have to create extra tags for every arbitrary combination of tags I might want to show on the graph).

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [May 9, 2022, 12:33am UTC](https://forum.inductiveautomation.com/t/sum-history-tags-on-graph/59336/2 "2022-05-09T00:33:51Z")

</div>

There is already a built in aggregate for sum. You should be able to add as many tags as you want and then set the interval accordingly.

---

<div class="post-metadata">

**Author:** ![Jay\_Baker](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jay_baker/32/35448_2.png) [@Jay\_Baker](https://forum.inductiveautomation.com/u/Jay_Baker)\
**Post date:** [May 9, 2022, 2:51am UTC](https://forum.inductiveautomation.com/t/sum-history-tags-on-graph/59336/3 "2022-05-09T02:51:31Z")

</div>

Hrrrm, yeah, that’s what I thought too! But it still just seems to show a line per tag I add

---

<div class="post-metadata">

**Author:** ![Jay\_Baker](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jay_baker/32/35448_2.png) [@Jay\_Baker](https://forum.inductiveautomation.com/u/Jay_Baker)\
**Post date:** [May 9, 2022, 2:55am UTC](https://forum.inductiveautomation.com/t/sum-history-tags-on-graph/59336/4 "2022-05-09T02:55:55Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/c/5c320ddfc17281558e279797be297dfa1bc70fa8.png)

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [May 9, 2022, 5:26am UTC](https://forum.inductiveautomation.com/t/sum-history-tags-on-graph/59336/5 "2022-05-09T05:26:34Z")

</div>

I honestly have never used more than one tag. This post might help with setting up the chart. I'd like to know myself but I'm not in front of my computer right now.

> [@Stacked Bar Chart in Perspective - Detailed Steps](https://forum.inductiveautomation.com/t/stacked-bar-chart-in-perspective-detailed-steps/47107):
>
> Few months ago I needed to create a stacked bar chart and ran into issues ([Perspective 8.0.14 Time Series Bar Chart width - #3 by arun1](http://forum.inductiveautomation.com/t/perspective-8-0-14-time-series-bar-chart-width/37160/3)). There are few posts here but they don’t give a full picture. Here are the steps that I took to create one: First it is worthwhile to note that we need to use the XY chart and not the TimeSeries chart because the width of the bar chart is calculated automatically based on the amount of data in the x-axis so if you have sparse data in a wide time range then th…

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [May 9, 2022, 8:09am UTC](https://forum.inductiveautomation.com/t/sum-history-tags-on-graph/59336/6 "2022-05-09T08:09:35Z")

</div>

Try checking the `calculations` radio at the top of that window and see what you can do with that.  
disclaimer: I’ve never used that so I don’t know if it can do what you want.

The other solution would be to use `system.tag.queryTagCalculation` or to add a transform script to your binding.

---

<div class="post-metadata">

**Author:** ![Jay\_Baker](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jay_baker/32/35448_2.png) [@Jay\_Baker](https://forum.inductiveautomation.com/u/Jay_Baker)\
**Post date:** [May 11, 2022, 9:58pm UTC](https://forum.inductiveautomation.com/t/sum-history-tags-on-graph/59336/7 "2022-05-11T21:58:17Z")

</div>

Thanks - I ended up using a stacked area chart, which kinda gave me what I wanted. (The top line is essentially the sum of all the values, but it includes extra info of all the tags you include, which is nice. Might get a bit messy with lots of tags, but works for now)
