<?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 Sum with multivalue token in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Sum-with-multivalue-token/m-p/576147#M47210</link>
    <description>&lt;P&gt;How to sum the values of a multivalue token in Simple XML?&lt;/P&gt;&lt;P&gt;Let's say you have a mv token named test1 with values of: 1,2,3&lt;/P&gt;&lt;P&gt;How to achieve something like:&lt;BR /&gt;&amp;lt;eval token="test2"&amp;gt;sum($test1$)&amp;lt;/eval&amp;gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 24 Nov 2021 08:36:17 GMT</pubDate>
    <dc:creator>Shaft</dc:creator>
    <dc:date>2021-11-24T08:36:17Z</dc:date>
    <item>
      <title>Sum with multivalue token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Sum-with-multivalue-token/m-p/576147#M47210</link>
      <description>&lt;P&gt;How to sum the values of a multivalue token in Simple XML?&lt;/P&gt;&lt;P&gt;Let's say you have a mv token named test1 with values of: 1,2,3&lt;/P&gt;&lt;P&gt;How to achieve something like:&lt;BR /&gt;&amp;lt;eval token="test2"&amp;gt;sum($test1$)&amp;lt;/eval&amp;gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 08:36:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Sum-with-multivalue-token/m-p/576147#M47210</guid>
      <dc:creator>Shaft</dc:creator>
      <dc:date>2021-11-24T08:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with multivalue token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Sum-with-multivalue-token/m-p/576172#M47215</link>
      <description>&lt;P&gt;One way might be to use relative_time which will interpret strings&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;eval token="test2"&amp;gt;if(mvcount($test1$)&amp;gt;1,relative_time(0,"@s+".mvjoin($test1$,"s+")."s"),$test1$)&amp;lt;/eval&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Be aware that is $test1$ is from something like a multiselect dropdown, you may need to use $form.test1$ to get the multivalue version of the field rather than the concatenated version.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 12:00:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Sum-with-multivalue-token/m-p/576172#M47215</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-11-24T12:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with multivalue token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Sum-with-multivalue-token/m-p/576569#M47244</link>
      <description>&lt;P&gt;What a trick! Well done....&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 08:54:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Sum-with-multivalue-token/m-p/576569#M47244</guid>
      <dc:creator>Shaft</dc:creator>
      <dc:date>2021-11-29T08:54:53Z</dc:date>
    </item>
  </channel>
</rss>

