I´m working with two layers in QGIS:
First one with point geometries representing water quality sampling places (LAYER A).
The second is a spreadsheet (no geometries) that contains pollution values at different times (LAYER B).
Both layers linked with a relate (one to many) based on the station ID. Relate works as the LAYER B data are preented in the info form when clicking LAYER A features.
The aim is to get time series graphs using Data Plotly plugin, but apparently it is not designed to work with relates.
I´ve come to the conclussion that the only way to get the plots is to set LAYER B in the plugin and then limit the feature subset to the records that match the STATION_ID of the selected feature in LAYER A. I´ve tried this with an expression of the sort
STATION_ID =
aggregate(layer,aggregate,expression
[,filter][,concatenator])
where layer is LAYER A, aggregate is 'concatenate', and expression would be the field contaning the STATION_ID
but cannot guess what the expression of the filter should be so that only the data of the selected feature is presented in the plot. Also i´m aware that in case that more than one features are selected, the concatenate wouldn`t work.
Any idea how to solve this? Another way to get the selected STATION_ID from LAYER A?