Dashboards & Visualizations

Duplicate values on dropdown multiselect input

Path Finder

Hello All,

I keep getting duplicates on my values for multiselect dropdown. I made sure my fields were correct the - field for name and field for values and query on the search.  Not sure what else I need to check for. My source below... Any advise is welcome. 


<input type="multiselect" token="tok_space_name" searchWhenChanged="true">

      <label>Select Space</label>

      <choice value="*">All</choice>






      <delimiter> OR </delimiter>

      <fieldForLabel>Select Space</fieldForLabel>



        <query>index="lll_soruceIdx.idx"  | stats values(space_name) as space_name | mvexpand space_name</query>







Labels (2)
0 Karma


Your '<fieldForLabel> should be a field in the data from your search to use as the visible dropdown, not the text

'Space Label', so change it to space_name

Also your search is probably better as

| stats count by space_name 

so you don't first collapse all spaces and then expand them again.


0 Karma


Could you try adding below command as well in the end of the search query. This should remove any duplicate entries for space_name

| dedup space_name 



Vikas Jha

Tags (1)
0 Karma
Get Updates on the Splunk Community!

Streamline Data Ingestion With Deployment Server Essentials

REGISTER NOW!Every day the list of sources Admins are responsible for gets bigger and bigger, often making the ...

Remediate Threats Faster and Simplify Investigations With Splunk Enterprise Security ...

REGISTER NOW!Join us for a Tech Talk around our latest release of Splunk Enterprise Security 7.2! We’ll walk ...

Introduction to Splunk AI

WATCH NOWHow are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. ...