Qlikview 中的 "Load" 语句是否不允许对一个字段进行多个顺序操作?
Does the "Load" statement in Qlikview not permit multiple sequential operations on a field?
我想保留字段名:国家/地区、Cal_Year 和 Cal_Month。但是,如果我尝试 运行ning 它,代码不会 运行 ,如以下示例代码中所写。
错误状态:'Country' 不是有效的字段名。
LOAD [Country Code],
[ISO code],
Currency,
ApplyMap('Currency_Map',Currency, 'Currency Unmapped') as Country,
Quotation,
year as Cal_Year,
trim(mid(period, 3,4)) as Cal_Month,
Balance,
Activity,
(Balance/Quotation) as FX_Rate,
Country & Cal_Year & Cal_Month as Key1 <-supposedly an erroneous statement
您缺少逗号?
(Balance/Quotation) as FX_Rate, <-- missing comma here
Country & Cal_Year & Cal_Month as Key1
同样这样做只能参考原始数据table,不能参考结果。所以你需要
Country & Cal_Year & Cal_Month as Key1
成为
ApplyMap('Currency_Map',Currency, 'Currency Unmapped')
& year
& trim(mid(period, 3,4)) as Key
它在添加逗号后也能正常工作
我想保留字段名:国家/地区、Cal_Year 和 Cal_Month。但是,如果我尝试 运行ning 它,代码不会 运行 ,如以下示例代码中所写。 错误状态:'Country' 不是有效的字段名。
LOAD [Country Code],
[ISO code],
Currency,
ApplyMap('Currency_Map',Currency, 'Currency Unmapped') as Country,
Quotation,
year as Cal_Year,
trim(mid(period, 3,4)) as Cal_Month,
Balance,
Activity,
(Balance/Quotation) as FX_Rate,
Country & Cal_Year & Cal_Month as Key1 <-supposedly an erroneous statement
您缺少逗号?
(Balance/Quotation) as FX_Rate, <-- missing comma here
Country & Cal_Year & Cal_Month as Key1
同样这样做只能参考原始数据table,不能参考结果。所以你需要
Country & Cal_Year & Cal_Month as Key1
成为
ApplyMap('Currency_Map',Currency, 'Currency Unmapped')
& year
& trim(mid(period, 3,4)) as Key
它在添加逗号后也能正常工作