天软金融分析.NET函数大全 > 数据仓库函数 > 向导函数 > 区间

AvgOfRepPeriod2    

简述

  表达式区间平均
定义
AvgOfRepPeriod2(Exp:String;BegReport:Integer;EndReport:Integer;ReportType:Integer):Real
参数
名称类型说明
ExpString字符串,函数表达式
BegReportInteger整数,开始报告期
EndReportInteger整数,截止报告期
ReportTypeInteger整数,报告期类型
显示名 取值
年度标准 0
季度标准 1
返回Real实数。表达式的区间平均
  • 范例

    //对SZ000001在2020年年报至2022年报的平均营业收入。
      SetSysParam(pn_stock(),"SZ000001");
      return AvgOfRepPeriod2(@reportofall(46002,GetSysParam('DefaultRepID')),20201231,20221231,0);
      //返回:167606666666.667
相关