mshevelson
02-20-2024Data Storage
Populate Last Day of Month or Last Day of Week
Hello!
I have a widget in a dashboard that shows the number of subscribers for my app week over week and year over year. My data's grain is daily per subscription plan per platform. For example, if we have 10,000 subscribers, then the data looks like this:
Date | Plan | Subscriptions |
2/20/2024 | Plan 1 | 4,000 |
2/20/2024 | Plan 2 | 6,000 |
2/21/2024 | Plan 1 | 4,100 |
2/21/2024 | Plan 2 | 6,100 |
My issue is to show weekly or monthly views, I have to average the number of subscriptions so it averages the total number of subscriptions per week or per month. I want to only show the number of subscriptions on the last day of the week or the last day of the month. Has anyone successfully done this before?