<?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: How to group values with similar pattern into the choices in a dropdown in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-group-values-with-similar-pattern-into-the-choices-in-a/m-p/625858#M51304</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Thanks for your reply,&amp;nbsp; I don't know why but it shows 0 result for me.&lt;/P&gt;&lt;P&gt;However I find this works:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|inputlookup address.csv 
|eval site=case(like(address,"%Washington%"), "Washington", like(address,"%California%"), "California",1=1,"No")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jan 2023 15:57:43 GMT</pubDate>
    <dc:creator>Julia1231</dc:creator>
    <dc:date>2023-01-04T15:57:43Z</dc:date>
    <item>
      <title>How to group values with similar pattern into the choices in a dropdown?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-group-values-with-similar-pattern-into-the-choices-in-a/m-p/625816#M51300</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm searching a way to create a dropdown in Dashboard, in which the values in the dropdown is grouped.&lt;/P&gt;
&lt;P&gt;For example with the table below, I want to have a dropdown with 2 values called "Site": Washington, California. Then later in the statistic table, it will list IDs according to the "Site"&lt;/P&gt;
&lt;TABLE border="1" width="408px" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="307.219px"&gt;Address&lt;/TD&gt;
&lt;TD width="99.7812px"&gt;ID&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="307.219px"&gt;1 Microsoft Way, Redmond, Washington&lt;/TD&gt;
&lt;TD width="99.7812px"&gt;132&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="307.219px"&gt;15 Microsoft Way, Redmond, Washington&lt;/TD&gt;
&lt;TD width="99.7812px"&gt;456&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="307.219px"&gt;10 Microsoft Way, Redmond, Washington&lt;/TD&gt;
&lt;TD width="99.7812px"&gt;789&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="307.219px"&gt;1 Infinite Loop, Cupertino, California&lt;/TD&gt;
&lt;TD width="99.7812px"&gt;111&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="307.219px"&gt;2 Infinite Loop, Cupertino, California&lt;/TD&gt;
&lt;TD width="99.7812px"&gt;222&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="307.219px"&gt;3 Infinite Loop, Cupertino, California&lt;/TD&gt;
&lt;TD width="99.7812px"&gt;489&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;I imagine to have a list of label in the dropdown, then search for the values correspond with each lable:&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="dropdown" token="site" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Site&amp;lt;/label&amp;gt;
      &amp;lt;choice value="Washington"&amp;gt;Washington&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="California"&amp;gt;California&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
    &amp;lt;/input&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;LI-CODE lang="markup"&gt;|inputlookup address.csv
|where like(Address,"%Washington%")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But&amp;nbsp; I don't know how to put it together to work.&lt;/P&gt;
&lt;P&gt;Do you have an idea how it can work or another idea, please?&lt;/P&gt;
&lt;P&gt;Thanks in advanced!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 16:19:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-group-values-with-similar-pattern-into-the-choices-in-a/m-p/625816#M51300</guid>
      <dc:creator>Julia1231</dc:creator>
      <dc:date>2023-01-04T16:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to group values with similar pattern into the choices in a dropdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-group-values-with-similar-pattern-into-the-choices-in-a/m-p/625822#M51301</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|inputlookup address.csv
|where match(Address,$site$)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 14:34:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-group-values-with-similar-pattern-into-the-choices-in-a/m-p/625822#M51301</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-01-04T14:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to group values with similar pattern into the choices in a dropdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-group-values-with-similar-pattern-into-the-choices-in-a/m-p/625858#M51304</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Thanks for your reply,&amp;nbsp; I don't know why but it shows 0 result for me.&lt;/P&gt;&lt;P&gt;However I find this works:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|inputlookup address.csv 
|eval site=case(like(address,"%Washington%"), "Washington", like(address,"%California%"), "California",1=1,"No")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 15:57:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-group-values-with-similar-pattern-into-the-choices-in-a/m-p/625858#M51304</guid>
      <dc:creator>Julia1231</dc:creator>
      <dc:date>2023-01-04T15:57:43Z</dc:date>
    </item>
  </channel>
</rss>

