Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use aggregate fucntions in Text on Symbol expressions #33312

Open
toasthall opened this issue Dec 10, 2019 · 2 comments
Open

Unable to use aggregate fucntions in Text on Symbol expressions #33312

toasthall opened this issue Dec 10, 2019 · 2 comments
Labels
Expressions Related to the QGIS expression engine or specific expression functions Feature Request

Comments

@toasthall
Copy link

When trying to use aggregate in expressions to set labels for Text on Symbols I get the following error:

Capture

QGIS and OS versions

QGIS version 3.10.0-A Coruña QGIS code revision 6c816b4
Compiled against Qt 5.11.2 Running against Qt 5.11.2
Compiled against GDAL/OGR 2.4.1 Running against GDAL/OGR 2.4.1
Compiled against GEOS 3.8.0-CAPI-1.13.1 Running against GEOS 3.8.0-CAPI-1.13.1
Compiled against SQLite 3.29.0 Running against SQLite 3.29.0
PostgreSQL Client Version 11.5 SpatiaLite Version 4.3.0
QWT Version 6.1.3 QScintilla2 Version 2.10.8
Compiled against PROJ 5.2.0 Running against PROJ Rel. 5.2.0, September 15th, 2018
OS Version Windows 10 (10.0)
Active python plugins AttributeAssignment; autoSaver; CalcArea; CalculateGeometry; DigitizingTools; FreehandRasterGeoreferencer; latlontools; qgis2web; quick_map_services; scriptrunner3; SemiAutomaticClassificationPlugin; SpreadsheetLayers; track_profile_2_web; db_manager; MetaSearch; processing
@toasthall toasthall added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Dec 10, 2019
@gioman
Copy link
Contributor

gioman commented Dec 10, 2019

Maybe it is by design, but not 100% sure at the moment.

@roya0045
Copy link
Contributor

roya0045 commented Dec 10, 2019

That's normal, I have PRs that would solve this but they are in limbo for the moment. See #30727

Edit: the PR would enable this in the layout legend instead of the symbology as you are trying to do. As of now the symbology expression doesn't have access to the symbol context. This should be a trivial change but you still wouldn't be able to do aggregate operations based on the symbology until my PR is merged.

@gioman gioman added Feature Request and removed Bug Either a bug report, or a bug fix. Let's hope for the latter! labels Dec 10, 2019
@alexbruy alexbruy added the Expressions Related to the QGIS expression engine or specific expression functions label Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Expressions Related to the QGIS expression engine or specific expression functions Feature Request
Projects
None yet
4 participants