页面树结构

版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

...

    在多维分析中使用日期控件参数

    效果图如下:

    Image RemovedImage Added

操作步骤

1.制作结束日期参数,数据类型为字符串,控件类型为日期控件。如下图:

Image RemovedImage Added

设置时一定要有默认值

Image RemovedImage Added

2.制作结束日期成员参数,数据类型为字符串,控件类型为输入框,将参数隐藏,默认值为上面结束日期参数拼接成cube结构,如 SELECT concat('[日期].[年-月-日].[年].[', SUBSTR(date_format(参数,'%Y-%m-%d') ,1,4), ']. [', SUBSTR(date_format(参数,'%Y-%m-%d') ,6,2), '].[', SUBSTR(date_format(参数,'%Y-%m-%d') ,9,2), ']') AS t

Image RemovedImage Added

Image RemovedImage Added

3.在自定义命名集中使用结束日期成员参数,如下图:Image Removed.新建自定义命名集“年月”,设置如图:

Image Added

4.新建多维分析,使用“年月”成员参数,并在右侧属性区内设置隐藏"时间"参数,如下图:

Image Added