|
|
- 在“函数”选项卡中,搜索 Sum 函数,然后选择该函数。
|
- First select the Add button next to the custom fields.
- Select Table Calculation.
- Then type Sum and enter the necessary parameters.
- Choose a name for the table calculation and select Save.
Check more details in the Looker user guide.
|
|
|
- 搜索 Round 函数,然后从选项卡中选择该函数。
|
- First, select the Add button next to the custom fields.
- Select Table Calculation.
- Type Round and enter the necessary parameters.
- Choose a name for the table calculation and select Save.
Check more details in the Looker user guide.
|
|
|
- 搜索 Now 函数,然后从“函数”选项卡中选择该函数。
|
- First, select the Add button next to the custom fields.
- Select Table Calculation.
- Choose a name for the table calculation and select Save.
Check more details in the Looker user guide.
|
|
|
- Search for the Median function in the Functions tab. Then select the function to bring the median function into the formula editor.
|
- First, select the Add button next to the custom fields.
- Select Table Calculation.
- Then type Median and enter the necessary parameters.
- Choose a name for the table calculation and select Save.
Check more details in the Looker user guide.
|
|
|
- 搜索 Max 函数并选中它以将其添加到公式编辑器。
|
- First, select the Add button next to the custom fields.
- Select Table Calculation.
- Then type Max and enter the necessary parameters.
- Choose a name for the table calculation and select Save.
Check more details in the Looker user guide.
|
|
|
- 在“函数”选项卡中,搜索“if”,然后选择该函数。
|
- Select Table Calculation.
- Then type IF and enter the necessary parameters.
- Choose a name for the table calculation and select Save.
Check more details in the Looker user guide.
|
Floor - 返回向下取整到最接近“1”的倍数的数字
|
- 搜索 Floor 函数,然后选择该函数并将其引入公式。
|
- First, select the Add button next to the custom fields.
- Select Table Calculation.
- Then type Floor and enter the necessary parameters.
- Choose a name for the table calculation and select Save.
Check more details in the Looker user guide.
|
|
|
- to filter a field inside a formula, add the field next to the original field, select it, select Rename, and then choose the filter.
|
- To add a filter, select the Filter button next to the field name.
|
|
|
|
- First, select the Add button next to the custom fields.
- Select Table Calculation.
- Then type diff_days and enter the necessary parameters.
- Choose a name for the table calculation and select Save.
Check more details in the Looker user guide.
|
|
|
- 示例:
Count(ProcessName)。
- In the Functions tab type Count and select the function. Then navigate to the Data Browser tab, and select processname inside of the function.
|
- First, select the Add button next to the custom fields.
- Select Table Calculation.
- Type Count_Distinct and enter the necessary parameters.
- Choose a name for the table calculation and select Save.
- Optionally, select the three dots next to a field and select Count.
Check more details in the Looker user guide.
|
Count All - 返回项目列表的实际项目计数,包括重复项
|
- 示例:
DUPCount(ProcessName)。
- 在“函数”选项卡中,搜索“Count All”,然后选择统计函数。
|
- First, select the Add button next to the custom fields.
- Select Table Calculation.
- Then select Type Count and enter the necessary parameters.
- Choose a name for the table calculation and select Save.
- Optionally, select the three dots next to a field and select Count.
Check more details in the Looker documentation.
|
Case - 根据条件执行结果表达式。如果不满足任何条件,则返回其他条件
|
- 搜索“Case”函数,然后从“函数”选项卡中选择该函数。
|
- First, select the Add button next to the custom fields.
- Select Table Calculation.
- Then type Case and enter the necessary parameters.
- Choose a name for the table calculation and select Save.
Check more details in the Looker documentation.
|
|
|
- 在“函数”选项卡中搜索“Average”,然后将其选中。
|
- First, select the Add button next to the custom fields.
- Select Table Calculation.
- Type mean and enter the necessary parameters.
- Choose a name for the table calculation and select Save.
Check more details in the Looker documentation.
|
|
|
|
|
|
|
- 在“函数”选项卡中,搜索“Ceiling”,然后选择要引入公式编辑器的函数。
|
- First, select the Add button next to the custom fields.
- Select Table Calculation.
- Then type Ceiling and enter the necessary parameters.
- Choose a name for the table calculation and select Save.
Check more details in the Looker documentation.
|