Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have a problem with group same data to count it.

for example, i want to group same code to one and count them.

i can do it when i use MapInfo (Pic 1) but i can't in QGIS. (Pic 2: i can classify data and count it but can't get them in attribute table.)

It's possible to do it in QGis? please tell me.

Thank you.

enter image description here

share|improve this question

2 Answers 2

I suggest you to install Group Stats plugin. Here is a quick tutorial: group stat tutorial

  1. Search for the Group Stats icon
  2. Select the layer in which you have the Codes
  3. Select the attribute (in your case Code)
  4. Click on Calculate

The Count will appear. If you go to preferences you should be able to select only Count avoiding the other parameters to be displayed (this is not my case...). Remember before click Save button you have to select the fields you want to add to your .csv: hold on Shift for do that. Here is a more advanced tutorial written by Anita Graser.

share|improve this answer
Thanks! I'll try –  Seren Sep 9 '13 at 8:52
You're welcome! Have a look to this question too. I hope to see more from you! Bye! –  G M Sep 9 '13 at 9:22

you could also use Qspatialite in QGIS. The SQL window is just as Mapinfo one. Up to you after to make your SQL request with a groupby command on the wanted column.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.