# Is there any way to do an update in Spice?

**URL:** <https://community.amazonquick.com/t/is-there-any-way-to-do-an-update-in-spice/14440>\
**Category:** Q&A\
**Tags:** feature-request, quick-sight\
**Created:** [June 8, 2023, 2:16pm UTC](https://community.amazonquick.com/t/is-there-any-way-to-do-an-update-in-spice/14440 "2023-06-08T14:16:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![KLIKIN](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@KLIKIN](https://community.amazonquick.com/u/KLIKIN)\
**Post date:** [June 8, 2023, 2:16pm UTC](https://community.amazonquick.com/t/is-there-any-way-to-do-an-update-in-spice/14440/1 "2023-06-08T14:16:59Z")

</div>

Hi,

I have some tables whose records can be static for months, and change after a while. If I use incremental refresh, it only inserts me when an “update” type field has changed, but it doesn’t delete the previous record.

For example, if I have a record with update field 2022-01-01 and update it in my database, doing incremental refresh in Quicksight will insert the record but not delete the old one. Is there a way to do an updated - insert for example via code?

---

<div class="post-metadata">

**Author:** ![Karthik\_Tharmarajan](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/karthik_tharmarajan/32/3282_2.png) [@Karthik\_Tharmarajan](https://community.amazonquick.com/u/Karthik_Tharmarajan)\
**Post date:** [June 8, 2023, 3:13pm UTC](https://community.amazonquick.com/t/is-there-any-way-to-do-an-update-in-spice/14440/2 "2023-06-08T15:13:56Z")

</div>

Hi @KLIKIN, Based on your use case or business need, you can tweak the look back window within incremental refresh along with period full refresh to keep your data updated. Below Quick Sight learning series video dives a little deep into the concept of incremental refresh and how we can use look back window and full refresh to control data update within SPICE.

[![](https://d1wl4jav5dp96l.cloudfront.net/original/2X/5/55a1c5486c4175c620f6e45558711e2ef3853456.jpeg "2022 QuickSight Learning Series: Keep your data fresh with incremental SPICE refresh") ](https://www.youtube.com/watch?v=jl_91ahT-P8)

Regards,  
Karthik

---

<div class="post-metadata">

**Author:** ![KLIKIN](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@KLIKIN](https://community.amazonquick.com/u/KLIKIN)\
**Post date:** [June 12, 2023, 3:36pm UTC](https://community.amazonquick.com/t/is-there-any-way-to-do-an-update-in-spice/14440/3 "2023-06-12T15:36:58Z")

</div>

@Karthik_Tharmarajan Unfortunately I think with your examples doesn’t work for our data source, because It has to have a look back window too huge.

Also I was thing in use two datasets, the first one with the data until 2022, that it’s not necessary to update and the second one with the data of 2023 (and I’ll do a full update), the problem is to join these two datasets and don’t have any repeated name field.

---

<div class="post-metadata">

**Author:** ![Koushik\_Muthanna](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/koushik_muthanna/32/3290_2.png) [@Koushik\_Muthanna](https://community.amazonquick.com/u/Koushik_Muthanna)\
**Post date:** [July 20, 2023, 11:46am UTC](https://community.amazonquick.com/t/is-there-any-way-to-do-an-update-in-spice/14440/4 "2023-07-20T11:46:52Z")

</div>

I will take this a feature request as the record update scenario is based on a look window and not based on update like a key or column value.

---

<div class="post-metadata">

**Author:** ![Koushik\_Muthanna](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/koushik_muthanna/32/3290_2.png) [@Koushik\_Muthanna](https://community.amazonquick.com/u/Koushik_Muthanna)\
**Post date:** [July 20, 2023, 11:46am UTC](https://community.amazonquick.com/t/is-there-any-way-to-do-an-update-in-spice/14440/5 "2023-07-20T11:46:57Z")

</div>

Archived on July 20, 2023, 11:46am UTC


