Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
alan_grn
Creator II
Creator II

Referencing Group in Expression

I have a group in an expression adn would liek to know how to reference it. I Would like to chneg the heading of a column depending on the group that is selected.

2 Replies
johnw
Champion III
Champion III


alan_grn wrote:I have a group in an expression adn would liek to know how to reference it. I Would like to chneg the heading of a column depending on the group that is selected.


I don't believe it is possible to reference the selected expression.

As a workaround, you can create fields with names corresponding to each expression. Make a field group instead of an expression group. In your expression, use getcurrentfield(FieldGroup) to figure out which expression to use. You can then use getcurrentfield(FieldGroup) for other purposes.

See attached. I'm changing the expression's label, the "expression", and the sort order based on the current field from the group.

Not applicable

Thanks John,

It's works

Regards,