Hi All,
Any ideas if drilldown works also when serving customers only from pre-aggregations?
Please consider the following schema, with the preAggregations, and drillMembers defined.
cube(`Orders`, {
sql: `select * from orders`,
joins: {
Users: {
type: `belongsTo`,
sql: `${Orders}.user_id = ${Users}.id`,
},
Products: {
type: `belongsTo`,
sql: `${Orders}.product_id = ${Products}.id`,
},
},
measures: {
count: {
type: `count`,
// Here we define all possible properties we might want
// to "drill down" on from our front-end
drillMembers: [id, status, Products.name, Users.email],
},
},
dimensions: {
id: {
type: `number`,
sql: `id`,
primaryKey: true,
shown: true,
},
status: {
type: `string`,
sql: `status`,
},
},
preAggregations: {
ordersByStatus: {
dimensions: [CUBE.status],
measures: [CUBE.count],
}
});
Thanks