# Report table showing repeated data rather than what is in the dataset

**URL:** <https://forum.inductiveautomation.com/t/report-table-showing-repeated-data-rather-than-what-is-in-the-dataset/21467>\
**Category:** Ignition\
**Created:** [December 17, 2018, 10:49pm UTC](https://forum.inductiveautomation.com/t/report-table-showing-repeated-data-rather-than-what-is-in-the-dataset/21467 "2018-12-17T22:49:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![brendan.curran](https://avatars.discourse-cdn.com/v4/letter/b/cdc98d/32.png) [@brendan.curran](https://forum.inductiveautomation.com/u/brendan.curran)\
**Post date:** [December 17, 2018, 10:49pm UTC](https://forum.inductiveautomation.com/t/report-table-showing-repeated-data-rather-than-what-is-in-the-dataset/21467/1 "2018-12-17T22:49:51Z")

</div>

So I have a dataset that a report table component pulls information from. However, it frequently will show repeated values in certain rows. I can’t even figure out a pattern as to why. You can even see that the data is correct in the XML that pops up when you preview the table or by binding the dataset tag to a table component in a window. It occasionally works, usually when the dataset is larger. I cannot figure out what could be causing this.

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [December 18, 2018, 12:01am UTC](https://forum.inductiveautomation.com/t/report-table-showing-repeated-data-rather-than-what-is-in-the-dataset/21467/2 "2018-12-18T00:01:19Z")

</div>

At a minimum, we’d need the version of the reporting module and a screenshot of how you’ve set the report table up.

---

<div class="post-metadata">

**Author:** ![sergeyk1](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@sergeyk1](https://forum.inductiveautomation.com/u/sergeyk1)\
**Post date:** [December 19, 2018, 2:18am UTC](https://forum.inductiveautomation.com/t/report-table-showing-repeated-data-rather-than-what-is-in-the-dataset/21467/3 "2018-12-19T02:18:56Z")

</div>

Another one here.  
Reporting version : 4.9.10 (b2018112813)  
we used a table group with parent-child tables.

Report example:

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/c/c05acd0f041a2f5a1dd0753ae1603c31fe4213fd.png)

---

<div class="post-metadata">

**Author:** ![Paul.Scott](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul.scott/32/4578_2.png) [@Paul.Scott](https://forum.inductiveautomation.com/u/Paul.Scott)\
**Post date:** [December 19, 2018, 3:33pm UTC](https://forum.inductiveautomation.com/t/report-table-showing-repeated-data-rather-than-what-is-in-the-dataset/21467/4 "2018-12-19T15:33:02Z")

</div>

In your case, the key’s in the table don’t look quite right (I’m making some assumptions about the data source, based on the image). I would imagine you don’t need the name of the data source in your keys. Can you try changing the keys so that they don’t contain the data source? E.g.:

`@Consumption By WorkOrder.PIN@` changed to `@PIN@`  
`Consumption By WorkOrder.GRADE@` changed to `@GRADE@`  
etc…

---

<div class="post-metadata">

**Author:** ![sergeyk1](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@sergeyk1](https://forum.inductiveautomation.com/u/sergeyk1)\
**Post date:** [December 19, 2018, 9:30pm UTC](https://forum.inductiveautomation.com/t/report-table-showing-repeated-data-rather-than-what-is-in-the-dataset/21467/5 "2018-12-19T21:30:36Z")

</div>

I have more than one data source, so, I believe, it is required. Especially since this reference was produced by Drag&Drop.

UPD:

---

<div class="post-metadata">

**Author:** ![brendan.curran](https://avatars.discourse-cdn.com/v4/letter/b/cdc98d/32.png) [@brendan.curran](https://forum.inductiveautomation.com/u/brendan.curran)\
**Post date:** [December 19, 2018, 10:16pm UTC](https://forum.inductiveautomation.com/t/report-table-showing-repeated-data-rather-than-what-is-in-the-dataset/21467/6 "2018-12-19T22:16:57Z")

</div>

I fixed my issue by using basic sorting of a column that may have repeated values. I’m not sure how the table component parses through data sources, but it appeared that once it reached a value that was the same as the previous row it would overwrite every column after that with the same value as the previous row. I would end up with the correct values in the first two columns and then the rest of the row would be identical to the previous. I sorted them by my “startTime” in the data source, which had the same value for multiple rows and it appears to have solved my issue. I’m not sure what about the table component could be causing this though. The strangest thing is that the data is always correct when you view the XML code that pops up when previewing.

---

<div class="post-metadata">

**Author:** ![Paul.Scott](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul.scott/32/4578_2.png) [@Paul.Scott](https://forum.inductiveautomation.com/u/Paul.Scott)\
**Post date:** [December 19, 2018, 10:33pm UTC](https://forum.inductiveautomation.com/t/report-table-showing-repeated-data-rather-than-what-is-in-the-dataset/21467/7 "2018-12-19T22:33:18Z")

</div>

> [@sergeyk1](#):
>
> Especially since this reference was produced by Drag&Drop

Right, but if you dragged and dropped the keys into the text shapes **before** assigning a data key to the table, you'll end up with the notation in your screenshot. If you try dragging and dropping now that your table is assigned, is it using the same notation?

Side note, I'm still not certain what the data source(s) look like, so this is mostly speculation based on the image you provided.

---

<div class="post-metadata">

**Author:** ![sergeyk1](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@sergeyk1](https://forum.inductiveautomation.com/u/sergeyk1)\
**Post date:** [December 19, 2018, 11:32pm UTC](https://forum.inductiveautomation.com/t/report-table-showing-repeated-data-rather-than-what-is-in-the-dataset/21467/8 "2018-12-19T23:32:40Z")

</div>

I’ve updated my previous reply with data source list and table group arrangement.  
Here is the evidence of duplicated rows and correct XML data.  
Sorting the data source by WorkOrder (unique key for this table) did not help.  
Report file was emailed to support, ticket 86307.

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/6644d64516ebb6ee396a2867069f798f147ee51e.png)

---

<div class="post-metadata">

**Author:** ![sergeyk1](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@sergeyk1](https://forum.inductiveautomation.com/u/sergeyk1)\
**Post date:** [January 7, 2019, 12:28am UTC](https://forum.inductiveautomation.com/t/report-table-showing-repeated-data-rather-than-what-is-in-the-dataset/21467/9 "2019-01-07T00:28:07Z")

</div>

Scott,

Originally I thought that yr hint is not relevant, because keys were generated by dragging from DataSource, but removal of the prefix has actually fixed my problem.

Thank you!
