I'm using QGIS 3.2.1 (Bonn)
I'm trying to dissolve and create statistics from a group of polygons, but QGIS is not making it. I do not know if I'm missing something or the software has a bug. These are my steps:
1- Select a group of polygons from a layer
2- Use the "Dissolve" tool of the GDAL add-on.
3- Characteristics to dissolve:
Input layer: "Census ratios", check.
Selected features only, check.
Dissolve field, "Dissolve_" (I have created a column with the same attribute "AAA" for all rows for this purpose), check.
Compute stats for attribute, check. Attribute selected: Total population (it is an interger64 field), check.
Now take a look at the console: Dissolve_, SUM(Dissolve_) AS sum, MIN(Dissolve_) AS min, MAX(Dissolve_) AS max, AVG(Dissolve_) AS avg FROM layer_name GROUP BY Dissolve_" -f "ESRI Shapefile"
Is using the Dissolve_ field to calculate the stats. Why? I don't know.
Then go, and the results are crearly wrong. I want to summarize the TOTAL_POPULATION field, not the one used to dissolve the polygons (DISSOLVE_).
Is QGIS failing because of a bug? Or i'm doing something wrong?
Note: I've tried with ArcMap and it goes OK, but i need to work with QGIS.