<?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 What query should I execute in the 2nd dropdown to not have value displayed in the 1st dropdown? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/What-query-should-I-execute-in-the-2nd-dropdown-to-not-have/m-p/438855#M76506</link>
    <description>&lt;P&gt;Input to splunk is a csv file which has column headers like 'Falcon 15.01.01.03.100', 'Falcon GA 15.01.02.06.1'.. (there are values present under each of these columns in rows). on dashboard, there are 2 dropdowns.&lt;BR /&gt;
Both the dropdowns should have values of these column header i.e. which has Falcon word in it. Only thing I want is, Value which is selected in 1st dropdown , should not be displayed in 2nd. Means if search returns 3 results, 1st dropdown should have 3 values in it and after selecting the one value from 1st dropdown.. second should have only 2 values in it.&lt;/P&gt;

&lt;P&gt;in 1st dropdown, M executing this query: input.csv|fieldsummary &lt;EM&gt;Falcon&lt;/EM&gt; | dedup field | table field &amp;gt;&amp;gt; returning me 3 results&lt;/P&gt;

&lt;P&gt;What query should I execute in 2nd dropdown for above mentioned scenario?&lt;/P&gt;

&lt;P&gt;Thanks in advance!!&lt;/P&gt;</description>
    <pubDate>Mon, 03 Sep 2018 11:09:45 GMT</pubDate>
    <dc:creator>gpayal18</dc:creator>
    <dc:date>2018-09-03T11:09:45Z</dc:date>
    <item>
      <title>What query should I execute in the 2nd dropdown to not have value displayed in the 1st dropdown?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-query-should-I-execute-in-the-2nd-dropdown-to-not-have/m-p/438855#M76506</link>
      <description>&lt;P&gt;Input to splunk is a csv file which has column headers like 'Falcon 15.01.01.03.100', 'Falcon GA 15.01.02.06.1'.. (there are values present under each of these columns in rows). on dashboard, there are 2 dropdowns.&lt;BR /&gt;
Both the dropdowns should have values of these column header i.e. which has Falcon word in it. Only thing I want is, Value which is selected in 1st dropdown , should not be displayed in 2nd. Means if search returns 3 results, 1st dropdown should have 3 values in it and after selecting the one value from 1st dropdown.. second should have only 2 values in it.&lt;/P&gt;

&lt;P&gt;in 1st dropdown, M executing this query: input.csv|fieldsummary &lt;EM&gt;Falcon&lt;/EM&gt; | dedup field | table field &amp;gt;&amp;gt; returning me 3 results&lt;/P&gt;

&lt;P&gt;What query should I execute in 2nd dropdown for above mentioned scenario?&lt;/P&gt;

&lt;P&gt;Thanks in advance!!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 11:09:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-query-should-I-execute-in-the-2nd-dropdown-to-not-have/m-p/438855#M76506</guid>
      <dc:creator>gpayal18</dc:creator>
      <dc:date>2018-09-03T11:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: What query should I execute in the 2nd dropdown to not have value displayed in the 1st dropdown?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-query-should-I-execute-in-the-2nd-dropdown-to-not-have/m-p/438856#M76507</link>
      <description>&lt;P&gt;@gpayal18 would you be able to share the code for your 2 drop downs? Based on the selected value in dropdown 1, you can add a search filter in the second dropdown. There is an example in &lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;Splunk Dashboard Examples&lt;/A&gt; App to create &lt;STRONG&gt;Cascaded Drilldowns&lt;/STRONG&gt; which you can refer.&lt;/P&gt;

&lt;P&gt;Following run anywhere example creates two inputs with same three dropdown values &lt;CODE&gt;field1&lt;/CODE&gt; and &lt;CODE&gt;field2&lt;/CODE&gt;. Value of &lt;CODE&gt;field1&lt;/CODE&gt; is used in field2 &lt;CODE&gt;| search values!="$field1$"&lt;/CODE&gt;. Additionally, &lt;CODE&gt;field2&lt;/CODE&gt; dropdown is hidden until &lt;CODE&gt;field1&lt;/CODE&gt; value is selected using depends attribute i.e. &lt;CODE&gt;depends="$field1$"&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;input type="dropdown" token="field1" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;field1&amp;lt;/label&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;fields&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;values&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;| makeresults
| fields - _*
| eval field1="value1", field2="value2", field3="value3"
| transpose column_name=fields
| rename "row 1" as values&amp;lt;/query&amp;gt;
      &amp;lt;/search&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="dropdown" token="field2" searchWhenChanged="true" depends="$field1$"&amp;gt;
      &amp;lt;label&amp;gt;field2&amp;lt;/label&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;fields&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;values&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;| makeresults
