如何索引特定的列以执行现场比较计算?

发布于 2025-01-31 16:14:51 字数 1148 浏览 4 评论 0 原文

给定下表:

|   A  |     B      | holdingtemp1 | holdingTemp2 | holdingtemp3 | holdingTemp4 |  idx |
| Grits| 7:06:24 AM | 180.199      |      -       |      -       |      -       |   0  |
|      | 8:35:56 AM |      -       | 174.30       |      -       |      -       |   1  | 
|      | 9:25:18 AM |      -       |      -       |      182     |      -       |   2  |
|      | 10:02:0 AM |      -       |      -       |      -       |      180     |   3  | 

如何正确索引列 b 进行字段比较以实现条件逻辑,其中每个温度记录必须相对于先前的记录在两个小时的间隔内进行,以:

if(B[0] + 2 > B[1], green(), red()) // 9:06 > 8:35, turns cell green
if(B[1] + 2 > B[2], green(), red()) // 10:35 > 9:25, turns cell green

编辑:

找到右用于此实现

函数 0)作为peekb,// 4:43:21 AM

5:11:03 AM with peek('b',1)作为peekb,// 5:11:03 am

如果是这样,请 peek()获取 preloaded的字段值邮报数据?

Given the following table:

|   A  |     B      | holdingtemp1 | holdingTemp2 | holdingtemp3 | holdingTemp4 |  idx |
| Grits| 7:06:24 AM | 180.199      |      -       |      -       |      -       |   0  |
|      | 8:35:56 AM |      -       | 174.30       |      -       |      -       |   1  | 
|      | 9:25:18 AM |      -       |      -       |      182     |      -       |   2  |
|      | 10:02:0 AM |      -       |      -       |      -       |      180     |   3  | 

How to properly index column B to perform field comparisons in order to implement conditional logic where each temperature recording must be taken within a two hour interval relative to the previous recording, such that:

if(B[0] + 2 > B[1], green(), red()) // 9:06 > 8:35, turns cell green
if(B[1] + 2 > B[2], green(), red()) // 10:35 > 9:25, turns cell green

Edit:

Found the right function to use for this implementation, but peak() is returning 4:43:21 AM for all records with

Peek('B', 0) as peekB, // 4:43:21 AM

and 5:11:03 AM with
Peek('B', 1) as peekB, // 5:11:03 AM

If so, does peek() fetch the field value of the preloaded or postloaded data?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文