<?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 Re: Using 2 RADIOBUTTONS and using them in the query in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552760#M38297</link>
    <description>&lt;LI-CODE lang="markup"&gt;    &amp;lt;input type="radio" token="radioB" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Present in AB&amp;lt;/label&amp;gt;
      &amp;lt;choice value="Yes"&amp;gt;Yes&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="No"&amp;gt;No&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;Yes&amp;lt;/default&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition value="Yes"&amp;gt;
          &amp;lt;set token="joinB"&amp;gt;| join common_column type=outer [| search index= B]&amp;lt;/set&amp;gt;
          &amp;lt;set token="whereB"&amp;gt;check_column_value="BBBBBBBBBBB"&amp;lt;/set&amp;gt;
          &amp;lt;set token="whereNotB"&amp;gt;&amp;lt;/set&amp;gt;
          &amp;lt;eval token="whereBC"&amp;gt;if($whereC$="","| where ".$whereB$." AND ".$whereNotC$,"| where ".$whereB$." OR ".$whereC$)&amp;lt;/eval&amp;gt;
          &amp;lt;set token="mysearch"&amp;gt;
index=a   .....................
$joinB$
$joinC$
$whereBC$
| table list of columns
          &amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition value="No"&amp;gt;
          &amp;lt;set token="joinB"&amp;gt;| join common_column type=outer [| search index= B]&amp;lt;/set&amp;gt;
          &amp;lt;set token="whereB"&amp;gt;&amp;lt;/set&amp;gt;
          &amp;lt;set token="whereNotB"&amp;gt;check_column_value!="BBBBBBBBBBB"&amp;lt;/set&amp;gt;
          &amp;lt;eval token="whereBC"&amp;gt;if($whereC$="","| where ".$whereNotB$." AND ".$whereNotC$,"| where ".$whereNotB$." AND ".$whereC$)&amp;lt;/eval&amp;gt;
          &amp;lt;set token="mysearch"&amp;gt;
index=a   .....................
$joinB$
$joinC$
$whereBC$
| table list of columns
          &amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="radio" token="radioC" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Present in AC&amp;lt;/label&amp;gt;
      &amp;lt;choice value="Yes"&amp;gt;Yes&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="No"&amp;gt;No&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;Yes&amp;lt;/default&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition value="Yes"&amp;gt;
          &amp;lt;set token="joinC"&amp;gt;| join common_column type=outer [| search index= C]&amp;lt;/set&amp;gt;
          &amp;lt;set token="whereC"&amp;gt;check_column_value="CCCCCCCCCCCC"&amp;lt;/set&amp;gt;
          &amp;lt;set token="whereNotC"&amp;gt;&amp;lt;/set&amp;gt;
          &amp;lt;eval token="whereBC"&amp;gt;if($whereB$="","| where ".$whereNotB$." AND ".$whereC$,"| where ".$whereB$." OR ".$whereC$)&amp;lt;/eval&amp;gt;
          &amp;lt;set token="mysearch"&amp;gt;
index=a   .....................
$joinB$
$joinC$
$whereBC$
| table list of columns
          &amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition value="No"&amp;gt;
          &amp;lt;set token="joinC"&amp;gt;| join common_column type=outer [| search index= C]&amp;lt;/set&amp;gt;
          &amp;lt;set token="whereC"&amp;gt;&amp;lt;/set&amp;gt;
          &amp;lt;set token="whereNotC"&amp;gt;check_column_value!="CCCCCCCCCCCC"&amp;lt;/set&amp;gt;
          &amp;lt;eval token="whereBC"&amp;gt;if($whereB$="","| where ".$whereNotB$." AND ".$whereNotC$,"| where ".$whereB$." AND ".$whereNotC$)&amp;lt;/eval&amp;gt;
          &amp;lt;set token="mysearch"&amp;gt;
index=a   .....................
$joinB$
$joinC$
$whereBC$
| table list of columns
          &amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;html&amp;gt;
      &amp;lt;pre&amp;gt;$mysearch$&amp;lt;/pre&amp;gt;
    &amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 24 May 2021 11:49:31 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-05-24T11:49:31Z</dc:date>
    <item>
      <title>Using 2 RADIOBUTTONS and using them in the query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552176#M38214</link>
      <description>&lt;P&gt;I'm having 3 indexes A(SUPER-SET),&amp;nbsp; B(SUBSET-1),&amp;nbsp; C(SUBSET-2).&lt;/P&gt;&lt;P&gt;I'm having 2 radio button groups: Group1 and Group2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Group1 has 2 options: YES and NO&lt;/P&gt;&lt;P&gt;When "YES" is selected then it performs A intersection B and "NO" does not perform any search.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Group2 has 2 options: YES and NO&lt;/P&gt;&lt;P&gt;When "YES" is selected then it performs A intersection C "NO" does not perform any search.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having the following SOURCE CODE for it :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;      &amp;lt;input type="radio" token="field1" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;Present in AB&amp;lt;/label&amp;gt;
        &amp;lt;choice value="Yes"&amp;gt;Yes&amp;lt;/choice&amp;gt;
        &amp;lt;choice value="No"&amp;gt;No&amp;lt;/choice&amp;gt;
        &amp;lt;change&amp;gt;
          &amp;lt;condition value="Yes"&amp;gt;
            &amp;lt;set token="mysearch"&amp;gt;
                index=a   .....................
                | join &amp;lt;common_column&amp;gt; type=outer [| search index= B]
                | where check_column_value="BBBBBBBBBBB"
                | table &amp;lt;list of columns&amp;gt;
            &amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition value="No"&amp;gt;
            &amp;lt;set token="mysearch"&amp;gt;&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
        &amp;lt;/change&amp;gt;
      &amp;lt;/input&amp;gt;




      &amp;lt;input type="radio" token="field2" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;Present in AC&amp;lt;/label&amp;gt;
        &amp;lt;choice value="Yes"&amp;gt;Yes&amp;lt;/choice&amp;gt;
        &amp;lt;choice value="No"&amp;gt;No&amp;lt;/choice&amp;gt;
        &amp;lt;change&amp;gt;
          &amp;lt;condition value="Yes"&amp;gt;
            &amp;lt;set token="mysearch"&amp;gt;
                index=a   .....................
                | join &amp;lt;common_column&amp;gt; type=outer [| search index= C]
                | where check_column_value="CCCCCCCCCCCC"
                | table &amp;lt;list of columns&amp;gt;
            &amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition value="No"&amp;gt;
            &amp;lt;set token="mysearch"&amp;gt;&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
        &amp;lt;/change&amp;gt;
      &amp;lt;/input&amp;gt;




      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;$mysearch$&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
      &amp;lt;/table&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i click on YES buttons for the two groups :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abhinav_aashish_0-1621419891211.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14219i5BB3353870E42235/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abhinav_aashish_0-1621419891211.png" alt="abhinav_aashish_0-1621419891211.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I select both the YES options the result I get is from the index which is last selected as YES option only, i.e. in any case i'm not getting the result from both the sources even after selecting "YES" option.&lt;/P&gt;&lt;P&gt;I feel there is some issue with the token value in the last part of the code shared above.(Not sure!!)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me with this please?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 10:32:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552176#M38214</guid>
      <dc:creator>abhinav_aashish</dc:creator>
      <dc:date>2021-05-19T10:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2 RADIOBUTTONS and using them in the query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552178#M38215</link>
      <description>&lt;P&gt;You haven't defined what both set to yes means - Why not have one group with 3, or 4 or 5 values, A, A intersect B, A intersect C, A intersect (B intersect C), A intersect (B union C)? That way you can define your searches exactly as you would like for each case.&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 10:47:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552178#M38215</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-19T10:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2 RADIOBUTTONS and using them in the query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552179#M38216</link>
      <description>&lt;P&gt;Sorry. I'm unable to get this.&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 10:49:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552179#M38216</guid>
      <dc:creator>abhinav_aashish</dc:creator>
      <dc:date>2021-05-19T10:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2 RADIOBUTTONS and using them in the query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552182#M38217</link>
      <description>&lt;P&gt;B is a subset of A, C is a different subset of A. Do these subsets overlap? When you select Yes from both radio button groups, do you want to search for those in A and (B or C), or those in A and (B and C). These are potentially two different things.&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 10:54:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552182#M38217</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-19T10:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2 RADIOBUTTONS and using them in the query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552183#M38218</link>
      <description>&lt;P&gt;Yes these two subsets overlap.&lt;/P&gt;&lt;P&gt;I want to get the field values from index=A when YES is selected as per match condition.&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 11:00:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552183#M38218</guid>
      <dc:creator>abhinav_aashish</dc:creator>
      <dc:date>2021-05-19T11:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2 RADIOBUTTONS and using them in the query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552189#M38219</link>
      <description>&lt;P&gt;That still doesn't answer the question - what do you want when both yes boxes are selected? If the check column is different as returned by the joins&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="15.77117572692794%"&gt;Join field&lt;/TD&gt;&lt;TD width="21.207332490518333%"&gt;Field match from B&lt;/TD&gt;&lt;TD width="22.21871049304678%"&gt;Field match from C&lt;/TD&gt;&lt;TD width="18.062579013906447%"&gt;Keep B or C&lt;/TD&gt;&lt;TD width="22.740202275600506%"&gt;Keep B and C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="15.77117572692794%"&gt;A&lt;/TD&gt;&lt;TD width="21.207332490518333%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="22.21871049304678%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="18.062579013906447%"&gt;N&lt;/TD&gt;&lt;TD width="22.740202275600506%"&gt;N&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="15.77117572692794%"&gt;A&lt;/TD&gt;&lt;TD width="21.207332490518333%"&gt;BBBBBBBBBBB&lt;/TD&gt;&lt;TD width="22.21871049304678%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="18.062579013906447%"&gt;Y&lt;/TD&gt;&lt;TD width="22.740202275600506%"&gt;N&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="15.77117572692794%"&gt;A&lt;/TD&gt;&lt;TD width="21.207332490518333%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="22.21871049304678%"&gt;CCCCCCCCCCCC&lt;/TD&gt;&lt;TD width="18.062579013906447%"&gt;Y&lt;/TD&gt;&lt;TD width="22.740202275600506%"&gt;N&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="15.77117572692794%"&gt;A&lt;/TD&gt;&lt;TD width="21.207332490518333%"&gt;BBBBBBBBBBB&lt;/TD&gt;&lt;TD width="22.21871049304678%"&gt;CCCCCCCCCCCC&lt;/TD&gt;&lt;TD width="18.062579013906447%"&gt;Y&lt;/TD&gt;&lt;TD width="22.740202275600506%"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;If these columns are the same (as possibly indicated in your example) then when both boxes are yes, your search might be something like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=a   .....................
| join &amp;lt;common_column&amp;gt; type=outer [| search index= B]
| join &amp;lt;common_column&amp;gt; type=outer [| search index= C]
| where check_column_value="BBBBBBBBBBB" OR check_column_value="CCCCCCCCCCCC"
| table &amp;lt;list of columns&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 11:31:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552189#M38219</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-19T11:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2 RADIOBUTTONS and using them in the query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552310#M38231</link>
      <description>&lt;P&gt;I want this in the output&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="15.77117572692794%"&gt;A&lt;/TD&gt;&lt;TD width="21.207332490518333%"&gt;BBBBBBBBBBB&lt;/TD&gt;&lt;TD width="22.21871049304678%"&gt;CCCCCCCCCCCC&lt;/TD&gt;&lt;TD width="18.062579013906447%"&gt;Y&lt;/TD&gt;&lt;TD width="22.740202275600506%"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 20 May 2021 05:02:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552310#M38231</guid>
      <dc:creator>abhinav_aashish</dc:creator>
      <dc:date>2021-05-20T05:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2 RADIOBUTTONS and using them in the query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552321#M38232</link>
      <description>&lt;P&gt;You haven't understood the question. I was asking if you wanted "Keep B or C" or "Keep B and C". Nor have you clarified whether check_column_value is the same field in both B and C. Having said that, if you want to use the settings from both radio button groups, you could do something like this to set the mysearch token appropriately:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;input type="radio" token="radioB" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Present in AB&amp;lt;/label&amp;gt;
      &amp;lt;choice value="Yes"&amp;gt;Yes&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="No"&amp;gt;No&amp;lt;/choice&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition value="Yes"&amp;gt;
          &amp;lt;set token="joinB"&amp;gt;| join common_column type=outer [| search index= B]&amp;lt;/set&amp;gt;
          &amp;lt;set token="whereB"&amp;gt;check_column_value="BBBBBBBBBBB"&amp;lt;/set&amp;gt;
          &amp;lt;eval token="whereBC"&amp;gt;if($whereC$="","| where ".$whereB$,"| where ".$whereB$." OR ".$whereC$)&amp;lt;/eval&amp;gt;
          &amp;lt;set token="mysearch"&amp;gt;
index=a   .....................
$joinB$
$joinC$
$whereBC$
| table list of columns
          &amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition value="No"&amp;gt;
          &amp;lt;set token="joinB"&amp;gt;&amp;lt;/set&amp;gt;
          &amp;lt;set token="whereB"&amp;gt;&amp;lt;/set&amp;gt;
          &amp;lt;eval token="whereBC"&amp;gt;if($whereC$="","","| where ".$whereC$)&amp;lt;/eval&amp;gt;
          &amp;lt;set token="mysearch"&amp;gt;
