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

希望提供类似superset上的指标占比功能 #2299

Open
fanylucky opened this issue Feb 22, 2024 · 0 comments
Open

希望提供类似superset上的指标占比功能 #2299

fanylucky opened this issue Feb 22, 2024 · 0 comments

Comments

@fanylucky
Copy link

fanylucky commented Feb 22, 2024

superset上有percentage metrics 的功能,计算某列值与该列值total的占比,并作为一个指标列展示。
superset效果如下,
image

image
大致计算逻辑是 metricsA / sum(metricsA), 但因为有聚合计算,且metricsA可能已经使用聚合,无法通过计算字段实现。
superset 是靠前端来处理的,希望datart也能提供类似的功能

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