找文章 / 找答案
精选问答 更多内容

[数据处理] 怎么实现在下拉参数中选择年月,对应的图表会显示对应...

Winklu玄铁三 显示全部楼层 发表于 2022-8-31 16:53:15 |阅读模式 打印 上一主题 下一主题
怎么实现在下拉参数中选择年月,对应的图表会显示对应月份的所有天的数据

最佳答案

社区管理员
yhdata_lyaa 关注Ta

2022-08-31 16:53:16

对应的图表绑定月份和具体日期列,设置对下拉参数-月 的过滤
查看完整内容
回复

使用道具 举报

精彩评论4

yhdata_lyaa 显示全部楼层 发表于 2022-8-31 16:53:16
对应的图表绑定月份和具体日期列,设置对下拉参数-月 的过滤
回复

使用道具 举报

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
这样行不行
回复

使用道具 举报

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

谢谢
回复

使用道具 举报

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 ...

有点问题
回复

使用道具 举报

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

  • 官方微信

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

    扫码关注
  • 新浪微博

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

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

会员等你来哦

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