Forum Discussion
vbis
Helper I
3 years agoSum of max values
Hello.
I want to get the sum of max values per country, per customer, per product.
Here is an example where revenue is the max of values
| country | customer | product | quarter | revenue |
| Germany | A | beverages | Q1 | 1000 |
| Germany | A | food | Q1 | 1000 |
| Germany | A | food | Q2 | 1500 |
| Germany | B | beverages | Q1 | 1200 |
| Germany | B | food | Q2 | 1700 |
| Netherlands | A | beverages | Q2 | 1800 |
| Netherlands | B | food | Q2 | 2000 |