# Need help for Dataset Tag

**URL:** <https://forum.inductiveautomation.com/t/need-help-for-dataset-tag/48195>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [June 25, 2021, 6:33am UTC](https://forum.inductiveautomation.com/t/need-help-for-dataset-tag/48195 "2021-06-25T06:33:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thiamweekhoo](https://avatars.discourse-cdn.com/v4/letter/t/e47c2d/32.png) [@thiamweekhoo](https://forum.inductiveautomation.com/u/thiamweekhoo)\
**Post date:** [June 25, 2021, 6:33am UTC](https://forum.inductiveautomation.com/t/need-help-for-dataset-tag/48195/1 "2021-06-25T06:33:30Z")

</div>

Hello All.

I am using Ignition Edge 8.0.10.  
I import the dataset from .csv to a dataset tag. I then directly bind the dataset tag to a table on the window. I used below script on my client event script Tag Change and those value get updated each time the tag change. The above is working fine for me.

So right now, I would need to sum up all rows for Col3, Col4 and Col5 based on the type at Col2. I would need the total to be updated automatically each time when there is new row updated on the table. On my table, col2 is String and Col3,4,5 is double. Is this possible ? Any help is appreciated.

csvData = csv.reader(open(Path))  
header = [“Col1”, “Col2”, “Col3”, “Col4”, “Col5”, “Col6”]  
dataset = system.dataset.toDataSet(header,list(csvData))  
system.tag.write("[edge]Island/Island"+str(islandno)+"/Arm"+str(armno)+"/Report/Dataset",dataset)

 ![Untitled123](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/6/a67be82d78001b87ade61ace009bc6f5dfb85d2a.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/f/2f548e14ea40a4b4c3828154e0956a730cc37608.png)

---

<div class="post-metadata">

**Author:** ![thiamweekhoo](https://avatars.discourse-cdn.com/v4/letter/t/e47c2d/32.png) [@thiamweekhoo](https://forum.inductiveautomation.com/u/thiamweekhoo)\
**Post date:** [June 25, 2021, 8:05am UTC](https://forum.inductiveautomation.com/t/need-help-for-dataset-tag/48195/2 "2021-06-25T08:05:25Z")

</div>

Correction, I just checked and my table column type turn out to be string after binding to the dataset tag…
