Share via


3.1.5.2.2.1.29 calculationItems

The JSON schema for the calculationItems object is as follows.

 {
   "type": "array",
   "items": {
     "description": "CalculationItem object of Tabular Object Model (TOM)", 
     "type": "object",
     "properties": {
       "name": {
            "type": "string"
       },
       "description": {
            "anyOf": [
              {
                   "type": "string"
              },
              {
                   "type": "array",
                   "items": {
                     "type": "string"
                   }
              }
            ] 
       },
       "expression": {
            "anyOf": [
              {
                   "type": "string"
              },
              {
                   "type": "array",
                   "items": {
                     "type": "string"
                   }
              }
            ] 
       },
       "formatStringDefinition": {
            "description": "FormatStringDefinition object of Tabular Object Model (TOM)", 
            "type": "object",
            "properties": {
              "expression": {
                   "anyOf": [
                     {
                           "type": "string"
                     },
                     {
                           "type": "array",
                           "items": {
                             "type": "string"
                           }
                     }
                   ] 
              }
            },
            "additionalProperties": false
       }
     },
     "additionalProperties": false
   }
 }

The properties correspond to the CalculationItem object that is defined in section 2.2.5.30.

In addition, the JSON-based calculationItems object can include a child formatStringDefinition object.