index=a   .....................
$joinB$
$joinC$
$whereBC$
| table list of columns
          &amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="radio" token="radioC" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Present in AC&amp;lt;/label&amp;gt;
      &amp;lt;choice value="Yes"&amp;gt;Yes&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="No"&amp;gt;No&amp;lt;/choice&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition value="Yes"&amp;gt;
          &amp;lt;set token="joinC"&amp;gt;| join common_column type=outer [| search index= C]&amp;lt;/set&amp;gt;
          &amp;lt;set token="whereC"&amp;gt;check_column_value="CCCCCCCCCCCC"&amp;lt;/set&amp;gt;
          &amp;lt;eval token="whereBC"&amp;gt;if($whereB$="","| where ".$whereC$,"| where ".$whereB$." OR ".$whereC$)&amp;lt;/eval&amp;gt;
          &amp;lt;set token="mysearch"&amp;gt;
index=a   .....................
$joinB$
$joinC$
$whereBC$
| table list of columns
          &amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition value="No"&amp;gt;
          &amp;lt;set token="joinC"&amp;gt;&amp;lt;/set&amp;gt;
          &amp;lt;set token="whereC"&amp;gt;&amp;lt;/set&amp;gt;
          &amp;lt;eval token="whereBC"&amp;gt;if($whereB$="","","| where ".$whereB$)&amp;lt;/eval&amp;gt;
          &amp;lt;set token="mysearch"&amp;gt;
index=a   .....................
$joinB$
$joinC$
$whereBC$
| table list of columns
          &amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;html&amp;gt;
      &amp;lt;pre&amp;gt;$mysearch$&amp;lt;/pre&amp;gt;
    &amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 20 May 2021 06:24:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552321#M38232</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-20T06:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2 RADIOBUTTONS and using them in the query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552375#M38240</link>
      <description>&lt;P&gt;I implemented your code but when I select YES in bot the radio button groups I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt; Error in 'where' command: The expression is malformed. An 'OR' term is missing. &lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 20 May 2021 11:40:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552375#M38240</guid>
      <dc:creator>abhinav_aashish</dc:creator>
      <dc:date>2021-05-20T11:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2 RADIOBUTTONS and using them in the query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552376#M38241</link>
      <description>&lt;P&gt;Can you share what you implemented?&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 11:44:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552376#M38241</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-20T11:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2 RADIOBUTTONS and using them in the query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552378#M38242</link>
      <description>&lt;P&gt;I cant share those details. I implemented exactly the same as you wrote above.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 11:46:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552378#M38242</guid>
      <dc:creator>abhinav_aashish</dc:creator>
      <dc:date>2021-05-20T11:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2 RADIOBUTTONS and using them in the query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552381#M38243</link>
      <description>&lt;P&gt;OK try setting a default for both radio button groups&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 11:56:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552381#M38243</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-20T11:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2 RADIOBUTTONS and using them in the query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552384#M38245</link>
      <description>&lt;P&gt;Not working.&lt;/P&gt;&lt;P&gt;&amp;lt;default&amp;gt;Yes&amp;lt;/default&amp;gt;&lt;BR /&gt;&lt;BR /&gt;The combination on Yes(g1) and No(g2) and vice-versa works.&lt;/P&gt;&lt;P&gt;Also No(g1) and No(g2) works fine.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;i want the result I clarified&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="15.77117572692794%"&gt;Join field&lt;/TD&gt;&lt;TD width="21.207332490518333%"&gt;Field match from B&lt;/TD&gt;&lt;TD width="22.21871049304678%"&gt;Field match from C&lt;/TD&gt;&lt;TD width="18.062579013906447%"&gt;Keep B or C&lt;/TD&gt;&lt;TD width="22.740202275600506%"&gt;&lt;P&gt;Keep B and C&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="15.77117572692794%"&gt;A&lt;/TD&gt;&lt;TD width="21.207332490518333%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="22.21871049304678%"&gt;CCCCCCCCCCCC&lt;/TD&gt;&lt;TD width="18.062579013906447%"&gt;Y&lt;/TD&gt;&lt;TD width="22.740202275600506%"&gt;N&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sorry for too many edits.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 12:24:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552384#M38245</guid>
      <dc:creator>abhinav_aashish</dc:creator>
      <dc:date>2021-05-20T12:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2 RADIOBUTTONS and using them in the query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552385#M38246</link>
      <description>&lt;P&gt;Please carefully check for any typos / mis-copies of code as this works for me - this is what is generated for me&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=a   .....................
