最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to Create a Cumulative Metric in Apache Superset? - Stack Overflow

programmeradmin0浏览0评论

I’m working on a dashboard in Apache Superset and trying to create a cumulative metric for one of my visualizations. Here's the context:

  • I have a dataset with columns such as date, category, and value.
  • I want to calculate a cumulative sum of the value column over time (date) for each category.

My Attempts:

  • I tried using the "Time Grain" and "Rolling Window" options, but I couldn’t get the cumulative metric for each category separately.
  • I explored SQL-based approaches in the dataset editor, but I’m not sure how to properly write the query in Superset's SQL interface.
  • I also looked for options in the chart configuration, but couldn’t find anything straightforward.

Is there a way to calculate cumulative metrics within Superset?

发布评论

评论列表(0)

  1. 暂无评论