I need to rank the highest financial value by month and category. I’ve been trying for a week, but without success. For example, I need to rank the highest value by category, and when I change the month, the rank is reset.
Example:
Month | category | sum(value) | rank
01/2025 | A | 1000 | 1
01/2025 | B | 700 | 2
…
02/2025 | C | 5000 | 1
02/2025 | A | 2300 | 2
02/2025 | B | 200 | 3
…