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

Feat-同比环比 #1969

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from
Open

Conversation

88fantasy
Copy link

聚合指标增加同环比计算

使用方式:
当图表维度包含时间维度时点击某个聚合指标会显示高级计算, 子菜单有环比、同比、无(取消)
点击环比后会以当前时间维度的最小粒度计算环比

WechatIMG2103
WechatIMG2104

实现方式:
目前的实现方式是基于查询的结果进行计算的, 不涉及多次查询

当图表维度包含时间维度时可开启此选项
当图表维度包含时间维度时可开启此选项
@88fantasy
Copy link
Author

#1805

@Cuiyansong Cuiyansong added status: discussing Under discussion threads. Closed as stale after 60 days of inactivity. interaction: 👏Good Idea Give more commendation labels Sep 8, 2022
新增当维度不包含日期字段时的处理逻辑, 需要手工选择日期维度用于计算
新增当维度不包含日期字段时的处理逻辑, 需要手工选择日期维度用于计算
@88fantasy
Copy link
Author

同环比计算中,需要区分“维度”含日期字段和非日期字段两种情况

  1. 当“维度”中有日期字段时:直接设置同环比, 多个日期维护按照时间最小粒度来计算
    WX20220913-191645@2x

  2. 当“维度”中没有日期字段时:手动选择日期字段和指定日期, 然后按指定日期分别查询当期和上期数据
    WX20220913-191531@2x

WX20220913-191620@2x

新增当维度不包含日期字段时的处理逻辑, 需要手工选择日期维度用于计算
@EthanGuo2022
Copy link

这是已经实现了吗?

@88fantasy
Copy link
Author

这是已经实现了吗?

是的

@chenruige
Copy link

什么更新到demo环境

@handsomepjf
Copy link

挺好的

@zhaoyunxing92
Copy link

看看是不是AggregateTypeSection.tsx#L43-L48 代码漏提交了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interaction: 👏Good Idea Give more commendation status: discussing Under discussion threads. Closed as stale after 60 days of inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants