Continuing the discussion from How do I superimpose a period over period in a visual without having the period that I'm comparing it to in the visual?:
Hello everyone,
I’m trying to create a table in QuickSight that displays a cumulative sum of the number of students by week and by course. There are a few requirements:
- The table can be filtered by course (potentially multiple courses) and by date range.
- The cumulative sum must be aware of events before the selected date range, so it doesn’t start from zero if there were students in previous weeks.
- The totals and subtotals should still work correctly, reflecting the proper cumulative values for the entire filtered period.
I’ve already tried using the
minOver(min({order date}), [{order date}])
trick to handle inclusive ranges, and my current running sum calculation looks like this:
runningSum(
sum({n_paying_students}),
[{merge_date_week_start} ASC],
[{true_course_name}]
)
However totals and subtotals are not really accurate.
Has anyone encountered this requirement or come up with a solution for including the data prior to the filter range?
I’m looking for suggestions on the best way to configure this in QuickSight so the totals and subtotals are accurate.
Thank you in advance for any guidance!