You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am trying to create a fresh cube based on hello_world example. but i am not able to get how to make changes in model.json file in aggrgate and measures categories. if want genrate a column with a difference of two columns then this shows an error like this
ERROR Internal Cubes error (ExpressionError): Unknown attribute 'u'date1_item'
please help.
my json file is:
"cubes": [
{
"name": "node_balance",
"dimensions": ["item", "year_item"],
**"measures": [
{"name":"duration", "label":"Duration",
"expression": "date1_item - date2_item"}
Hi @ashutoshgaurav according to my experience with cubes expressions in measures contains other measures not attributes. In your expression date1_item and date2_item are not defined as measures. (Cubes do not directly get data from relevant column in fact table. You have to define two another measures for them.)
i am trying to create a fresh cube based on hello_world example. but i am not able to get how to make changes in model.json file in aggrgate and measures categories. if want genrate a column with a difference of two columns then this shows an error like this
ERROR Internal Cubes error (ExpressionError): Unknown attribute 'u'date1_item'
please help.
my json file is:
"cubes": [
{
"name": "node_balance",
"dimensions": ["item", "year_item"],
**"measures": [
{"name":"duration", "label":"Duration",
"expression": "date1_item - date2_item"}
The text was updated successfully, but these errors were encountered: