# Reporting with TAG selection

**URL:** <https://forum.inductiveautomation.com/t/reporting-with-tag-selection/48250>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [June 27, 2021, 10:35pm UTC](https://forum.inductiveautomation.com/t/reporting-with-tag-selection/48250 "2021-06-27T22:35:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![patricio.rojas.bolom](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@patricio.rojas.bolom](https://forum.inductiveautomation.com/u/patricio.rojas.bolom)\
**Post date:** [June 27, 2021, 10:35pm UTC](https://forum.inductiveautomation.com/t/reporting-with-tag-selection/48250/1 "2021-06-27T22:35:49Z")

</div>

How can I select the TAGs that I want to appear in the report using options?  
Some person has some example of how it is done?  
I could create many reports but I want to enable and disable TAG

 ![Consulta](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/6/96ce73f72751d16aab1843f220cd2219d73eea7d.jpeg)

I want to do something simpler, not create all possible report combination options

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [February 2, 2022, 6:36pm UTC](https://forum.inductiveautomation.com/t/reporting-with-tag-selection/48250/2 "2022-02-02T18:36:47Z")

</div>

I assume you are using a tag history query for your reports? If so you can use parameters in your tag paths, but i don’t think that is going to work very well for you, if you dont have a fixed number of tags you will report on.

You could use a SQL or Named query and add a your selected tag names to the where clause, but that will get more complicated if you have partitioning enabled on your historian, which you probably do.

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [February 2, 2022, 9:27pm UTC](https://forum.inductiveautomation.com/t/reporting-with-tag-selection/48250/3 "2022-02-02T21:27:38Z")

</div>

This isnt a very elegant solution, but it works.  
The report data source, with the parameters for 3 tag paths:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/8/980d778c9f04d76c317f73af6a799c5effbb2ff9.png)

The perspective view with drop downs for the 3 tag path parameters. I have the full path in the value property but just the tag name for the label.

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

Hopefully this helps, or at least gets you started.

---

<div class="post-metadata">

**Author:** ![patricio.rojas.bolom](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@patricio.rojas.bolom](https://forum.inductiveautomation.com/u/patricio.rojas.bolom)\
**Post date:** [February 3, 2022, 11:47am UTC](https://forum.inductiveautomation.com/t/reporting-with-tag-selection/48250/4 "2022-02-03T11:47:23Z")

</div>

Do you have any more information? What code do you insert into the component?  
I don’t have much experience so I ask a little more details.  
If you have any project that you can send me so I can open it and see how it is made .  
[patricio.rojas.bolomey@gmail.com](mailto:patricio.rojas.bolomey@gmail.com)

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [February 3, 2022, 4:58pm UTC](https://forum.inductiveautomation.com/t/reporting-with-tag-selection/48250/5 "2022-02-03T16:58:01Z")

</div>

I have shown you pretty much everything except my drop down config. I have this setup in a project i can’t share, but if you need more help i can create a new one. Also you can do the same thing with the radio buttons in your screen shot, just set custom properties to the tag paths desired based on the selection.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/8/38f33e53d44b2f244f4e29b21d320da45c8a7aac.png)

---

<div class="post-metadata">

**Author:** ![patricio.rojas.bolom](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@patricio.rojas.bolom](https://forum.inductiveautomation.com/u/patricio.rojas.bolom)\
**Post date:** [March 17, 2022, 8:33pm UTC](https://forum.inductiveautomation.com/t/reporting-with-tag-selection/48250/6 "2022-03-17T20:33:31Z")

</div>

I would be very grateful if you could create a project for me as an example.  
My mail is: [patricio.rojas.bolomey@gmail.com](mailto:patricio.rojas.bolomey@gmail.com)

Thank

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [March 17, 2022, 9:07pm UTC](https://forum.inductiveautomation.com/t/reporting-with-tag-selection/48250/7 "2022-03-17T21:07:06Z")

</div>

It is in your inbox.

---

<div class="post-metadata">

**Author:** ![patricio.rojas.bolom](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@patricio.rojas.bolom](https://forum.inductiveautomation.com/u/patricio.rojas.bolom)\
**Post date:** [March 17, 2022, 9:10pm UTC](https://forum.inductiveautomation.com/t/reporting-with-tag-selection/48250/8 "2022-03-17T21:10:35Z")

</div>

Trank, I will check it 🙂
