title: InfluxDB count same string values for a timerange
body: <p>I've set up the following InfluxDB measurement called <em>ratio</em> with one fieldKey called "<em>name</em>"</p>
  
  <pre><code>--------------------------------------------------
  | time                | name                     |
  --------------------------------------------------
  | 1481274571179850400 | current_assets           |
  --------------------------------------------------
  | 1481274571179850401 | othervalue               |
  --------------------------------------------------
  | 1481274571179850402 | othervalue               |
  --------------------------------------------------
  | 1481274571179850403 | current_assets           |
  --------------------------------------------------
  | 1481274571179850404 | othervalue               |
  --------------------------------------------------
  </code></pre>
  
  <p>There are about 20 different names.
  Depending on what is called on the backend I write one line with the given name (e.g. current_assets, othervalue, ...) for statistic.</p>
  
  <p>This works well and I get the table above.</p>
  
  <p>Now I'd like to create one query (in grafana)</p>
  
  <ul>
  <li>hits per <em>timerange</em> for a single name</li>
  </ul>
  
  <p>e.g.</p>
  
  <p>251 "current_assets" entries the last 24 hours</p>
  
  <p>21 "other value" entries the last 6 hours</p>
  
  <p>I have tried different things here but I can not make it.</p>
  
  <p>Does somebody have any idea how such a query can look?</p>
  
  <p>Thanks a lot</p>