<?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: if then else dashboard help in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/if-then-else-dashboard-help/m-p/697199#M57154</link>
    <description>&lt;P&gt;Your issue may be to do with what you do if the user has not selected a value for either token. A dashboard would normal wait for the user to make a selection. Handling tokens is easier in Classic SimpleXML dashboards than currently available in Studio. Is this an option for you?&lt;/P&gt;</description>
    <pubDate>Sat, 24 Aug 2024 08:39:50 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-08-24T08:39:50Z</dc:date>
    <item>
      <title>if then else dashboard help</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/if-then-else-dashboard-help/m-p/697193#M57151</link>
      <description>&lt;P&gt;I'm very new to Splunk.&amp;nbsp;&amp;nbsp;I have two tokens as input to a dashboard and want to change a query based on which one is entered.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My base query (with no dashboard)&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;eventtype=builder user_id IN (&amp;lt;value1&amp;gt;, &amp;lt;value2&amp;gt;, etc.) | eval .....&lt;/LI-CODE&gt;
&lt;P&gt;I created a dashboard and want to use tokens for the input.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;token1=$id$
token2=$email$&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;If the token1 has data, I want to execute&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;eventtype=builder user_id IN ($id$) | eval....&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;otherwise, I want to execute&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;eventtype=builder user_mail in $email$ | eval .....&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Aug 2024 15:46:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/if-then-else-dashboard-help/m-p/697193#M57151</guid>
      <dc:creator>sgro777</dc:creator>
      <dc:date>2024-08-24T15:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: if then else dashboard help</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/if-then-else-dashboard-help/m-p/697196#M57152</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/271475"&gt;@sgro777&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;did you tried with:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;eventtype=builder (user_id IN ($id$) OR user_mail in $email$)
| eval .....&lt;/LI-CODE&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 24 Aug 2024 05:23:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/if-then-else-dashboard-help/m-p/697196#M57152</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-08-24T05:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: if then else dashboard help</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/if-then-else-dashboard-help/m-p/697199#M57154</link>
      <description>&lt;P&gt;Your issue may be to do with what you do if the user has not selected a value for either token. A dashboard would normal wait for the user to make a selection. Handling tokens is easier in Classic SimpleXML dashboards than currently available in Studio. Is this an option for you?&lt;/P&gt;</description>
      <pubDate>Sat, 24 Aug 2024 08:39:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/if-then-else-dashboard-help/m-p/697199#M57154</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-08-24T08:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: if then else dashboard help</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/if-then-else-dashboard-help/m-p/697513#M57172</link>
      <description>&lt;P&gt;I tried this but&amp;nbsp;it would not work.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;eventtype=builder (user_id IN ($id$) OR user_mail in $email$)
| eval .....&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried eventtype=builder ((user_id IN ($id$) OR (user_mail IN ($email$))) | eval ... but that only works if both tokens are populated.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 19:00:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/if-then-else-dashboard-help/m-p/697513#M57172</guid>
      <dc:creator>sgro777</dc:creator>
      <dc:date>2024-08-27T19:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: if then else dashboard help</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/if-then-else-dashboard-help/m-p/697514#M57173</link>
      <description>&lt;P&gt;If I can't figure it out, I'll try the simple dashboard.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 19:03:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/if-then-else-dashboard-help/m-p/697514#M57173</guid>
      <dc:creator>sgro777</dc:creator>
      <dc:date>2024-08-27T19:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: if then else dashboard help</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/if-then-else-dashboard-help/m-p/697545#M57177</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/271475"&gt;@sgro777&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;sorry, my error, please try:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;eventtype=builder (user_id IN ($id$) OR user_mail IN ($email$))
| eval ...&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 06:17:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/if-then-else-dashboard-help/m-p/697545#M57177</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-08-28T06:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: if then else dashboard help</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/if-then-else-dashboard-help/m-p/697845#M57207</link>
      <description>&lt;P&gt;THANK YOU!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 16:31:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/if-then-else-dashboard-help/m-p/697845#M57207</guid>
      <dc:creator>sgro777</dc:creator>
      <dc:date>2024-08-30T16:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: if then else dashboard help</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/if-then-else-dashboard-help/m-p/697943#M57219</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/271475"&gt;@sgro777&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the Contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 07:49:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/if-then-else-dashboard-help/m-p/697943#M57219</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-09-02T07:49:14Z</dc:date>
    </item>
  </channel>
</rss>

