Dashboards & Visualizations

Can I create a saved report for a drop-down filter on a dashboard?

New Member

I have a dashboard that has total number of users for an app as the top statistic. I also have a drop-down filter that enables filtering between iOS or Android so you can see total number of iOS or total number of Android users.

The problem is that after applying the filter, it takes forever for the search to run, so it makes the drop-down filter kind of pointless unless you want to sit and wait for searches to run. Is there a way to save reports for drop-down filters like you would for a normal dashboard panel without a filter?

0 Karma

Explorer

Here is how I did it. I used loadjob to call a specific report and then piped it to a search command that includes tokens

|loadjob savedsearch="admin:search:Table of Clipping and Signal to Noise Ratio activity By UserName" | search UserName=$UserName$

Here is what it looks like in XML Look up loadjob for more info.

<panel>
  <input type="text" token="UserName" searchWhenChanged="true">
    <label>UserName</label>
    <suffix>*</suffix>
    <default>*</default>
  </input>
  <table>
    <title>Table of Clipping and Signal to Noise Ratio activity By Group</title>
    <search>
      <query>|loadjob savedsearch="admin:search:Table of Clipping and Signal to Noise Ratio activity By UserName" | search UserName=$UserName$</query>
      <earliest>$earliest$</earliest>
      <latest>$latest$</latest>
    </search>
    <option name="count">10</option>
    <option name="drilldown">none</option>
    <option name="refresh.display">progressbar</option>
  </table>
</panel>
0 Karma