We are trying to subtract once runningcountdate from another runnign coutn date to calculate actives user over a longer time period. We are new to quicksights and are sure there is a solution for this but have not been able to find it so far in the community pages.
We are able to create a runningcount of active users over time based on created_at and deactivated_at date values. But when trying to show the difference between the running counts over time we run into an error.
To further specify, a general line in this table contains:
userid: UUID
createdAt: date the user was created
deactivatedAt: date the user was removed.
The challenge is that we want to measure all users which were active over time on specific dates.
We define a user as active if the date is on or after the createdAt date and before the deactivatedAt date (or deactivatedAt is null).
In PowerBI this was doable by linking a datetable to the model, and then we count the users per date which match the filters. We’re at a loss how to perform something similar in Quick Sights.
First of all welcome to the QS Community.
If possible could share some sample/dummy data with expected outcome. I think Community members can surely find some solutions.
Are you using RDS as backend? If you can have Calendar date as shown is expected date in the source it would be easier to achieve your desired or you may also use custom sql to union two date (createdAt and deactivatedAt and make it as date. i guess this way you make easy calculation to count occurrence of uuid as active users with a date month.