Quick BI中如何实现自定义年,月,周查询
更新时间:
概述
Quick BI中如何实现自定义年,月,周查询。
详细信息
Quick BI中如何实现自定义年,月,周查询,如下SQL方式:
and date_time>='${date_time.get(0)}'
and date_time<='${date_time.get(1)}'
and concat(substr(date_time,1,4),'-',weekofyear(date_time))>='${order_date_week.get(0)}'
and concat(substr(date_time,1,4),'-',weekofyear(date_time))<='${order_date_week.get(1)}'
and substr(date_time,1,7)>='${order_date_month.get(0)}'
and substr(date_time,1,7)<='${order_date_month.get(1)}'
and substr(date_time,1,4)>='${order_date_year.get(0)}'
and substr(date_time,1,4)<='${order_date_year.get(1)}'
这里以Quick BI中如何实现自定义SQL的数据集中实现月查询为实例:
- 在自定义SQL的数据集中修改占位符的类型为月。
- 在查询控件中选择这个占位符字段。
- 查询时选择的就是自定义的月日期数据。
适用于
- Quick BI
- 公共云专业版V4.4
反馈
- 本页导读
文档反馈