Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213889

sum of max values

$
0
0

Hi everyone,

 

I'm trying to sum the max values of some items from a table. I have generated an example table for explanation purposes:

 

City                              Sales           

Buenos Aires               1.000

Buenos Aires               1.000

Mendoza                     2.000

Mendoza                     500

Córdoba                      3.000

 

The idea is to sum only the max values for each City (For Buenos Aires = 1.000 ; For Mendoza = 2.000; For Córdoba = 3.000). Therefore, the total sum should be 6.000.- Please note that for Buenos Aires the value is the same for those rows, but the idea is only consider the max. Although, the minimum value for Córdoba (500) it should not be considered in the sum.

 

Is there any expression for this?

 

Thanks!

 
 

Viewing all articles
Browse latest Browse all 213889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>