excel - 如何在 PI DataLink 中计算平均值

标签 excel osisoft

如何计算变量 FIC02 过去 4 小时的平均值在单元格的日期DATE ?
见下文:


日期

FIC02


08 年 1 月 8 日 06:30:00

?

08-1-08 13:30:00

?

08-1-08 20:30:00

?


我在 Excel 中使用 PI DataLink 的“计算数据”函数:start time: 08-jan-08 06:30:00 - (4/24)end time 08-jan-08 06:30:00使用的代码如下:=PIAdvCalcVal("FIC02";"'Planilha1'!$A$6 - (4/24)";Planilha1!$A$6;"average";"time-weighted";0;1;0;"")出现以下错误信息: 时间无效。

最佳答案

您必须指定时间范围
见下文。我有一个开始时间,4 小时后有一个结束时间。
Adv Calc
如果您需要同一时间范围内的每小时平均值,请指定可选的“时间间隔”
例如,我计算了同一时间跨度内每小时(60m=60 分钟,您也可以写 1h)的平均值
enter image description here
您确实可以相对于单个时间字段进行计算。只需确保 excel 中的时间格式正确。
正如你所看到的两种方式(开始结束时间和结束时间 - 5h)产生相同的结果,
enter image description here

关于excel - 如何在 PI DataLink 中计算平均值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69877802/

相关文章:

excel - SSIS 错误代码 : 0x80040E37

excel - 将 CSV 导入 Excel : import wizard fails to recognize text qualifier but opening directly in Excel converts to scientific notation

vba - Excel - VBA : does Worksheet. Range.Delete 有列数限制吗?

Python.Runtime.PythonException : since Python. NET 3.0 int 无法隐式转换为 Enum。使用枚举(int_value)

osisoft - 创建后找不到Pi点

python - 有没有办法从 python 启动 excel?

c# - 通过 C# 和德语 Umlaute (Ä,Ü,Ö,ä,ü,ö) 导入 DOS-CSV

osisoft - 为什么 OSIsoft PI Processbook 和 PI DataLink 之间的数据刷新方式不同?

Excel VBA 缺少引用 - PI Osisoft