<?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: Finding Average based on last 5 days transaction? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Finding-Average-based-on-last-5-days-transaction/m-p/546608#M37564</link>
    <description>&lt;LI-CODE lang="markup"&gt;| streamstats window=3 sum(Total_tranasactions) as rolling3total count as days by Date
| eval average3days=rolling3total / days
| eval Total_tranasactions=if(Total_tranasactions &amp;lt; 20, average3days, Total_tranasactions)&lt;/LI-CODE&gt;</description>
    <pubDate>Sun, 04 Apr 2021 06:36:21 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-04-04T06:36:21Z</dc:date>
    <item>
      <title>Finding Average based on last 5 days transaction?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Finding-Average-based-on-last-5-days-transaction/m-p/546606#M37563</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have data which will display total tarnsactions and success transactions count based on our time range.But we got one requirement that when some incident happen that time the count we are getting very less compared to other days.So our target is whenever we got that type less transactions we need to average for last 3 days total transactions and display that number instead of less transaction count.Please help how to solve this.&lt;/P&gt;&lt;P&gt;Sample Data:&lt;/P&gt;&lt;TABLE border="1" width="97.87664464942239%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;Date&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;Total_tranasactions&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;Success_tranasactions&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;01-04-2021&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;80&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;02-04-2021&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;75&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;03-04-2021&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;90&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;04-04-2021&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected Output:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;Date&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;Total_tranasactions&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;Success_tranasactions&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;01-04-2021&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;80&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;02-04-2021&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;75&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;03-04-2021&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;90&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;04-04-2021&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;avg of last 3 days&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sun, 04 Apr 2021 04:45:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Finding-Average-based-on-last-5-days-transaction/m-p/546606#M37563</guid>
      <dc:creator>ubp1252</dc:creator>
      <dc:date>2021-04-04T04:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Average based on last 5 days transaction?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Finding-Average-based-on-last-5-days-transaction/m-p/546608#M37564</link>
      <description>&lt;LI-CODE lang="markup"&gt;| streamstats window=3 sum(Total_tranasactions) as rolling3total count as days by Date
| eval average3days=rolling3total / days
| eval Total_tranasactions=if(Total_tranasactions &amp;lt; 20, average3days, Total_tranasactions)&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 04 Apr 2021 06:36:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Finding-Average-based-on-last-5-days-transaction/m-p/546608#M37564</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-04-04T06:36:21Z</dc:date>
    </item>
  </channel>
</rss>

