> For the complete documentation index, see [llms.txt](https://docs.powerviz.ai/powerviz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.powerviz.ai/powerviz/filter/advanced-settings-introduction/default-selection.md).

# 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="/files/XBB3tHdKlEQSRe6pZ2h2" 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="/files/y56pUwmJ56xkiTL5p5J7" 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.powerviz.ai/powerviz/filter/advanced-settings-introduction/default-selection.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
