Feature request #17092

Make the "Field to calculate statistics on" optional in the "Statistics by categories" tool

Added by Håvard Tveite about 7 years ago. Updated about 7 years ago.

Status:Closed
Priority:Normal
Assignee:Victor Olaya
Category:Processing/QGIS
Pull Request or Patch supplied:Yes Resolution:fixed/implemented
Easy fix?:Yes Copied to github as #:24991

Description

I have found Statistics by categories to be very useful.
One of my use cases is to get a count of features grouped by attribute, and this is currently not possible if there are no numerical attributes.
A very useful enhancement would be to make the Field to calculate statistics on optional.

Pull request: https://github.com/qgis/QGIS/pull/5095

In the pull request Field to calculate statistics on is made optional and values are set to 0 if no field is specified.
This results in a table with 0 or nan values in all the statistics columns except for count.

History

#1 Updated by Alexander Bruy about 7 years ago

  • Resolution set to fixed/implemented
  • Status changed from Open to Closed

Also available in: Atom PDF