Charles, Thanks for the reply. I tried to run the aggregate function with different combinations. But it is always failing. For this kind of attribute table, how do I run the aggregate function such that, the values in the Field1 column are aggregated corresponding to each polygonName?
[image: image.png] On Tue, Jan 26, 2021 at 9:31 AM Charles Dixon-Paver <[email protected]> wrote: > Yes you can use the aggregate processing tool. > > You can use a variety of aggregation functions to get the required > outputs, but the tool configuration may vary on input data. > > If the tool gives you errors, the usual culprit is data type errors. QGIS > is very clever though, and you can use an expression to preprocess the > field input, and if you specify the output field type it will try to cast > it for you during processing. > > Example screenshot: https://imgur.com/a/vPohdLd > > In this example I take an input field and convert it to a string value, > concatenate the inputs for all matching geometries into a single field, and > outputs the value as an integer. > > Hope that helps. > > Regards > > On Tue, 26 Jan 2021 at 18:03, krishna Ayyala <[email protected]> > wrote: > >> I have a polygons shapefile as shown below. >> >> [image: image.png] >> >> Is it possible to dissolve these polygons and get a resultant shapefile >> with an attribute table such as below?i.e. it should have only one >> polygonName and all of its associated fields. >> >> PolygonName Field1 Field2 >> A 1 2 >> B 3 4 >> C 5 6 >> D 7 8 >> E 9 10 >> F 11 12 >> _______________________________________________ >> Qgis-user mailing list >> [email protected] >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user >> >
_______________________________________________ Qgis-user mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
