🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Use attribute values as attribute names

User: "achint_kumar"
New Altair Community Member
Updated by Jocelyn
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.

Find more posts tagged with