# Remove duplicate rows from dataset

**URL:** <https://community.amazonquick.com/t/remove-duplicate-rows-from-dataset/6826>\
**Category:** Q&A\
**Tags:** direct-query, quick-sight\
**Created:** [October 13, 2022, 2:17pm UTC](https://community.amazonquick.com/t/remove-duplicate-rows-from-dataset/6826 "2022-10-13T14:17:59Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![EnriqueS](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/enriques/32/2712_2.png) [@EnriqueS](https://community.amazonquick.com/u/EnriqueS)\
**Post date:** [October 27, 2022, 3:10pm UTC](https://community.amazonquick.com/t/remove-duplicate-rows-from-dataset/6826/4 "2022-10-27T15:10:11Z")

</div>

Hello @egobbo .

You can also create calculated fields at the [dataset level](https://docs.aws.amazon.com/quicksight/latest/user/adding-a-calculated-field-analysis.html#using-the-calculated-field-editor) and then create a [filter at the dataset level](https://docs.aws.amazon.com/quicksight/latest/user/add-a-filter-data-prep.html#add-a-filter-data-prep-datasets) as well.

This way you can filter the data directly there and make sure that all the analyses that use it received the filtered data.

However remember that it is the best practice to work with already clean and massaged datasets to avoid overloading the BI layer with calculations and filters so your visuals can render blazing fast.

I would recommend to create a data pipeline using [AWS Glue](https://aws.amazon.com/glue/) or or your favorite ETL tool to ensure that the data that arrives to the consumption layer (Quicksight in this case) doesn’t contain duplicates.

Hope it helps, please mark this solution as solved if that’s the case also to help other members of the community., otherwise let us know.

Happy dashboarding!

---

_[View the full topic](https://community.amazonquick.com/t/remove-duplicate-rows-from-dataset/6826)._
