Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I need some help to figure out how to insert a variable column name in an expression, and that expression to RETURN as expected.
My case:
with attribute('rt_id') = 'UCM000010' -- I obtain an unique ID value stored in column "rt_id" for any current_feature within main.table
lv.table contain 1 column for each feature from main.table, with name as feature.rt_id to which is referring to.
I try to retrieve information from dedicated column(along others) within lv.table for each feature within main.table.
If I write the expression as:
aggregate(
)
I have the correct RETURN as:
'10010640 - 1 stk
10010413 - 10.99 lfm
10028103 - 10.99 lfm'
When I try to insert that "column_name" dynamic as:
aggregate(
)
expression don't identify what column_name was referring to, RETURN only "code" & "um", but for ALL rows & not values from specific column(with "filter" excluded because the RETURN was empty IF no column identified correctly):
'10010640 - stk
10010713 - stk
10010776 - lfm
......
So, clearly, expression don't take that feature.rt_id correct in consideration and RETURN without information from that column within lv.table. I try also with "@current_feature" OR "current_value", same wrong result.
How should I pass correctly that feature attribute as column name in builder expression as the RETURN to be as expected?
Thank you in advance for your time and help!
Beta Was this translation helpful? Give feedback.
All reactions