Dashboards & Visualizations

How to Display Trend Indicator for Single Values and Displaying the Average

aditsss
Motivator

Hi All,

I have one requirement .

Below is my query :

index="abc" sourcetype="xyz" id="*-develop--system" (OrgFolderName ="gcp") bugs="*" | table bugs _time| sort _time

bugs               | _time
1110                     2021-01-11 13:11:04
2301                       2021-01-12 13:12:52
4556                      2021-01-13 13:09:32
1009                       2021-01-14 13:10:31
3214                    2021-01-15 13:11:12
5005                       2021-01-16 13:09:23
3009                         2021-01-17 13:09:58

My requirement is I want to display the the data in single value format with trend Indicator.
Suppose I select yesterday so it should show 3009 as the value.

Now suppose I select last 7 days so it should show the average of bugs in single value and trend Indicator for first value and last value.

Can someone guide me what changes I need to make in my query.

Labels (3)
0 Karma

scelikok
SplunkTrust
SplunkTrust

Hi @aditsss,

Single value visualization cannot show trend based on a field other than the displayed one. If you want to show average value, trend will be shown based on this value. It is not possible to show average while calculating the trend based on first and last values.

If this reply helps you an upvote is appreciated.

If this reply helps you an upvote and "Accept as Solution" is appreciated.
0 Karma

aditsss
Motivator
Can someone please guide me on this.
0 Karma
Get Updates on the Splunk Community!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...