我有一个查询,它将当前年份作为占位符参数传递,现在硬编码。我如何才能通过当年?我已经看到了一些不同的潜在解决方案,但大多数都在HANA Studio中或涉及动态SQL生成。
我将SQL放入Tableau,所以这些都不在桌面上。
...sum("StockInQualityInspection") as in_quality,
sum("StockInTransit") as its
from "_SYS_BIC"."stream.models.marketing.poly/InventoryQuery" ('PLACEHOLDER' = ('$$IPCurrentYear$$', '2018'))
where "StockValuatedUnrestrictedUse" <> 0 or "StockInQualityInspection" <> 0 or "StockInTransit" <> 0
group by case when "ReceivingPlant" is null then "Plant" else "ReceivingPlant" end,
case....
如果您无权操纵CV,请使用以下内容:
问候