Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
sundarakumar
Specialist II
Specialist II

Alternate state field selection

Hi all,

Am having a field called "area", i have used alternate states in my chart.

One of my bar chart is in alternate state called "alter"...

now i want to show the current field selection of "area" in alternate state "alter".

I want to show them while right click and print the chart.

when i check Print Selection stamp, its showin me the current selection in default alternate state.

topost.PNG.png

I can show them in the trainlng text

topost1.PNG.png

but even there i cannot selct any altenate state.

Can someone pls help in writing an expression like

=concat(getfieldselctions({alter}area),' - ').

but the above shown expression doesnt work.

is there a way to show the field selection of a particular alternate state, without selection the alternate state in the objec.

Thanks in advance.

-Sundar

1 Solution

Accepted Solutions
8 Replies
simondachstr
Specialist III
Specialist III

GetFieldSelections does not include a set identifier but concat does.

Try something like the following:

=concat({alter} getfieldselctions(area),' - ').

Not applicable

Try this

=concat (getfieldselctions ({alter} area),' - ')

sundarakumar
Specialist II
Specialist II
Author

Thanks for the reply. It is still returing the selections in inherited alternate state, i think it is because the the alternate state is specified in the out expression. Any other suggessions?

sundarakumar
Specialist II
Specialist II
Author

Thanks for the reply. its not working. It is showing error. looks like i cannot specify alternate state for getfieldselection.

-Sundar

MK_QSL
MVP
MVP

Getfieldselections doesn't support alternate states.

But, You can try the concat function

concat({[alter]} distinct area, '-').

sundarakumar
Specialist II
Specialist II
Author

Thanks for the reply.

But i want to show the currently selected field alone... Any workarounds?

-Sundar

MK_QSL
MVP
MVP

sundarakumar
Specialist II
Specialist II
Author

Thanks everyone...