| fields - _*
| eval field1="value1", field2="value2", field3="value3"
| transpose column_name=fields
| rename "row 1" as values
| search values!="$field1$"&amp;lt;/query&amp;gt;
      &amp;lt;/search&amp;gt;
    &amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Sep 2018 03:17:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-query-should-I-execute-in-the-2nd-dropdown-to-not-have/m-p/438856#M76507</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-09-04T03:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: What query should I execute in the 2nd dropdown to not have value displayed in the 1st dropdown?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-query-should-I-execute-in-the-2nd-dropdown-to-not-have/m-p/438857#M76508</link>
      <description>&lt;P&gt;Code for 2 dropdowns: &lt;BR /&gt;
    &lt;INPUT type="dropdown" token="field1" /&gt;&lt;BR /&gt;
        &lt;LABEL&gt;Select 1st Build&lt;/LABEL&gt;&lt;BR /&gt;
        &lt;DEFAULT&gt;Falcon 15_01_01_03_100 _2017_05_23 12_00_00&lt;/DEFAULT&gt;&lt;BR /&gt;
        &lt;INITIALVALUE&gt;Falcon 15_01_01_03_100 _2017_05_23 12_00_00&lt;/INITIALVALUE&gt;&lt;BR /&gt;
        &lt;FIELDFORLABEL&gt;field&lt;/FIELDFORLABEL&gt;&lt;BR /&gt;
        &lt;FIELDFORVALUE&gt;field&lt;/FIELDFORVALUE&gt;&lt;BR /&gt;
        &lt;SEARCH&gt;&lt;BR /&gt;
          &lt;QUERY&gt;source="C:\1-VMS\Non-Production\Tools\Main\IntOps\Main\SambaManager\bin\Debug\Log\SPII_Falcon-Azure-FalconGA-csv.csv"| fieldsummary &lt;EM&gt;Falcon&lt;/EM&gt; | dedup field | table field&lt;/QUERY&gt;&lt;BR /&gt;
        &lt;/SEARCH&gt;&lt;BR /&gt;
      &lt;BR /&gt;
      &lt;INPUT type="dropdown" token="field2" /&gt;&lt;BR /&gt;
        &lt;LABEL&gt;Select 2nd Build&lt;/LABEL&gt;&lt;BR /&gt;
        &lt;FIELDFORLABEL&gt;server&lt;/FIELDFORLABEL&gt;&lt;BR /&gt;
        &lt;FIELDFORVALUE&gt;server&lt;/FIELDFORVALUE&gt;&lt;BR /&gt;
        &lt;SEARCH&gt;&lt;BR /&gt;
          &lt;QUERY&gt;&lt;/QUERY&gt;&lt;BR /&gt;
        &lt;/SEARCH&gt;&lt;BR /&gt;
      &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:06:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-query-should-I-execute-in-the-2nd-dropdown-to-not-have/m-p/438857#M76508</guid>
      <dc:creator>gpayal18</dc:creator>
      <dc:date>2020-09-29T21:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: What query should I execute in the 2nd dropdown to not have value displayed in the 1st dropdown?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-query-should-I-execute-in-the-2nd-dropdown-to-not-have/m-p/438858#M76509</link>
      <description>&lt;P&gt;Thanks a lot!! Adding this parameter 'search values!="$field1$"' worked.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 07:02:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-query-should-I-execute-in-the-2nd-dropdown-to-not-have/m-p/438858#M76509</guid>
      <dc:creator>gpayal18</dc:creator>
      <dc:date>2018-09-04T07:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: What query should I execute in the 2nd dropdown to not have value displayed in the 1st dropdown?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-query-should-I-execute-in-the-2nd-dropdown-to-not-have/m-p/438859#M76510</link>
      <description>&lt;P&gt;@gpayal18 glad it worked. While posting code/data on Splunk Answers make sure you use &lt;CODE&gt;Code button (101010) or Shortcut Ctrl+K&lt;/CODE&gt; after highlighting the code text. So that special characters do not escape!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 08:54:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-query-should-I-execute-in-the-2nd-dropdown-to-not-have/m-p/438859#M76510</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-09-04T08:54:21Z</dc:date>
    </item>
  </channel>
</rss>

