【问题标题】:Cognos: How to show shorten dates in a cross tab in report studio?Cognos:如何在报表工作室的交叉表中显示缩短日期?
【发布时间】:2015-10-29 03:43:47
【问题描述】:

我有这份报告,在交叉表中,列标题以“2014 年 9 月”的格式显示月份和年份。我希望它改为显示“2014 年 9 月”。有人可以帮我解决这个问题吗?

格式实际上来自数据库表,所以我尝试从属性选项卡更改数据格式属性没有做任何事情。

如果有任何帮助和想法,我将不胜感激。

【问题讨论】:

    标签: report cognos-10 cognos-bi


    【解决方案1】:
    substring([Month/Year],1,4) || ' ' || substring([Month/Year],position(' ',[Month/Year]) + 1)
    

    这会将第一个单词缩短为 4 个字符并保留整个第二个单词(本例中为年份)。

    【讨论】:

    • 非常感谢Johnsonium!!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-04
    • 2010-10-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-11
    • 1970-01-01
    相关资源
    最近更新 更多