<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic multiselect with AND in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/multiselect-with-AND/m-p/748675#M58905</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;is it possible to use multiselect input in classic dashboard so the selected objects there will be&amp;nbsp;&lt;BR /&gt;key=value AND key=value1 ? if im using IN its acts like OR&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jun 2025 09:14:37 GMT</pubDate>
    <dc:creator>sarit_s6</dc:creator>
    <dc:date>2025-06-25T09:14:37Z</dc:date>
    <item>
      <title>multiselect with AND</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/multiselect-with-AND/m-p/748675#M58905</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;is it possible to use multiselect input in classic dashboard so the selected objects there will be&amp;nbsp;&lt;BR /&gt;key=value AND key=value1 ? if im using IN its acts like OR&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 09:14:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/multiselect-with-AND/m-p/748675#M58905</guid>
      <dc:creator>sarit_s6</dc:creator>
      <dc:date>2025-06-25T09:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: multiselect with AND</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/multiselect-with-AND/m-p/748677#M58906</link>
      <description>&lt;P&gt;Yes you can do that.&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260281"&gt;@sarit_s6&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can make use of&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;lt;delimiter&amp;gt;&lt;/TD&gt;&lt;TD&gt;text&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;A string that will be placed between each selected value. Typically, you specify " OR " or " AND " using upper case – do not specify the quote marks, but specify a space character before and after the text.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;lt;valuePrefix&amp;gt;&lt;/TD&gt;&lt;TD&gt;text&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;String prefixed to the value of the input element. Can be a regular expression.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;lt;valueSuffix&amp;gt;&lt;/TD&gt;&lt;TD&gt;text&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;String appended to the value of the input element. Can be a regular expression.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;delimiter -&amp;gt; AND&lt;/P&gt;&lt;P&gt;valuePrefix -&amp;gt; key="&lt;/P&gt;&lt;P&gt;valueSuffix -&amp;gt; "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will prepare something like -&amp;gt; key="A" AND key="B" ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!!!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 09:27:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/multiselect-with-AND/m-p/748677#M58906</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2025-06-25T09:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: multiselect with AND</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/multiselect-with-AND/m-p/748680#M58907</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260281"&gt;@sarit_s6&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;yes, you can use the IN operator and comma as separator.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 09:33:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/multiselect-with-AND/m-p/748680#M58907</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2025-06-25T09:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: multiselect with AND</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/multiselect-with-AND/m-p/748681#M58908</link>
      <description>&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;its working&lt;/P&gt;&lt;P&gt;is it also possible to set it like that so when object is selected it will remove the "ALL" automatically ?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 09:40:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/multiselect-with-AND/m-p/748681#M58908</guid>
      <dc:creator>sarit_s6</dc:creator>
      <dc:date>2025-06-25T09:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: multiselect with AND</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/multiselect-with-AND/m-p/748683#M58909</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260281"&gt;@sarit_s6&lt;/a&gt;&amp;nbsp;- That one requires Javascript to be written to remove "All" option.&lt;/P&gt;&lt;P&gt;Reference -&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Dashboards-Visualizations/Remove-quot-All-quot-from-Multiselect-Input-in-Dashboard/m-p/301375" target="_blank"&gt;https://community.splunk.com/t5/Dashboards-Visualizations/Remove-quot-All-quot-from-Multiselect-Input-in-Dashboard/m-p/301375&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OR you can opt for complex XML editing suggested in this reference -&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Dashboards-Visualizations/Remove-ALL-from-multi-select-input-once-any-value-is-selected/m-p/711199" target="_blank"&gt;https://community.splunk.com/t5/Dashboards-Visualizations/Remove-ALL-from-multi-select-input-once-any-value-is-selected/m-p/711199&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!! Kindly upvote if it does!!!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 09:57:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/multiselect-with-AND/m-p/748683#M58909</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2025-06-25T09:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: multiselect with AND</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/multiselect-with-AND/m-p/748685#M58910</link>
      <description>&lt;P&gt;well, im using splunk cloud so JS is not an option and&amp;nbsp; i've tries the second option but its not working&lt;BR /&gt;maybe something in the copy paste became wrong ?&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;      &amp;lt;input type="multiselect" token="categories"&amp;gt;
        &amp;lt;label&amp;gt;Categories&amp;lt;/label&amp;gt;
        &amp;lt;choice value="*"&amp;gt;ALL&amp;lt;/choice&amp;gt;
        &amp;lt;fieldForLabel&amp;gt;testCategories&amp;lt;/fieldForLabel&amp;gt;
        &amp;lt;fieldForValue&amp;gt;testCategories&amp;lt;/fieldForValue&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index="stg_observability_s" sourcetype=SplunkQuality earliest=$time.earliest$ latest=$time.latest$
