我试图通过Qlikview文本框中的表达式显示基于2018 v 2019的周数的百分比增加/减少:这是我的表达式:
= num(Sum({<Year = {$(=Max(Year))},
Week = {"$(=Week(Today()))"}>}Retail) - Sum({<Year = {$(=Max(Year)-1)},
Week = {"$(=Week(Today()))"}>}Retail)) / num(Sum({<Year = {$(=Max(Year)-1)},
Week = {"$(=Week(Today()))"}>}Retail),'##0 %')
无论我尝试什么,我最终都会得到-0.38877082
等。
我在做什么错了?
答案 0 :(得分:0)
请修正括号和格式:
= num(Sum({}Retail) - Sum({}Retail) / Sum({}Retail),'##,#0.00 %')