Extracting additional data with query with keen.io -


i have (simplified) query looks follows.

var pageviews = new keen.query('count', {     eventcollection: 'loaded page',     groupby: 'company.id' }); 

and use follows.

client.run(pageviews, function(result, error) {     // here }); 

this give me following json work with:

{   "result": [     {       "company.id": 1,       "result": 3     },     {       "company.id": 2,       "result": 11     },     {       "company.id": 3,       "result": 7     }   ] } 

however, name of each company, i.e. company.name property. looked through keen.io's documentation, , find no way of doing this. there way this? logically speaking, don't see reason why not possible, question if has been implemented.

grouping multiple properties you're looking for:

var pageviews = new keen.query('count', {     eventcollection: 'loaded page',     groupby: ['company.id','company.name'] }); 

that being said, it's important note keen not entity database. keen optimized store , analyze event data, which different entity data. more complex uses of entity data may not perform using solution.


Comments