Answers for "How to calculate the average for all values in a single column?"
https://answers.splunk.com/answers/395060/how-to-calculate-the-average-for-all-values-in-a-s.html
The latest answers for the question "How to calculate the average for all values in a single column?"Answer by lguinn2
https://answers.splunk.com/answering/396055/view.html
You can do it like this
yoursearchhere
| stats sum(Time) as totalTime by User
| appendpipe [ stats avg(totalTime) as totalTime | eval User = "Average Time" ]
| rename totalTime as "Time (Hours)"
The `appendpipe` commands examines the results in the pipeline, and in this case, calculates an average. The results of the `appendpipe` command are added to the end of the existing results. Notice that I used the same field names within the `appendpipe` command, so that the new results would align in the same columns.Wed, 20 Apr 2016 14:01:14 GMTlguinn2