在SAP HANA中激活计算视图后单击数据预览时,会生成以下错误:
SAP DBTech JDBC: [7]: feature not supported:
key figure can't be defined without aggregation
当我打开SQL编辑器时,最终查询是:
SELECT
"PRODUCT_LINE_ID", "PRODUCT_LINE_DESC", "YEAR"
, sum("Precentage_Growth") AS "Precentage_Growth"
, max("NET_SALES_REVENUE") AS "NET_SALES_REVENUE"
, sum("PLANNED_REVENUE") AS "PLANNED_REVENUE"
FROM
"_SYS_BIC"."GBI_077.B17/ACTUALREVENUE_VS_PLANREVENUE_CV_077"
GROUP BY
"PRODUCT_LINE_ID", "PRODUCT_LINE_DESC", "YEAR";
其中percentage_growth
,net_sales_revenue
和Planned_revenue
是关键数据。有人可以帮助我,因为我还是SAP HANA的初学者。
答案 0 :(得分:0)
此错误很可能是由于如何在计算视图的semantics
节点中定义了关键值。
对于那里定义的每个关键配置,需要设置聚合模式。