Can someone help me how to arrive at max. quarter for a max. year. In the below table, would like to arrive at Year 2022, Qtr. 1. When I use the summarize (using group by max. year & max. qtr.), I get both 2021 Q4 & 2022 Q. Thankyou.
| Team | Prod Date | Qtr. | Year |
| AKC | 12/1/2021 | 4 | 2,021 |
| AKC | 12/2/2021 | 4 | 2,021 |
| AKC | 12/3/2021 | 4 | 2,021 |
| AKC | 12/4/2021 | 4 | 2,021 |
| AKC | 12/5/2021 | 4 | 2,021 |
| AKC | 12/1/2021 | 4 | 2,020 |
| AKC | 12/2/2021 | 4 | 2,020 |
| AKC | 12/3/2021 | 4 | 2,020 |
| AKC | 12/4/2021 | 4 | 2,020 |
| AKC | 12/5/2021 | 4 | 2,020 |
| AKC | 1/1/2022 | 1 | 2,022 |
| AKC | 1/2/2022 | 1 | 2,022 |
| AKC | 1/3/2022 | 1 | 2,022 |
| AKC | 1/4/2022 | 1 | 2,022 |
| AKC | 1/5/2022 | 1 | 2,022 |