Re: [Qgis-user] Select data from a specific layer

2021-05-18 Thread Dario
 I try to answer without attached images (size limit)... values are correct. I made first a virtual field in which I have "N" or "R" in the "Colore" filed through an expression and it works. My problem is the colour now. I tried also with 'Colore' instead of "Colore", but nothing change. H

Re: [Qgis-user] Select data from a specific layer

2021-05-17 Thread Ujaval Gandhi
get_feature() will get you the feature.Your current expression will get you the first feature from 'V_TB_ATTIVITA_PT_NR' layer where the "Colore" value is 'N'. - I don't think that is what you want. You need to query for a feature from another layer that relates to the current feature, (using a co

Re: [Qgis-user] Select data from a specific layer

2021-05-17 Thread Delaz J
Hi Dario, Could you try with 'Colore' and not "Colore" (pay attention to the simple vs double quotes)? Regards, Harrissou Le 18/05/2021 à 00:41, Dario C a écrit :   Hi, thank you for your reply, but I still don't understand how to do... sorry i tried to write this code in colour expressio

Re: [Qgis-user] Select data from a specific layer

2021-05-17 Thread Dario C
Hi, thank you for your reply, but I still don't understand how to do... sorry i tried to write this code in colour expression, but I don't understand what "value" is in get_feature : CASE When get_feature('V_TB_ATTIVITA_PT_NR',"Colore",'N')='N' then color_rgb (0,0,0) When get_feature('V_TB_ATTI

[Qgis-user] Select data from a specific layer

2021-05-16 Thread Dario
Hi, I should get some data from a specific field of a specific layer but I’m stuck. I’m using “Data Ploty” plug-in and I’d like to customise the colour of the chart using expression. As I’m working on layout I can’t see any field into expression menu, so I need to call a specific layer and the