/// <summary>
        /// Initializes a new instance of the <see cref="AnalysisValueResultColumn"/> class.
        /// </summary>
        /// <param name="field">Field</param>
        /// <param name="aggregationType">Aggregation type</param>
        public AnalysisValueResultColumn(AnalysisValueField field, AnalysisAggregationType aggregationType = null)
        {
            this.AnalysisValue          = field;
            this.currentAggregationType = field.FixedAggregationType ?? aggregationType;

            this.ValueFunction = AnalysisValueFunction.ValueFunctionForFormulaAnalysis(field.ConfigValue?.Parameter, field.Analysis);
            if (this.ValueFunction == null)
            {
                return;
            }

            int fractionDigits = field.Options?.FractionDigits ?? 2;

            this.Format = field.Options?.Format;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="AnalysisValueCategory"/> class.
 /// </summary>
 /// <param name="field">Field</param>
 public AnalysisValueCategory(AnalysisValueField field)
 {
     this.AnalysisValueField = field;
     this.valueFunction      = new AnalysisValueResultColumn(field).ValueFunction;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AnalysisFunctionFormulaParseResult"/> class.
 /// </summary>
 /// <param name="valueFunction">Value.AnalysisValueFunction function</param>
 public AnalysisFunctionFormulaParseResult(AnalysisValueFunction valueFunction)
 {
     this.Result = valueFunction;
 }