| join common_column type=outer [| search index= B]
| join common_column type=outer [| search index= C]
| where check_column_value="BBBBBBBBBBB" OR check_column_value="CCCCCCCCCCCC"
| table list of columns&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 20 May 2021 12:21:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552385#M38246</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-20T12:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2 RADIOBUTTONS and using them in the query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552386#M38247</link>
      <description>&lt;P&gt;My code works properly when done without the use of radio buttons and I've applied the same logic.&lt;BR /&gt;&lt;BR /&gt;I'm facing the issue with the use of 2 radio button groups.&lt;BR /&gt;&lt;BR /&gt;Also I wanted the result this way:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="15.77117572692794%"&gt;Join field&lt;/TD&gt;&lt;TD width="21.207332490518333%"&gt;Field match from B&lt;/TD&gt;&lt;TD width="22.21871049304678%"&gt;Field match from C&lt;/TD&gt;&lt;TD width="18.062579013906447%"&gt;Keep B or C&lt;/TD&gt;&lt;TD width="22.740202275600506%"&gt;&lt;P&gt;Keep B and C&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="15.77117572692794%"&gt;A&lt;/TD&gt;&lt;TD width="21.207332490518333%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="22.21871049304678%"&gt;CCCCCCCCCCCC&lt;/TD&gt;&lt;TD width="18.062579013906447%"&gt;Y&lt;/TD&gt;&lt;TD width="22.740202275600506%"&gt;N&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 20 May 2021 12:33:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552386#M38247</guid>
      <dc:creator>abhinav_aashish</dc:creator>
      <dc:date>2021-05-20T12:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2 RADIOBUTTONS and using them in the query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552390#M38249</link>
      <description>&lt;P&gt;I suggest you temporarily add an html panel as I showed so you can see what they search expands to and see if you can spot what might be wrong with it. Or perhaps even copy it to the search and try and debug it there.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 13:02:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552390#M38249</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-20T13:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2 RADIOBUTTONS and using them in the query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552490#M38258</link>
      <description>&lt;P&gt;Thanks man it worked.&lt;/P&gt;&lt;P&gt;Instead of this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;set token="whereB"&amp;gt;check_column_value="BBBBBBBBBBB"&amp;lt;/set&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was doing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;set token="whereB"&amp;gt;| where check_column_value="BBBBBBBBBBB"&amp;lt;/set&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This "| where" thing here was creating issues.&lt;BR /&gt;&lt;BR /&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 05:38:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552490#M38258</guid>
      <dc:creator>abhinav_aashish</dc:creator>
      <dc:date>2021-05-21T05:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2 RADIOBUTTONS and using them in the query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552719#M38289</link>
      <description>&lt;P&gt;There are some changes in the ask.&lt;BR /&gt;&lt;BR /&gt;When I select "NO" from group-1 it should omit the rows from B index and similarly for group-2 it should omit the rows from C index when I select "NO".&lt;/P&gt;&lt;P&gt;And when "NO " is selected from both the groups it should return the rows from A which are not present in both B and C.&lt;BR /&gt;&lt;BR /&gt;I tried few things by adding in the&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;condition value="No"&amp;gt;
          &amp;lt;set token="joinB"&amp;gt;| join common_column type=outer [| search index= B]&amp;lt;/set&amp;gt;
          &amp;lt;set token="whereB"&amp;gt;check_column_value !="BBBBBBBBBBB"&amp;lt;/set&amp;gt;
          &amp;lt;eval token="whereBC"&amp;gt;if($whereC$="","| where ".$whereB$,"| where ".$whereB$." OR ".$whereC$)&amp;lt;/eval&amp;gt;
          &amp;lt;set token="mysearch"&amp;gt;
index=a   .....................
$joinB$
$joinC$
$whereBC$
| table list of columns
          &amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;for both the button groups but I wasn't getting satisfactory results.&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 08:17:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552719#M38289</guid>
      <dc:creator>abhinav_aashish</dc:creator>
      <dc:date>2021-05-24T08:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2 RADIOBUTTONS and using them in the query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552729#M38293</link>
      <description>&lt;P&gt;I think the OR should probably be AND for the No change handlers, i.e. check_column_value != "BBB" AND check_column_value = "CCC" if yes was chosen for C, or check_column_value != "BBB" AND check_column_value != "CCC" if no was chosen for C. Similarly for the C change handler.&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 09:23:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552729#M38293</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-24T09:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2 RADIOBUTTONS and using them in the query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552732#M38294</link>
      <description>&lt;P&gt;Wont the above code return the fields from A as well when YES is selected?&lt;BR /&gt;&lt;BR /&gt;The NO and NO works fine now but the YES-NO combinations does not give correct result.&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 09:43:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-2-RADIOBUTTONS-and-using-them-in-the-query/m-p/552732#M38294</guid>
      <dc:creator>abhinav_aashish</dc:creator>
      <dc:date>2021-05-24T09:43:36Z</dc:date>
    </item>
  </channel>
</rss>

