I have a dataset containing four key values:
EventID, StartDate, EndDate, Category
Example CSV:
bee3c5f8-d93b-44c7-8a3a-8419f4af81ea, 2021-11-23, 2021-11-25, Red
f11ceb8c-853a-4f2b-81f6-ae1c99e60579, 2021-11-23, null, Blue
7ea0a73e-2f1d-4c05-a99c-49b118044bdf, 2021-11-26, 2021-11-27, Blue
93699642-f72a-4e6c-9055-5c39ed34efd9, 2021-11-27, null, Green
245b4171-1191-4cbf-b5a7-a7fdef451dbe, 2021-11-28, 2021-11-29, Blue
849251f7-3f0f-49ee-89fe-4e6034ddd141, 2021-11-29, null, Red
b51ca324-f165-4af7-833a-44d6cf1b8ded, 2021-11-29, null, Green
I would like to build a line chart grouped by Category with Time on the X axis and open event totals on the Y axis. The chart would display open events for every day over the past X days. An event is still open if the EndDate is null.
Using the above example CSV, I’d expect a line chart that plots each date over the past X days, grouped by category:
2021-11-23: 1 Red, 0 Blue, 0 Green
2021-11-24: 1 Red, 1 Blue, 0 Green
2021-11-25: 0 Red, 1 Blue, 0 Green
2021-11-26: 0 Red, 2 Blue, 0 Green
2021-11-27: 0 Red, 1 Blue, 1 Green
2021-11-28: 0 Red, 2 Blue, 1 Green
2021-11-29: 1 Red, 1 Blue, 2 Green
An event does not happen on each day, so I cannot use StartDate as the X axis. Are there other options to allow a running tally of each day?