UiPath Documentation
insights
2022.4
false
Insights
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

常用公式

先决条件

访问 Insights 2021.10 以下版本中的公式

  1. 用户需要设计者权限,并且需要导航到 Insights 门户。

  2. 然后导航到现有仪表板或创建新仪表板。

  3. 然后编辑微件或创建新的微件。

  4. 然后,设计者必须单击值旁边的加号

  5. 单击 fx 按钮以创建新公式

  6. 在这里,您将看到“功能”选项卡

  7. 下表中高亮显示了常用函数,以便进行比较。

访问 Insights 2022.4 中的公式

  1. 用户需要设计者权限,并且可以导航到现有仪表板或从头开始创建仪表板。

  2. 然后,用户必须编辑仪表板。

  3. 然后选择“添加图块”,选择“可视化”。

  4. 然后选择一个探索。

  5. 使用“添加新度量”、“添加新维度”或“表格计算”选项创建新的自定义公式。

比较

常用公式 2021.10 版本之前的 Insights Insights 2022.4

Sum - 将列表中的数字相加

docs image

  • 在“函数”选项卡中,搜索 Sum 函数,然后选择该函数。

docs image

  • 首先单击自定义字段旁边的“添加”按钮。

docs image

  • Select Table Calculation. \))\))

docs image

  • Then type Sum and enter the necessary parameters.

docs image

  • Choose a name for the table calculation and click Save.

docs image

See more details here

Round - 返回四舍五入后的数字

docs image

  • 搜索 Round 函数,然后从选项卡中选择该函数。

docs image

  • 首先,单击自定义字段旁边的“添加”按钮。

docs image

  • Select Table Calculation.

docs image

  • Type Round and enter the necessary parameters.

docs image

  • Choose a name for the table calculation and click Save.
See more details here

Now - 返回当前时间段

docs image

  • 搜索 Now 函数,然后从“函数”选项卡中选择该函数。

docs image

  • 首先,单击自定义字段旁边的“添加”按钮。

docs image

  • Select Table Calculation.

docs image

  • Then type Now.

docs image

  • Choose a name for the table calculation and click Save.
See more details here

Median - 计算中位数

docs image

  • “函数”选项卡中搜索 Median 函数。然后单击该函数,将 Median 函数带入公式编辑器。

docs image

  • 首先,单击自定义字段旁边的“添加”按钮。

docs image

  • Select Table Calculation.

docs image

  • Then type Median and enter the necessary parameters.

docs image

  • Choose a name for the table calculation and click Save.
See more details here

最大

docs image

  • 搜索 Max 函数,然后单击该函数以将其添加到公式编辑器。

docs image

  • 首先,单击自定义字段旁边的“添加”按钮。

docs image

  • Select Table Calculation.

docs image

  • Then type Max and enter the necessary parameters.

docs image

  • Choose a name for the table calculation and click Save.
See more details here

If - 根据条件执行数值表达式

docs image

  • “函数”选项卡中,搜索“if”,然后选择该函数。

docs image

  • 首先,单击自定义字段旁边的“添加”按钮。

docs image

  • Select Table Calculation.

docs image

  • Then type IF and enter the necessary parameters.

docs image

  • Choose a name for the table calculation and click Save.
See more details here

Floor - 返回向下取整到最接近“1”的倍数的数字

docs image

  • 搜索 Floor 函数,然后单击该函数以将其引入公式。
  • 首先,单击自定义字段旁边的“添加”按钮。

docs image

  • Select Table Calculation.

docs image

  • Then type Floor and enter the necessary parameters.

docs image

  • Choose a name for the table calculation and click Save.
See more details here

筛选公式中的字段

docs image

(字段,筛选的字段)

  • to filter a field inside a formula, add the field next to the original field, click it, select Rename, and then choose the filter.

docs image

  • 要添加筛选器,请单击字段名称旁边的“筛选器”按钮。

docs image

  • 然后,您将在可视化顶部看到筛选器。

docs image

日差 - 返回开始时间和结束时间之间的差额

docs image

  • “函数”选项卡中搜索日差,然后选择日差函数。

docs image

  • 首先,单击自定义字段旁边的“添加”按钮。

docs image

  • Select Table Calculation.

docs image

  • Then type diff_days and enter the necessary parameters.

docs image

  • Choose a name for the table calculation and click Save.
See more details here

Count - 计算唯一值的数量

docs image

  • 示例:Count(ProcessName)
  • “函数”选项卡中,键入“Count”并选择该函数。然后导航到“数据浏览器”选项卡,并单击函数内的“流程名称”

docs image

  • 首先,单击自定义字段旁边的“添加”按钮。

docs image

  • Select Table Calculation.

docs image

  • Type Count_Distinct and enter the necessary parameters.

docs image

  • Choose a name for the table calculation and click Save.

docs image

  • Optionally, select the three dots next to a field and click Count.
See more details here

Count All - 返回项目列表的实际项目计数,包括重复项

docs image

  • 示例:DUPCount(ProcessName)
  • “函数”选项卡中,搜索“Count All”,然后选择统计函数。

docs image

  • 首先,单击自定义字段旁边的“添加”按钮。

docs image

  • Select Table Calculation.

docs image

  • Then click Type Count and enter the necessary parameters.

docs image

  • Choose a name for the table calculation and click Save.

docs image

  • Optionally, select the three dots next to a field and click Count.

docs image

See more details here

Case - 根据条件执行结果表达式。如果不满足任何条件,则返回其他条件

docs image

  • 搜索“Case”函数,然后从“函数”选项卡中选择该函数。

docs image

  • 首先,单击自定义字段旁边的“添加”按钮。

docs image

  • Select Table Calculation.

docs image

  • Then type Case and enter the necessary parameters.

docs image

  • Choose a name for the table calculation and click Save.
See more details here

Average - 计算平均值

docs image

  • “函数”选项卡中搜索“Average”,然后将其选中。

docs image

  • 首先,单击自定义字段旁边的“添加”按钮。

docs image

  • Select Table Calculation.

docs image

  • Type mean and enter the necessary parameters.

docs image

  • Choose a name for the table calculation and click Save.
See more details here

全部

docs image

  • 不可用

Ceiling - 向上舍入到 1 位数字

docs image

  • “函数”选项卡中,搜索“Ceiling”,然后选择要引入公式编辑器的函数。

docs image

  • 首先,单击自定义字段旁边的“添加”按钮。

docs image

  • Select Table Calculation.

docs image

  • Then type Ceiling and enter the necessary parameters.

docs image

  • Choose a name for the table calculation and click Save.
See more details here
  • 先决条件
  • 访问 Insights 2021.10 以下 中的公式
  • 访问 Insights 2022.4 中的公式
  • 比较

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新