Winklu青铜二
2022-8-31 16:53:15 发布在问答
【数据处理】 怎么实现在下拉参数中选择年月,对应的图表会显示对应...
怎么实现在下拉参数中选择年月,对应的图表会显示对应月份的所有天的数据

最佳答案

永洪vip
yhdata_lyaa

2022-08-31 16:53:16

对应的图表绑定月份和具体日期列,设置对下拉参数-月 的过滤
查看完整内容
1779
4
精彩评论4
yhdata_lyaa
发表于 2022-8-31 16:53:16 显示全部楼层
对应的图表绑定月份和具体日期列,设置对下拉参数-月 的过滤
回复

使用道具 2#

lwaaa青铜二
发表于 2022-8-31 17:05:00 显示全部楼层
case when substring(年月,6,2) in ('01','03','05'...) then 31
       when substring(年月,6,2) in ('04','06',...) then 30
     when substring(年月,6,2)='02' and ((cast(substring(年月,6,2) as signed)%4==0
                                                       and cast(substring(年月,6,2) as signed)%100!=0)
                                                or(cast(substring(年月,6,2) as signed)%400==0) then 29
else 28 end
这样行不行
回复

使用道具 3#

Winklu青铜二
发表于 2022-8-31 18:02:43 显示全部楼层
yhdata_lyaa 发表于 2022-8-31 17:26
对应的图表绑定月份和具体日期列,设置对下拉参数-月 的过滤

谢谢
回复

使用道具 4#

Winklu青铜二
发表于 2022-8-31 18:02:56 显示全部楼层
lwaaa 发表于 2022-8-31 17:05
case when substring(年月,6,2) in ('01','03','05'...) then 31
       when substring(年月,6,2) in ('04 ...

有点问题
回复

使用道具 5#

高级模式
您需要登录后才可以回帖 登录 | 免费注册

  • 官方微信

    欢迎关注永洪服务号!收费为0,价值无限

    扫码关注
  • 新浪微博

    让每位用户轻松挖掘数据价值!

    访问新浪微博
  • 智能客服
1500W

用户等你来哦

Copyright   ©2012-2025  北京永洪商智科技有限公司  (京ICP备12050607) 京公网安备110110802011451号 |《永洪社区协议》
返回顶部