mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-03 00:14:12 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			639 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			639 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
{
 | 
						|
  "name": "median",
 | 
						|
  "type": "function",
 | 
						|
  "groups": ["Aggregates"],
 | 
						|
  "description": "Returns the aggregate median value from a field or expression.",
 | 
						|
  "arguments": [
 | 
						|
	{"arg":"expression", "description":"sub expression of field to aggregate"},
 | 
						|
	{"arg":"group_by", "optional":true, "description":"optional expression to use to group aggregate calculations"},
 | 
						|
	{"arg":"filter", "optional":true, "description":"optional expression to use to filter features used to calculate aggregate"}
 | 
						|
  ],
 | 
						|
  "examples": [
 | 
						|
	{ "expression":"median(\"population\",group_by:=\"state\")", "returns":"median population value, grouped by state field"}
 | 
						|
  ]
 | 
						|
}
 |