I'm relatively new to using SQL in Apache Superset and I'm not sure where to look or how to solve my problem.
The short version of what I am trying to do is add a column of cumulative sum based on the total number of users by month.
Here is my PostgreSQL query so far:
SELECT
DATE(DATE_TRUNC('month', crdate)) AS "Month",
COUNT(DISTINCT user_id) AS "COUNT_DISTINCT(user_id)"
FROM
datasource
WHERE
user_id IS NOT NULL
GROUP BY
DATE(DATE_TRUNC('month', create))
ORDER BY
"COUNT_DISTINCT(user_id)" DESC