# How to make group of tags histogram with condition in Ignition perspective module

**URL:** <https://forum.inductiveautomation.com/t/how-to-make-group-of-tags-histogram-with-condition-in-ignition-perspective-module/92106>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [June 19, 2024, 3:52pm UTC](https://forum.inductiveautomation.com/t/how-to-make-group-of-tags-histogram-with-condition-in-ignition-perspective-module/92106 "2024-06-19T15:52:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajashekar\_Reddy](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@Rajashekar\_Reddy](https://forum.inductiveautomation.com/u/Rajashekar_Reddy)\
**Post date:** [June 19, 2024, 3:52pm UTC](https://forum.inductiveautomation.com/t/how-to-make-group-of-tags-histogram-with-condition-in-ignition-perspective-module/92106/1 "2024-06-19T15:52:53Z")

</div>

Dear Team,

I am reaching out to inquire about the possibility of implementing a conditional histogram recording system for a group of tags in our database, using the Perspective Module and Power Chart in Ignition.

To elaborate, we have a set of 10 tags, and we need to record their histogram data only when a specific tag's status changes to 1. This tag's data is sourced from a PLC. The goal is to ensure that the database records the histogram data for all tags in the group only under the specified condition.

In Power chat can we have multiple scales based on tag which we selected through tag browser.

Could you please provide guidance on how to configure the Perspective Module to meet our requirements? Your expertise in this matter.

---

<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:** [June 19, 2024, 4:14pm UTC](https://forum.inductiveautomation.com/t/how-to-make-group-of-tags-histogram-with-condition-in-ignition-perspective-module/92106/2 "2024-06-19T16:14:30Z")

</div>

You could store manually via scripting, [system.tag.storeTagHistory | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-tag/system-tag-storeTagHistory)

You could also use SQL bridge, which would allow conditions. You could then setup a DB Table History Provider to easily get data into tables etc., [DB Table Historian Provider | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/ignition-modules/tag-historian/tag-history-providers/db-table-historian-provider)

---

<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:** [June 19, 2024, 4:53pm UTC](https://forum.inductiveautomation.com/t/how-to-make-group-of-tags-histogram-with-condition-in-ignition-perspective-module/92106/3 "2024-06-19T16:53:32Z")

</div>

> [@Rajashekar\_Reddy](#):
>
> configure the Perspective Module to meet our requirements

This isn't really a Perspective question, but a historian question. The native historian is not able to record or not record based on conditions, nor can it record groups of tags together (synchronized).

The SQL Bridge module can do both of those things. And queries can be manually constructed to obtain your results from the SQL Bridge's data.
