3

I need to extrapolate from an attribute table the number of elements divided for categories in an automated way (it's not possible to count them manually cause the number is quite huge, about 10000). In the attribute table there are accomodations (hotels, B&Bs, hostels, etc..) for every municipality of my province and I need to get the number of these accomodations for every municipality.

What is the best way to do so?

5

You can use the GroupStats plugin to calculate these things of statistics as it's pretty much a pivot table for QGIS.

You can download/install this from the toolbar:

Plugins > Manage and Install Plugins


Example:

Here's an attribute table:

Attribute table

And here's how to calculate the count of each Inn (or accomodation) per Province:

GroupStats plugin

  • 1
    Thank you very much, I solved!! You saved me a lot of time, I love you – Stefano Citterio Apr 20 '16 at 9:42
  • @StefanoCitterio - Haha most welcome! :) – Joseph Apr 21 '16 at 9:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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