# Default Selection

The default selection is an advanced feature that helps you keep certain values automatically selected when the filter is first opened or the page is refreshed. There are two ways you can apply the default selection option:

1. **Fixed**
2. **Based on Field**

## **Fixed option:**

<figure><img src="https://2952853741-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL502qSSR9Gd1FbZtxvCe%2Fuploads%2F4TWqBDLR6GJaOBcgL51a%2Fimage.png?alt=media&#x26;token=d684ee05-dc78-4448-ba03-19ee153579f2" alt="" width="314"><figcaption></figcaption></figure>

To create a default selection using the Fixed option, follow these steps:

1. Open advanced settings from the "⚙️" button.
2. Go to the Default Selection section.
3. Select **Fixed**, choose the level, and provide the value for selection.

## **Based on Field option:**

<figure><img src="https://2952853741-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL502qSSR9Gd1FbZtxvCe%2Fuploads%2FigRujFQNHfiQdWDiDhnl%2Fimage.png?alt=media&#x26;token=b269513b-1f9d-4409-9796-1cf88b5f672e" alt="" width="360"><figcaption></figcaption></figure>

To create a default selection based on a field, follow these steps:

1. Create a column or measure in your data.
2. Use a 0/1 condition, where 1 represents true and 0 represents false.
3. Add the measure to the Default Selection Field.
4. Now go to the advanced settings "⚙️" > Default Selection > Based on Field > Select the measure created > Hit Apply.

```dax
Default Selection = 
SWITCH(
'Electronic List'[Selected measure], 
    "MacBook Air", 1, // 1 for values to be selected
    "ASUS ZenBook", 1, 
    "HP Spectre x360", 1,
0                    // 0 for values which should not be selected
)

```


---

# 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.powerviz.ai/powerviz/filter/advanced-settings-introduction/default-selection.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.
