# How to pass 2 list values as dataset in power table?

**URL:** <https://forum.inductiveautomation.com/t/how-to-pass-2-list-values-as-dataset-in-power-table/47132>\
**Category:** Ignition\
**Created:** [May 26, 2021, 10:11am UTC](https://forum.inductiveautomation.com/t/how-to-pass-2-list-values-as-dataset-in-power-table/47132 "2021-05-26T10:11:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prasath.t](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@prasath.t](https://forum.inductiveautomation.com/u/prasath.t)\
**Post date:** [May 26, 2021, 10:11am UTC](https://forum.inductiveautomation.com/t/how-to-pass-2-list-values-as-dataset-in-power-table/47132/1 "2021-05-26T10:11:33Z")

</div>

Hi, i have 2 list

a = [one,two,three]  
b= [20,-90,30]  
i want this in power tabel like this **(each list in separate column)**

one 20  
two -90  
three 30

i tired like this

```auto
for row in a:
	
	
	for rows in b:
			MyDataset = system.dataset.addRow(MyDataset,[row,rows])

event.source.parent.getComponent('Power Table 1').data = MyDataset

```

but not getting correct output

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [May 26, 2021, 11:03am UTC](https://forum.inductiveautomation.com/t/how-to-pass-2-list-values-as-dataset-in-power-table/47132/2 "2021-05-26T11:03:55Z")

</div>

Use a [zip function](https://www.w3schools.com/python/ref_func_zip.asp) to iterate over your two lists in parallel.
