Dashboards & Visualizations

How to download data from dashboard?

rogueshewolf
Observer

I have a dashboard as the following 

  May'22 Apr'22 Mar'22
KPI 1 random% random% random%
KPI 2  random% random% random%
KPI 3 random% random% random%
KPI 4 random% random% random%



The percentages for the KPI's are coming fine but the user wants to be able to download the actual data or at least show the Numerator and Denominator in the same dashboard on mouse hover or something.

Any Idea how this can be achieved?

Labels (2)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

I presume this means that for each percentage value, you want the values used to calculate the percentage?

If so, include these in as part of multivalue fields with the percent as the first entry and hide the remaining entries with CSS

  <row>
    <panel depends="$alwaysHide$">
      <html>
        <style>
          #hiddencalculation table tbody td div.multivalue-subcell[data-mv-index="1"]{
            display: none;
          }
        </style>
      </html>
    </panel>
    <panel>
      <table id="hiddencalculation">
        <title>Hidden calculation</title>
        <search>
          <query>| makeresults count=100
| eval _time=relative_time(now(),"-".(random()%3)."mon@mon")
| eval kpi="KPI ".(random()%4+1)
| eval _time=strftime(_time,"%b %y")
| stats count by kpi _time
| eventstats sum(count) as total by _time
| eval percent=round(100*count/total,2)
| eval percent=mvappend(percent."%",count." / ".total)
| xyseries kpi _time percent</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">none</option>
      </table>
    </panel>
  </row>
0 Karma
Get Updates on the Splunk Community!

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...