# Duplicate Fields

**URL:** <https://discuss.elastic.co/t/duplicate-fields/126648>\
**Category:** Kibana\
**Created:** [April 3, 2018, 11:49pm UTC](https://discuss.elastic.co/t/duplicate-fields/126648 "2018-04-03T23:49:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mustafa\_mohammed](https://avatars.discourse-cdn.com/v4/letter/m/f07891/32.png) [@mustafa\_mohammed](https://discuss.elastic.co/u/mustafa_mohammed)\
**Post date:** [April 3, 2018, 11:49pm UTC](https://discuss.elastic.co/t/duplicate-fields/126648/1 "2018-04-03T23:49:53Z")

</div>

I have over 2000 records in my CSV file that I want to use to keep track of how many times we order a product. And each record has its own product ID, So a product could be ordered multiple times, so I want to know if there is a way to figure out how many products have been order where fields that have the same product ID are only counted 1 time. And also how to filter this chart by year.

Thank you for your help in advance.

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [April 9, 2018, 11:14pm UTC](https://discuss.elastic.co/t/duplicate-fields/126648/2 "2018-04-09T23:14:59Z")

</div>

Hi,

Unique count aggregation on any of the fields in y-axis should be able to give you this on charts.  
And then you can filter by the year on x-axis.

 ![24%20PM](https://us1.discourse-cdn.com/elastic/original/3X/a/5/a593ebf85fbe6b4217e7ca7e1a5d9069513572d7.png)

Thanks,  
Bhavya

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 7, 2018, 11:15pm UTC](https://discuss.elastic.co/t/duplicate-fields/126648/3 "2018-05-07T23:15:03Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
