单元格不能执行取数函数sql,语句放到模板数据集可以正常取数,语句为
select round(sum(amt)) AS target
from plan
WHERE type=(case when (current_date() between '2021-06-01' and '2021-06-03 23:59:59') then '第一波' when (current_date() between '2021-06-04' and '2021-06-13 23:59:59') then '第二波' else '第三波' end )