# Get dataset of tag values from dataset of tag paths

**URL:** <https://forum.inductiveautomation.com/t/get-dataset-of-tag-values-from-dataset-of-tag-paths/89073>\
**Category:** Ignition\
**Created:** [April 18, 2024, 7:07pm UTC](https://forum.inductiveautomation.com/t/get-dataset-of-tag-values-from-dataset-of-tag-paths/89073 "2024-04-18T19:07:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael.black](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@michael.black](https://forum.inductiveautomation.com/u/michael.black)\
**Post date:** [April 18, 2024, 7:07pm UTC](https://forum.inductiveautomation.com/t/get-dataset-of-tag-values-from-dataset-of-tag-paths/89073/1 "2024-04-18T19:07:11Z")

</div>

I have a current value I am reading in via plc. I have the tags set up as:  
PV\_Silo1TotalWeight (current value),  
PV\_Silo1TotalWeight-1, PV\_Silo1TotalWeight-2, PV\_Silo1TotalWeight-3, PV\_Silo1TotalWeight-4, and PV\_Silo1TotalWeight-5 as memory tags  
I want to run a gateway script which every minute takes the current value and puts it into -1, put -1 into -2, and so on. I have a for loop which gets me the 5 tags paths of the memory tags but it is the whole tag structure. I only want the values of the tag paths and tried to . How would I get just the values?  
I tried to make a list of just the values using the one code item commented out but it did not work:

```auto
silo1paths = []
silo2paths = []
silo1tags = []
silo2tags = []
silo1initvalues = []
silo2initvalues = []

for i in range(1,6):
	silo1paths.append('[Test]Process Trending/Delaq/PV_Silo1TotalWeight-' + str(i))
	silo2paths.append('[Test]Process Trending/Delaq/PV_Silo2TotalWeight-' + str(i))
	silo1tags = system.tag.readBlocking(silo1paths)
#	silo1initvalues.append(silo1tags[0].value)
print silo1tags

```

Here is printout:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/9/89042a9067b3b2806ef06126c7fbdd7e2d3faa15.png)

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [April 18, 2024, 7:11pm UTC](https://forum.inductiveautomation.com/t/get-dataset-of-tag-values-from-dataset-of-tag-paths/89073/2 "2024-04-18T19:11:22Z")

</div>

Something like this:

```python
silo1values = [qv.value for qv in system.tag.readBlocking(silo1paths)]

```

---

<div class="post-metadata">

**Author:** ![michael.black](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@michael.black](https://forum.inductiveautomation.com/u/michael.black)\
**Post date:** [April 18, 2024, 7:18pm UTC](https://forum.inductiveautomation.com/t/get-dataset-of-tag-values-from-dataset-of-tag-paths/89073/3 "2024-04-18T19:18:00Z")

</div>

Perfect! Thank you!

---

<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:** [April 18, 2024, 7:58pm UTC](https://forum.inductiveautomation.com/t/get-dataset-of-tag-values-from-dataset-of-tag-paths/89073/4 "2024-04-18T19:58:25Z")

</div>

Or try my `tags()` expression function (from my Integration Toolkit). 😁

---

<div class="post-metadata">

**Author:** ![michael.black](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@michael.black](https://forum.inductiveautomation.com/u/michael.black)\
**Post date:** [April 19, 2024, 2:57pm UTC](https://forum.inductiveautomation.com/t/get-dataset-of-tag-values-from-dataset-of-tag-paths/89073/5 "2024-04-19T14:57:40Z")

</div>

If I had more time on the project I would look into it
