<?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: Turning a field with status variables in to a new field with absolute an difference in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Turning-a-field-with-status-variables-in-to-a-new-field-with/m-p/583113#M47772</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;if I understand this right, you have almost correct stats here. Just replace status -&amp;gt; created_done and after stats you could rename that field as status.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jan 2022 16:59:11 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2022-01-31T16:59:11Z</dc:date>
    <item>
      <title>Turning a field with status variables in to a new field with absolute an difference</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Turning-a-field-with-status-variables-in-to-a-new-field-with/m-p/583108#M47770</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i looked for an answer an some came close. But i could not get it flying.&lt;/P&gt;&lt;P&gt;Here is the Problem Description:&lt;/P&gt;&lt;P&gt;I have a field that contains the status of a ticket ("created_done").&lt;/P&gt;&lt;P&gt;I can easily count the number using by or doing that:&lt;/P&gt;&lt;P&gt;| stats count(eval(created_done="created")) as created count(eval(created_done="done")) as done by title impact&lt;/P&gt;&lt;P&gt;However i would like something like this:&lt;BR /&gt;| stats count by title impact status&lt;BR /&gt;&lt;BR /&gt;status at this point should be a field holding the sum of solved tickets and the sum of open tickets:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="0" width="320" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="80" height="20"&gt;Title&lt;/TD&gt;&lt;TD width="80"&gt;Impact&lt;/TD&gt;&lt;TD width="80"&gt;Status&lt;/TD&gt;&lt;TD width="80"&gt;Count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;title 1&lt;/TD&gt;&lt;TD&gt;impact 1&lt;/TD&gt;&lt;TD&gt;solved&lt;/TD&gt;&lt;TD&gt;90&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;title 1&lt;/TD&gt;&lt;TD&gt;impact 1&lt;/TD&gt;&lt;TD&gt;open&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;title 1&lt;/TD&gt;&lt;TD&gt;impact 2&lt;/TD&gt;&lt;TD&gt;solved&lt;/TD&gt;&lt;TD&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;title 1&lt;/TD&gt;&lt;TD&gt;impact 2&lt;/TD&gt;&lt;TD&gt;open&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Probably this has already been answered, i apologize in advance, but i could not get any solution working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 16:22:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Turning-a-field-with-status-variables-in-to-a-new-field-with/m-p/583108#M47770</guid>
      <dc:creator>Software-Simian</dc:creator>
      <dc:date>2022-01-31T16:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Turning a field with status variables in to a new field with absolute an difference</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Turning-a-field-with-status-variables-in-to-a-new-field-with/m-p/583113#M47772</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;if I understand this right, you have almost correct stats here. Just replace status -&amp;gt; created_done and after stats you could rename that field as status.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 16:59:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Turning-a-field-with-status-variables-in-to-a-new-field-with/m-p/583113#M47772</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2022-01-31T16:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Turning a field with status variables in to a new field with absolute an difference</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Turning-a-field-with-status-variables-in-to-a-new-field-with/m-p/583167#M47779</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;actually the values come from exactly that field. so i want to get from:&lt;/P&gt;&lt;TABLE border="0" width="320" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="80" height="20"&gt;Title&lt;/TD&gt;&lt;TD width="80"&gt;Impact&lt;/TD&gt;&lt;TD width="80"&gt;Status&lt;/TD&gt;&lt;TD width="80"&gt;Count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;title 1&lt;/TD&gt;&lt;TD&gt;impact 1&lt;/TD&gt;&lt;TD&gt;solved&lt;/TD&gt;&lt;TD&gt;90&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;title 1&lt;/TD&gt;&lt;TD&gt;impact 1&lt;/TD&gt;&lt;TD&gt;created&lt;/TD&gt;&lt;TD&gt;95&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;title 1&lt;/TD&gt;&lt;TD&gt;impact 2&lt;/TD&gt;&lt;TD&gt;solved&lt;/TD&gt;&lt;TD&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;title 1&lt;/TD&gt;&lt;TD&gt;impact 2&lt;/TD&gt;&lt;TD&gt;created&lt;/TD&gt;&lt;TD&gt;48&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to:&lt;/P&gt;&lt;TABLE border="0" width="320" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="80" height="20"&gt;Title&lt;/TD&gt;&lt;TD width="80"&gt;Impact&lt;/TD&gt;&lt;TD width="80"&gt;Status&lt;/TD&gt;&lt;TD width="80"&gt;Count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;title 1&lt;/TD&gt;&lt;TD&gt;impact 1&lt;/TD&gt;&lt;TD&gt;solved&lt;/TD&gt;&lt;TD&gt;90&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;title 1&lt;/TD&gt;&lt;TD&gt;impact 1&lt;/TD&gt;&lt;TD&gt;open&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;title 1&lt;/TD&gt;&lt;TD&gt;impact 2&lt;/TD&gt;&lt;TD&gt;solved&lt;/TD&gt;&lt;TD&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;title 1&lt;/TD&gt;&lt;TD&gt;impact 2&lt;/TD&gt;&lt;TD&gt;open&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 01 Feb 2022 07:22:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Turning-a-field-with-status-variables-in-to-a-new-field-with/m-p/583167#M47779</guid>
      <dc:creator>Software-Simian</dc:creator>
      <dc:date>2022-02-01T07:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Turning a field with status variables in to a new field with absolute an difference</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Turning-a-field-with-status-variables-in-to-a-new-field-with/m-p/583180#M47781</link>
      <description>&lt;P&gt;One way to do it:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _raw="Title,   Impact,   Status,  Count
title 1,impact 1,solved,90
title 1,impact 1,created,95
title 1,impact 2,solved,45
title 1,impact 2,created,48"
| multikv forceheader=1
| fields - _raw, linecount
| streamstats reset_on_change=t window=1 first(Count) as preCount last(Count) as nxtCount by Title, Impact
| eval Open=nxtCount - preCount
| eval Status = if (Status=="created", "open", Status), Count = if(Status=="open", Open, Count)
| table Title, Impact, Status, Count&lt;/LI-CODE&gt;&lt;P&gt;r. Ismo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 09:25:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Turning-a-field-with-status-variables-in-to-a-new-field-with/m-p/583180#M47781</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2022-02-01T09:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Turning a field with status variables in to a new field with absolute an difference</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Turning-a-field-with-status-variables-in-to-a-new-field-with/m-p/583184#M47782</link>
      <description>&lt;P&gt;Hi Iso,&lt;/P&gt;&lt;P&gt;thanks, it works like a charme!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 09:53:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Turning-a-field-with-status-variables-in-to-a-new-field-with/m-p/583184#M47782</guid>
      <dc:creator>Software-Simian</dc:creator>
      <dc:date>2022-02-01T09:53:18Z</dc:date>
    </item>
  </channel>
</rss>

