Skip to content

keentycs Filters

UberSnip Developers edited this page Apr 3, 2016 · 1 revision

A quick overview on filtering query data, and the operators available.

To initialize a filter, append if to the end of the query. This is very important, as currently, filters are read last.

count pageview(<project_id>) event_collection=pageview timezone=UTC timeframe=this_100_days if ....

This allows us to only grab data filtered by the following set of rules.

if item_id>100 Would only query items with item_id greater than 100.

Some things to keep in mind

  • Query is 'space sensitive'. (Parameters and filters should not have any spacing between them unless enclosed by single-quotes. property='my value' //is ok

    property<>5 //is ok

    property > 3 //is not ok

    property = 'my value' //is not ok

    propert=my value //is not ok

  • if statement should appear at end of queries.


Operators available

  1. Greater Than

  2. = Greater Than or Equal To

  3. < Less Than
  4. <= Less Than or Equal To
  5. = Equals
  6. <> Not Equals
  7. ^= Contains
  8. !^= Not Contains

Clone this wiki locally