# Update Dataset Refresh

As your datasets grow, the SPICE datasets can be adjusted to run incremental from the default Full. Unfortunately, the refresh can't be done via the UI and needs to be via CLI.

Below are is the CLI

```
# Dataset 1: d922b670-c864-42be-916e-41c87ba467ef
aws quicksight put-data-set-refresh-properties \
    --aws-account-id XXXXXXXXXXXX \
    --data-set-id d922b670-c864-42be-916e-41c87ba467ef \
    --data-set-refresh-properties '{
        "RefreshConfiguration": {
            "IncrementalRefresh": {
                "LookbackWindow": {
                    "ColumnName": "usage_date",
                    "Size": 2,
                    "SizeUnit": "DAY"
                }
            }
        }
    }'

# Dataset 2: b2830a54-0ded-477d-95b8-297f286f2368
aws quicksight put-data-set-refresh-properties \
    --aws-account-id XXXXXXXXXXXX \
    --data-set-id b2830a54-0ded-477d-95b8-297f286f2368 \
    --data-set-refresh-properties '{
        "RefreshConfiguration": {
            "IncrementalRefresh": {
                "LookbackWindow": {
                    "ColumnName": "usage_date",
                    "Size": 2,
                    "SizeUnit": "DAY"
                }
            }
        }
    }'

# Dataset 3: 97578d20-f2b1-426b-97bb-ef305d10f482
aws quicksight put-data-set-refresh-properties \
    --aws-account-id XXXXXXXXXXXX \
    --data-set-id 97578d20-f2b1-426b-97bb-ef305d10f482 \
    --data-set-refresh-properties '{
        "RefreshConfiguration": {
            "IncrementalRefresh": {
                "LookbackWindow": {
                    "ColumnName": "usage_date",
                    "Size": 2,
                    "SizeUnit": "DAY"
                }
            }
        }
    }'

# Dataset 4: 5f58ac65-3572-4eea-98b6-71bc2bf6a653
aws quicksight put-data-set-refresh-properties \
    --aws-account-id XXXXXXXXXXXX \
    --data-set-id 5f58ac65-3572-4eea-98b6-71bc2bf6a653 \
    --data-set-refresh-properties '{
        "RefreshConfiguration": {
            "IncrementalRefresh": {
                "LookbackWindow": {
                    "ColumnName": "usage_date",
                    "Size": 2,
                    "SizeUnit": "DAY"
                }
            }
        }
    }'

# Dataset 5: 33259e2a-c7cd-4b32-88f2-3c8baed3e3c3
aws quicksight put-data-set-refresh-properties \
    --aws-account-id XXXXXXXXXXXX \
    --data-set-id 33259e2a-c7cd-4b32-88f2-3c8baed3e3c3 \
    --data-set-refresh-properties '{
        "RefreshConfiguration": {
            "IncrementalRefresh": {
                "LookbackWindow": {
                    "ColumnName": "usage_date",
                    "Size": 2,
                    "SizeUnit": "DAY"
                }
            }
        }
    }'

# Dataset 6: 0364df80-c403-4d1e-99b4-d48a8810bca8
aws quicksight put-data-set-refresh-properties \
    --aws-account-id XXXXXXXXXXXX \
    --data-set-id 0364df80-c403-4d1e-99b4-d48a8810bca8 \
    --data-set-refresh-properties '{
        "RefreshConfiguration": {
            "IncrementalRefresh": {
                "LookbackWindow": {
                    "ColumnName": "usage_date",
                    "Size": 2,
                    "SizeUnit": "DAY"
                }
            }
        }
    }'
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.finopscenter.com/agent-bill-amazon-quickchat-for-finops-center/functional/update-dataset-refresh.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
