<?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: Connect multiselect to another multiselect in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-connect-multiselect-to-another-multiselect/m-p/648495#M53091</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/258137"&gt;@jtabilas&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;when you create an input, you have two choices in field definition:&amp;nbsp;you can put the field definition in the search or in the input itself.&lt;/P&gt;&lt;P&gt;You didn't defined the field both in the first input and in the second input search,&lt;/P&gt;&lt;P&gt;so, please, checking that the field to use is exactly called "city" also in the lookup, try the following search n the second input:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup categories
| search city="$city$" 
| fields category 
| dedup category&lt;/LI-CODE&gt;&lt;P&gt;Then, in general, assign a name to all tokens, also to the Time (you have "field1" for the time).&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jun 2023 09:48:38 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-06-28T09:48:38Z</dc:date>
    <item>
      <title>How do I connect multiselect to another multiselect?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-connect-multiselect-to-another-multiselect/m-p/648485#M53087</link>
      <description>&lt;P&gt;Hi guys, i want connect my multiselect City to multiselect Category. First i try with add token in the second multiselect (Category) but don't work :(. Any solutions?&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screen.png" style="width: 601px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26047iC93BAE1DAEAC59E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="screen.png" alt="screen.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 18:34:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-connect-multiselect-to-another-multiselect/m-p/648485#M53087</guid>
      <dc:creator>jtabilas</dc:creator>
      <dc:date>2023-06-28T18:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Connect multiselect to another multiselect</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-connect-multiselect-to-another-multiselect/m-p/648488#M53088</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/258137"&gt;@jtabilas&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;could you share your code as text (using the Inser/Edit Code Sample button)?&lt;/P&gt;&lt;P&gt;Anyway, in the search of the second multiselect, you have to insert the token of the first one.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 09:36:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-connect-multiselect-to-another-multiselect/m-p/648488#M53088</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-06-28T09:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Connect multiselect to another multiselect</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-connect-multiselect-to-another-multiselect/m-p/648493#M53090</link>
      <description>&lt;P&gt;so this is my solution&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;      &amp;lt;input type="multiselect" token="city" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;City&amp;lt;/label&amp;gt;
        &amp;lt;delimiter&amp;gt;,&amp;lt;/delimiter&amp;gt;
        &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
        &amp;lt;fieldForLabel&amp;gt;city&amp;lt;/fieldForLabel&amp;gt;
        &amp;lt;fieldForValue&amp;gt;city&amp;lt;/fieldForValue&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;source="*pubblico.json" index="google_reports" sourcetype="ga_json"  | fields city  | dedup city &amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$field1.latest$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
        &amp;lt;valuePrefix&amp;gt;"&amp;lt;/valuePrefix&amp;gt;
        &amp;lt;valueSuffix&amp;gt;"&amp;lt;/valueSuffix&amp;gt;
      &amp;lt;/input&amp;gt;
      &amp;lt;input type="multiselect" token="category2" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;Category&amp;lt;/label&amp;gt;
        &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
        &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
        &amp;lt;delimiter&amp;gt; ,&amp;lt;/delimiter&amp;gt;
        &amp;lt;fieldForLabel&amp;gt;category&amp;lt;/fieldForLabel&amp;gt;
        &amp;lt;fieldForValue&amp;gt;category&amp;lt;/fieldForValue&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| inputlookup categories| search $city$ | fields category |  dedup category&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$field1.latest$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;valuePrefix&amp;gt;"&amp;lt;/valuePrefix&amp;gt;
        &amp;lt;valueSuffix&amp;gt;"&amp;lt;/valueSuffix&amp;gt;
      &amp;lt;/input&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 28 Jun 2023 09:40:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-connect-multiselect-to-another-multiselect/m-p/648493#M53090</guid>
      <dc:creator>jtabilas</dc:creator>
      <dc:date>2023-06-28T09:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Connect multiselect to another multiselect</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-connect-multiselect-to-another-multiselect/m-p/648495#M53091</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/258137"&gt;@jtabilas&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;when you create an input, you have two choices in field definition:&amp;nbsp;you can put the field definition in the search or in the input itself.&lt;/P&gt;&lt;P&gt;You didn't defined the field both in the first input and in the second input search,&lt;/P&gt;&lt;P&gt;so, please, checking that the field to use is exactly called "city" also in the lookup, try the following search n the second input:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup categories
| search city="$city$" 
| fields category 
| dedup category&lt;/LI-CODE&gt;&lt;P&gt;Then, in general, assign a name to all tokens, also to the Time (you have "field1" for the time).&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 09:48:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-connect-multiselect-to-another-multiselect/m-p/648495#M53091</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-06-28T09:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Connect multiselect to another multiselect</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-connect-multiselect-to-another-multiselect/m-p/648499#M53092</link>
      <description>&lt;P&gt;Hi, thank you. But what do you mean "&lt;SPAN&gt;You didn't defined the field both"?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 10:21:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-connect-multiselect-to-another-multiselect/m-p/648499#M53092</guid>
      <dc:creator>jtabilas</dc:creator>
      <dc:date>2023-06-28T10:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Connect multiselect to another multiselect</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-connect-multiselect-to-another-multiselect/m-p/648501#M53093</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/258137"&gt;@jtabilas&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you need to configure the condition "city=$city$".&lt;/P&gt;&lt;P&gt;You can do this in the first input or in the second, but you didn't configured it in the first input&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;prefix&amp;gt;city="&amp;lt;/prefix&amp;gt;
&amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;and neither in the second input search:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;city="$city$"&lt;/LI-CODE&gt;&lt;P&gt;using only&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;search $city$&lt;/LI-CODE&gt;&lt;P&gt;as in your search, you don't correctly address you search terms.&lt;/P&gt;&lt;P&gt;So, if you want to maintain the condition you used in the second input search, you have to add prefix and suffix to your first input.&lt;/P&gt;&lt;P&gt;In other words:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;input type="multiselect" token="city" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;City&amp;lt;/label&amp;gt;
        &amp;lt;delimiter&amp;gt;,&amp;lt;/delimiter&amp;gt;
        &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
        &amp;lt;fieldForLabel&amp;gt;city&amp;lt;/fieldForLabel&amp;gt;
        &amp;lt;fieldForValue&amp;gt;city&amp;lt;/fieldForValue&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;
             index="google_reports" sourcetype="ga_json" source="*pubblico.json" 
            | fields city 
            | dedup city 
          &amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$field1.latest$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
        &amp;lt;prefix&amp;gt;city="&amp;lt;/prefix&amp;gt;
        &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
      &amp;lt;/input&amp;gt;
      &amp;lt;input type="multiselect" token="category2" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;Category&amp;lt;/label&amp;gt;
        &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
        &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
        &amp;lt;delimiter&amp;gt; ,&amp;lt;/delimiter&amp;gt;
        &amp;lt;fieldForLabel&amp;gt;category&amp;lt;/fieldForLabel&amp;gt;
        &amp;lt;fieldForValue&amp;gt;category&amp;lt;/fieldForValue&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;
             | inputlookup categories WHERE $city$ 
             | fields category 
             |  dedup category
          &amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$field1.latest$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;valuePrefix&amp;gt;"&amp;lt;/valuePrefix&amp;gt;
        &amp;lt;valueSuffix&amp;gt;"&amp;lt;/valueSuffix&amp;gt;
      &amp;lt;/input&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 10:38:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-connect-multiselect-to-another-multiselect/m-p/648501#M53093</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-06-28T10:38:27Z</dc:date>
    </item>
  </channel>
</rss>

