• Hyperion Essbase BusinessRule 函数学习--2


    @AVG

    Returns the average of all values in expList.

    返回表达式列表的平均值

    Syntax

     

    @AVG (SKIPNONE | SKIPMISSING | SKIPZERO | SKIPBOTH, expList)

    Parameter

    Description

    SKIPNONE从不忽略

    Includes all cells specified in the average operation regardless of their content.

    不论内容如何,对所有指定的单元进行平均操作

    SKIPMISSING忽略Missing

    Excludes all values that are #MISSING in the average operation.

    missing外,进行平均操作

    SKIPZERO忽略0

    Excludes values of zero from the average calculation.

    0外,进行平均操作

    SKIPBOTH忽略0missing

    Excludes all values of zero or #MISSING from the average calculation.

    0missing外,进行平均操作

    expList表达式列表

     

    Comma-delimited list of member names, variable names, functions, or numeric expressions. expList provides a list of numeric values across which the average is calculated.

    用逗号分开成员名称,变量名称,函数或数字表达式清单。对表达式列表提供一系列数值与其交叉进行平均计算

     

    Example

     

    The following example is based on the Sample Basic database. The calculation averages the values for the individual states making up the western region and places the results in West:

    如下实例基于“Sample Basic”数据库。由单独的州数据计算出西部区域的平均值

    FIX(Sales)

    West=@AVG(SKIPNONE,California:Nevada);

    ENDFIXThis example produces the following report:

     

                         Sales      Jan       Actual       

                    Cola    Diet Cola    Caffeine Free Cola

                    ====    =========    ==================                        

    California       678       118             145

    Oregon           160       140             150

    Washington       130       190             #MI

    Utah             130       190             170

    Nevada            76        62             #MI

      West           234.8     140             93

  • 相关阅读:
    【Spark学习】Apache Spark部署之Amazon EC2
    【Spark学习】Apache Spark部署之Standalone Mode
    【Spark学习】Apache Spark部署之Spark on YARN
    【Spark学习】使用Maven创建Spark
    【Spark学习】Apache Spark for 第三方Hadoop分发版
    【Spark学习】Apache Spark配置
    【Spark学习】Apache Spark监控与测量
    【Spark学习】Apache Spark集群硬件配置要求
    【Spark学习】Apache Spark作业调度机制
    Navicat For Mysql快捷键
  • 原文地址:https://www.cnblogs.com/dyllove98/p/3217874.html
Copyright © 2020-2023  润新知