【问题标题】:Qlikview Format textbox expression as percentage to 3 decimal placesQlikview 将文本框表达式格式化为小数点后 3 位的百分比
【发布时间】:2019-07-09 12:41:40
【问题描述】:

我试图在 Qlikview 的文本框中使用表达式显示 2018 与 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 等。

我做错了什么?

【问题讨论】:

    标签: textbox expression percentage qlikview


    【解决方案1】:

    请修正括号和格式:

    = num(Sum({}Retail) - Sum({}Retail) / Sum({}Retail),'##,#0.00 %')
    

    【讨论】:

    • 嗨休伯特,我得到了正确的计算: = num(Sum({}Retail) - Sum({}Retail)) / num(Sum({}Retail),'##0.000%')但仍然没有格式化到小数点后 3 位。
    • 请尝试##,#0.00 %
    • 嗨休伯特:知道了:'#,##0.000%' 谢谢!!
    猜你喜欢
    • 1970-01-01
    • 2020-10-27
    • 2023-03-16
    • 1970-01-01
    • 1970-01-01
    • 2015-07-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多