Skip to content

Instantly share code, notes, and snippets.

@praveenn77
Created October 31, 2018 12:09
Show Gist options
  • Save praveenn77/34e8e6a3af6f6ff624f08bc8db211d1b to your computer and use it in GitHub Desktop.
Save praveenn77/34e8e6a3af6f6ff624f08bc8db211d1b to your computer and use it in GitHub Desktop.
datalayer_matrix.v1.json
{
"metadata":[],
"datasource":{
"rows":[
{
"id":"region",
"value":"EAST",
"role": "category",
"ref":"easte",
"level":0,
"children":[
{
"id":"store",
"value":"S1",
"ref":"sd",
"role": "category",
"level":1,
"children":{
"isMeasures":true,
"value":["100","20","250","54"]
}
}
]
}
],
"dimensions": [{
"id":"CategorySales.0.Regions",
"role": "category",
"values":["EAST", "WEST", "NORTH", "SOUTH"],
"children": {
"id":"CategorySales.0.Stores",
"role": "category",
"values":["S1", "S2"],
}
}],
"columns":[{
"id":"product",
"role": "product", // grouped
"value":"LAPTOP",
"children":[
{
"isMeasure":true,
"id":"sales"
},
{
"isMeasure":true,
"id":"qnty"
}
]
},{
"id":"product",
"role": "product", // grouped
"value":"Mobile",
"children":[
{
"isMeasure":true,
"id":"sales"
},
{
"isMeasure":true,
"id":"qnty"
}
]
}]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment