全部文档
文档中心流程流程编辑公式控件公式清单一览

公式控件公式清单一览

Formula公式可以配合多种函数和数据列的字段进行组合计算获取目标值。

  • 如果需要创建新字段,则在新字段列进行名称定义,若计算值用于覆盖原有字段,则在替换值列选择需要做值替换的现有字段名即可,替换值优先级高于新字段。

  • 公式中,使用数据集中的字段名需用[“”]括起来,如果存在多运算符采用()决定先后运算顺序。 例如:IF([“asset_amount”]>=0;”d”;”c”)

    • IF为判断逻辑函数,当字段asset_amount值>=0时,设置计算字段值为d,反之则设为c。

下面是常用的公式分类及应用:

数学中的基本算术公式

.. csv-table:: 基本计算 :header: 函数名, 使用说明, 示例 :widths: auto

%, 百分比函数(Percentage calculation), 12% = 0.12 (, 左括号用于影响表达式中的计算顺序, ), 左括号用于影响表达式中的计算顺序, *, 2个数值相乘, 10*2 = 20 +, 2个数值之和, 1+1 = 2 -, 2个数值之差, 2-1 = 1 /, 2个数值相除, 2/1 = 2 ^, 计算一个数字的n次方, 2^6 = 64

  • 说明:百分比函数(Percentage calculation)

  • 示例:12% 结果值为 0.12

比较两个值的大小,返回为boolean值 .. csv-table:: 基本计算 :header: 函数名, 使用说明 :widths: auto

<,See if one value is less than the other <=,See if one value is less than or equal to the other <>,See if 2 values are different =,Verify that 2 values are equal >,See if one value is larger than the other >=,See if one value is larger than or equal to the other

回到顶部

咨询热线

400-821-9199

我们使用 ChatGPT,基于文档中心的内容以及对话上下文回答您的问题。

ctrl+Enter to send