Need to pick the ID from current month and check if the performance is red for the past 3 months, and mark as Y in the current month if it is Red for the past 3 months continuously.
Output table must have only current month data. History data is only for comparison and it must not be present in the dashboard.