<?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 Average with filter in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Average-with-filter/m-p/513340#M34263</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I don't know how to do the average of the "Moy" for all Debit = 5 and per month with DateJour and after this exactly the same but with Debit =25.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screen.PNG" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10165i0226D9C00F7AA9DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="screen.PNG" alt="screen.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Has somebody an idea ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried many instructions but don't work ..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
    <pubDate>Mon, 10 Aug 2020 13:22:29 GMT</pubDate>
    <dc:creator>Lucie99</dc:creator>
    <dc:date>2020-08-10T13:22:29Z</dc:date>
    <item>
      <title>Average with filter</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Average-with-filter/m-p/513340#M34263</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I don't know how to do the average of the "Moy" for all Debit = 5 and per month with DateJour and after this exactly the same but with Debit =25.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screen.PNG" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10165i0226D9C00F7AA9DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="screen.PNG" alt="screen.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Has somebody an idea ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried many instructions but don't work ..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 13:22:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Average-with-filter/m-p/513340#M34263</guid>
      <dc:creator>Lucie99</dc:creator>
      <dc:date>2020-08-10T13:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Average with filter</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Average-with-filter/m-p/513353#M34264</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Please try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;&amp;lt;base search&amp;gt;
| bin span=1mon DateJour
| stats avg(Moy) as avgMoy by DateJour, Depit&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm expecting that DateJour is containing time as epoch? If not then you must convert it first to epoch or use _time (instead of DateJour) which already is in correct format.&lt;/P&gt;&lt;P&gt;r. Ismo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 11:52:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Average-with-filter/m-p/513353#M34264</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-08-11T11:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Average with filter</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Average-with-filter/m-p/513548#M34275</link>
      <description>&lt;P&gt;Hi thanks for helping me.&amp;nbsp; &amp;nbsp;This instruction that is very simiral to yours works, but it gives me the average of all debits (5 and 25) ! How can I do separately the average for debit = 5 and the 2nd average for debit = 25 ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;| stats avg(Moy) as AvgMoy by _time, Debit&amp;nbsp; &amp;nbsp; &amp;nbsp; (I used this)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 11:32:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Average-with-filter/m-p/513548#M34275</guid>
      <dc:creator>Lucie99</dc:creator>
      <dc:date>2020-08-11T11:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Average with filter</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Average-with-filter/m-p/513551#M34276</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I'm not sure if I understood your question, but if you want those avgs one by one with separate queries then this helps.&lt;/P&gt;&lt;LI-CODE lang="java"&gt;&amp;lt;base query&amp;gt; Debit=5
| bin span=1mon _time
| stats avg(Moy) as AvgMoy by _time, Debit&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then the second query with debit=25. And if you couldn't add that on the index=.... then you can catch those lines with&lt;/P&gt;&lt;P&gt;| where debit = 5&lt;/P&gt;&lt;P&gt;later on, but before that stats on your query.&lt;/P&gt;&lt;P&gt;If you are meaning something else then please explain that little bite more.&lt;/P&gt;&lt;P&gt;r. Ismo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 11:51:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Average-with-filter/m-p/513551#M34276</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-08-11T11:51:45Z</dc:date>
    </item>
  </channel>
</rss>