| search AdditionalData.domain="$domain$"  AdditionalData.pipelineName="$pipelineName$" AdditionalData.buildId="$jobid$" AdditionalData.repoUrl="$repo$" 

| stats count by testCategories&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$time.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$time.latest$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
        &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
        &amp;lt;delimiter&amp;gt; AND &amp;lt;/delimiter&amp;gt;
        &amp;lt;valuePrefix&amp;gt;testCategories="&amp;lt;/valuePrefix&amp;gt;
        &amp;lt;valueSuffix&amp;gt;"&amp;lt;/valueSuffix&amp;gt;
        &amp;lt;change&amp;gt;
          &amp;lt;eval token="form.categories"&amp;gt;case(mvcount('form.categories')=0,"All",mvcount('form.categories')&amp;amp;gt;1 AND mvfind('form.categories',"All")&amp;amp;gt;0,"All",mvcount('form.categories')&amp;amp;gt;1 AND mvfind('form.categories',"All")=0,mvfilter('form.categories'!="All"),1==1,'form.categories')&amp;lt;/eval&amp;gt;
          &amp;lt;eval token="categories_choice"&amp;gt;if('form.categories'=="All","categories=\"*\"",'categories')&amp;lt;/eval&amp;gt;
        &amp;lt;/change&amp;gt;
      &amp;lt;/input&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 25 Jun 2025 10:03:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/multiselect-with-AND/m-p/748685#M58910</guid>
      <dc:creator>sarit_s6</dc:creator>
      <dc:date>2025-06-25T10:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: multiselect with AND</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/multiselect-with-AND/m-p/748697#M58913</link>
      <description>&lt;P&gt;It is not so much the copy paste, it is the value used for All, this needs to be "All" not "*" (similarly with the initialValue)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form version="1.1" theme="light"&amp;gt;
  &amp;lt;label&amp;gt;All handling&amp;lt;/label&amp;gt;
  &amp;lt;search id="base_search"&amp;gt;
    &amp;lt;query&amp;gt;| makeresults format=csv data="categories
A
B
C"
| table categories&amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
    &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="multiselect" token="categories"&amp;gt;
      &amp;lt;label&amp;gt;Categories&amp;lt;/label&amp;gt;
      &amp;lt;choice value="All"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;All&amp;lt;/default&amp;gt;
      &amp;lt;initialValue&amp;gt;All&amp;lt;/initialValue&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;categories&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;categories&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search base="base_search"&amp;gt;
        &amp;lt;query&amp;gt; |stats count by categories &amp;lt;/query&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;valuePrefix&amp;gt;testCategories="&amp;lt;/valuePrefix&amp;gt;
      &amp;lt;valueSuffix&amp;gt;"&amp;lt;/valueSuffix&amp;gt;
      &amp;lt;delimiter&amp;gt; AND &amp;lt;/delimiter&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;eval token="form.categories"&amp;gt;case(mvcount('form.categories')=0,"All",mvcount('form.categories')&amp;amp;gt;1 AND mvfind('form.categories',"All")&amp;amp;gt;0,"All",mvcount('form.categories')&amp;amp;gt;1 AND mvfind('form.categories',"All")=0,mvfilter('form.categories'!="All"),1==1,'form.categories')&amp;lt;/eval&amp;gt;
        &amp;lt;eval token="categories_choice"&amp;gt;if('form.categories'=="All","categories=\"*\"",'categories')&amp;lt;/eval&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        Categories:  $categories_choice$
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 25 Jun 2025 10:56:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/multiselect-with-AND/m-p/748697#M58913</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-06-25T10:56:02Z</dc:date>
    </item>
  </channel>
</rss>

