Krishti Bikal
09/26/2026, 4:43 PMkapa.ai
09/26/2026, 4:43 PMAttributeFilter or AttributeFilterButton), you can enable this behavior directly using the component properties:
1. Single selection mode: Set selectionMode="single" [Configuring Single Value Selection Mode].
2. Auto-select top item: Set selectFirst={true}. This instructs the component to automatically select the first available element when the selection is empty [Attribute Filter Properties; Attribute Filter Button].
3. Dependency: Configure Selector B to depend on Selector A (the parent filter). When Selector A changes, Selector B resets and automatically selects the first available element from the filtered set [Attribute Filter Properties; Configuring Single Value Selection Mode].
Example:
<AttributeFilter
filter={newPositiveAttributeFilter(Md.SelectorB.Default, [])}
selectionMode="single"
selectFirst={true}
onApply={(updatedFilter) => {
setFilter(updatedFilter);
}}
/>
In the GoodData Dashboard UI In the native dashboard UI:
1. Configure Dependent Filter:
◦ Edit the dashboard.
◦ Click the gear/settings icon on Selector B [Create Dependent Filters on Dashboards].
◦ Under Filter Values By, add a Dashboard Filter and select Selector A as the parent filter, then save [Create Dependent Filters on Dashboards].
1. Single Selection and Default Values:
◦ Set the filter selection mode to single selection in the filter settings [SelectionMode.tsx].
◦ Select the desired default element and save the dashboard.
Note regarding dynamic default selection on dashboards: The knowledge sources do not explicitly describe an out-of-the-box UI toggle for standard dashboards to dynamically re-select the "top available element" of a dependent filter whenever a parent filter selection changes. In the native UI, saving a default selection persists that specific element. Dynamic automatic selection on empty/reset states is supported via the SDK selectFirst={true} property [Attribute Filter Properties; Attribute Filter Button] or custom dashboard plugin implementations. 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups.
👀 Our Support team monitors all messages and will jump in if needed.Krishti Bikal
09/26/2026, 4:46 PMKrishti Bikal
09/26/2026, 4:47 PMkapa.ai
09/26/2026, 4:47 PMselectFirst={true} property on the AttributeFilter component [IAttributeFilterCoreProps.selectFirst property; Configuring Single Value Selection Mode]) or through a custom dashboard plugin [README], rather than a built-in toggle in the standard dashboard interface. 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups.
👀 Our Support team monitors all messages and will jump in if needed.Julius Kos
09/28/2026, 8:51 AMKrishti Bikal
09/28/2026, 1:01 PM