<?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 Getting average of variable name fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Getting-average-of-variable-name-fields/m-p/294750#M160372</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...
| streamstats count as SESSION by PATIENT_ID PROGRAM_NAME
| chart values(AVG_RT) over SESSION by PROGRAM_NAME limit=0 

SESSION 0 A 1 A-Rhythmical  2 Inhibition    3 Diff inhibition   4 Shifting  5 Attention
__________________________________________________________________________________________________
1         0.76              0.75            0.76                 1.80          1.03           0.96
                            0.77            0.79                 1.84          1.05           1.02
                            0.80            0.80                               1.09           1.19
                            0.82            0.82                                              1.27
                            0.83            0.79                                              1.30
                                                                                              1.31

2         0.79              0.78             ...
                            0.75
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;"0 A", "1 A-Rhythmical" are PROGRAM_NAMEs i.e. the name of these fields are variable. I would like to get average of its multivalues for each program name by SESSION:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SESSION 0 A 1 A-Rhythmical  2 Inhibition    3 Diff inhibition   4 Shifting  5 Attention
__________________________________________________________________________________________________
1         0.76              0.79            0.79                 1.82          1.06           1.16
2         0.79              0.77             ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 04 Jul 2017 09:53:06 GMT</pubDate>
    <dc:creator>yurykiselev</dc:creator>
    <dc:date>2017-07-04T09:53:06Z</dc:date>
    <item>
      <title>Getting average of variable name fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-average-of-variable-name-fields/m-p/294750#M160372</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...
| streamstats count as SESSION by PATIENT_ID PROGRAM_NAME
| chart values(AVG_RT) over SESSION by PROGRAM_NAME limit=0 

SESSION 0 A 1 A-Rhythmical  2 Inhibition    3 Diff inhibition   4 Shifting  5 Attention
__________________________________________________________________________________________________
1         0.76              0.75            0.76                 1.80          1.03           0.96
                            0.77            0.79                 1.84          1.05           1.02
                            0.80            0.80                               1.09           1.19
                            0.82            0.82                                              1.27
                            0.83            0.79                                              1.30
                                                                                              1.31

2         0.79              0.78             ...
                            0.75
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;"0 A", "1 A-Rhythmical" are PROGRAM_NAMEs i.e. the name of these fields are variable. I would like to get average of its multivalues for each program name by SESSION:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SESSION 0 A 1 A-Rhythmical  2 Inhibition    3 Diff inhibition   4 Shifting  5 Attention
__________________________________________________________________________________________________
1         0.76              0.79            0.79                 1.82          1.06           1.16
2         0.79              0.77             ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Jul 2017 09:53:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-average-of-variable-name-fields/m-p/294750#M160372</guid>
      <dc:creator>yurykiselev</dc:creator>
      <dc:date>2017-07-04T09:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Getting average of variable name fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-average-of-variable-name-fields/m-p/294751#M160373</link>
      <description>&lt;P&gt;@yurykiselev, just change from &lt;CODE&gt;values(AVG_RT)&lt;/CODE&gt; to &lt;CODE&gt;avg(AVG_RT)&lt;/CODE&gt;. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;YourBaseSearch&amp;gt;
| chart avg(AVG_RT) over SESSION by PROGRAM_NAME limit=0 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Jul 2017 12:32:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-average-of-variable-name-fields/m-p/294751#M160373</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-07-04T12:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Getting average of variable name fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-average-of-variable-name-fields/m-p/294752#M160374</link>
      <description>&lt;P&gt;So simple! Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 12:45:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-average-of-variable-name-fields/m-p/294752#M160374</guid>
      <dc:creator>yurykiselev</dc:creator>
      <dc:date>2017-07-04T12:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Getting average of variable name fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-average-of-variable-name-fields/m-p/294753#M160375</link>
      <description>&lt;P&gt;You were already there... Glad it worked!!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 12:50:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-average-of-variable-name-fields/m-p/294753#M160375</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-07-04T12:50:12Z</dc:date>
    </item>
  </channel>
</rss>

