Use attribute values as attribute names
Hi All,
I am trying to automate one of the processes. Just like we can use macros as attribute names, is it possible to use attribute values as attribute names? Any expression for that?
For example: I am creating few Quarter & year concatenations dynamically based on dates for each row.
These are like: Q1_Y1, Q2_Y2,...................Qn_Yn
The values of these are: Q3_19, Q4_19.......................etc
Now, these values Q3_19, Q4_19 stored in Q1_Y1 Q2_Y2 are actually column names from the example dataset which i need to use for doing some filters dynamically.
Is it possible to use Q1_Y1 value as an attribute name using some expression? I tried using attribute(Q1_Y1) but it doesnt workout.
Please help.
I am trying to automate one of the processes. Just like we can use macros as attribute names, is it possible to use attribute values as attribute names? Any expression for that?
For example: I am creating few Quarter & year concatenations dynamically based on dates for each row.
These are like: Q1_Y1, Q2_Y2,...................Qn_Yn
The values of these are: Q3_19, Q4_19.......................etc
Now, these values Q3_19, Q4_19 stored in Q1_Y1 Q2_Y2 are actually column names from the example dataset which i need to use for doing some filters dynamically.
Is it possible to use Q1_Y1 value as an attribute name using some expression? I tried using attribute(Q1_Y1) but it doesnt workout.
Please help.