# Calculation of value only once

**URL:** <https://community.amazonquick.com/t/calculation-of-value-only-once/48132>\
**Category:** Q&A\
**Tags:** dashboards, business-user, quick-sight\
**Created:** [July 11, 2025, 2:25pm UTC](https://community.amazonquick.com/t/calculation-of-value-only-once/48132 "2025-07-11T14:25:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Brett](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/brett/32/36494_2.png) [@Brett](https://community.amazonquick.com/u/Brett)\
**Post date:** [July 11, 2025, 7:25pm UTC](https://community.amazonquick.com/t/calculation-of-value-only-once/48132/2 "2025-07-11T19:25:46Z")

</div>

Hi @Markus,  
So looking at the calculated fields you’ve tried out, it looks like you’re trying to add up the runtime but only utilizing one row per ID?  
You’re on the right track with the min (or alternatively you could also use max). But I think where you might be encountering an issue is using ‘PRE\_AGG’ for your sumOver and minOver. If you’re summing Pre-Agg, it’s happening prior to any aggregation.  
Have you tried the calc. field without the pre\_agg so that it defaults to ‘post\_agg\_filter’?

Additionally, here’s an old community post that discusses how to deal with duplicates in your dataset, similar to the scenario you are encountering.

> [@Remove duplicate rows from dataset](https://community.amazonquick.com/t/remove-duplicate-rows-from-dataset/6826):
>
> Good morning, in my dataset the are two columns (“T040” and “T041”) that contains temperature values. I would like to remove all the rows where T040 and T041 are equals to the previous row. I need something like this: Original dataset TimeStamp T040 T041 16:15:00 28.3 27.8 16:15:01 28.2 27.9 16:15:02 28.2 27.9 16:15:03 28.2 27.9 16:15:04 28.4 27.6 Dataset desidered TimeStamp T040 T041 16:15:00 28.3 27.8 16:15:01 28.2 27.9 16:15:04 28.4 27.6 Is there a way …

---

_[View the full topic](https://community.amazonquick.com/t/calculation-of-value-only-once/48132)._
