Google Fusion Table公式 [英] Google Fusion Table Formula

查看:62
本文介绍了Google Fusion Table公式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Google Fusion表,我正在尝试使用简单的if语句添加一个公式列。

I have a Google Fusion table and I am trying to add a formula column with a simple if statement.

TYPE 包含数字1-5。我想根据 TYPE 列中的值来更新公式列。

The column TYPE contains numbers 1-5. I want to update a formula column based on the value in the TYPE column.

我尝试了很多变体(单个引号,双引号等)

I tried many variations (single quote, double quote, etc) of the following:

IF(TYPE=1,'red','yellow')

但是,它总是说无效的公式。如果允许发表声明,并且我遵循此处描述的格式: https:// support。 google.com/fusiontables/answer/178196?hl=zh_CN

But, it always says invalid formula. If statements are permitted and I am following the format described here: https://support.google.com/fusiontables/answer/178196?hl=en

我丢失了什么?

推荐答案

公式仅适用于数字列,并且必须产生数字结果。因此,如果('TYPE'= 1,1,2)可以使用。您可以对此问题进行投票: https:// code。 google.com/p/fusion-tables/issues/detail?id=235

Formulas only work with numeric columns and must produce numeric results. So if('TYPE'=1, 1, 2) would work. You can add your vote to this issue: https://code.google.com/p/fusion-tables/issues/detail?id=235

这篇关于Google Fusion Table公式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