# NxTrendlineDef

Trendline input definition

Warning note**EXPERIMENTAL.**  
This API is under development. Do not rely on it. It may change or be removed in future versions.

## Properties

| Name | Description | Type |
| --- | --- | --- |
| qType | The type of trendline to calculate<br><br>One of:<br><br><ul><li>AVERAGE or Average</li><li>LINEAR or Linear</li><li>POLYNOMIAL2 or Polynomial2</li><li>POLYNOMIAL3 or Polynomial3</li><li>POLYNOMIAL4 or Polynomial4</li><li>EXPONENTIAL or Exponential</li><li>POWER or Power</li><li>LOG or Logarithmic</li></ul> | String |
| qXColIx | The column in the hypercube to be used as x axis. Can point to either a dimension (numeric or text) or a measure | Integer |
| qCalcR2 | Set to true to calulatate the R2 score | Boolean |
| qContinuousXAxis | Set if the numerical value of x axis dimension should be used<br><br>One of:<br><br><ul><li>Never or CONTINUOUS_NEVER</li><li>Possible or CONTINUOUS_IF_POSSIBLE</li><li>Time or CONTINUOUS_IF_TIME</li></ul> | String |
| qMultiDimMode | If you have a hypercube with two dimensions and qXColIx refers to a dimension<br>This determines if you get one trendline of each value in the other dimension or<br>Or trendline based on the sum of the value in the other dimension<br>The sum variant is only supported when qXColIx is 0 and qMode (on the hypercube) is K or T<br><br>One of:<br><br><ul><li>Multi or TRENDLINE_MULTILINE</li><li>Sum or TRENDLINE_SUM</li></ul> | String |