Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

想问下数据模型新建度量时能不能获取到过滤组件的过滤条件 #12

Open
lisz-76 opened this issue Feb 8, 2021 · 0 comments

Comments

@lisz-76
Copy link

lisz-76 commented Feb 8, 2021

目前我设置了一个日期时间的过滤条件,然后我想对符合过滤条件的数据进行同比和环比,所以我想新建同比和环比度量,然后根据日期时间过滤条件进行计算取值和显示。比如过滤条件为2021/1/1-2021/2/8,然后新建同比度量为 (select sum(数据) from 表 where 时间 >= 2021/1/1 and 时间<=2021/2/8)/(select sum(数据) from 表 where 时间 >= (2021/1/1+1年) and 时间<=(2021/2/8+1年))。所以现在就想问下能不能动态获取到2021/1/1和2021/2/8。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant