首页 > 解决方案 > Qlikview 中的“加载”语句是否不允许对字段进行多个顺序操作?

问题描述

我想保留字段名:Country、Cal_Year 和 Cal_Month。但是,如果我尝试按照以下示例代码中的方式运行该代码,则该代码将无法运行。错误状态:“国家”不是有效的字段名。

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

标签: data-visualizationqlikviewqliksense

解决方案


你少了逗号?

(Balance/Quotation) as FX_Rate,  <-- missing comma here
Country & Cal_Year & Cal_Month as Key1

推荐阅读