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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

GetSelectedCount() in another Alternate State

Hi,

I have a situation where I need GetSelectedCount(Field) into a Text Box in "Inherited State".

"Field" in Alternate State - "State A".

The following expression does not give the count for the "Field" in State "State A", but returns the count of the same Field in Inherited State instead.

=max({State A} GetSelectedCount(Field))

Please note: My requirement is to achieve this without changing the state of the text object to "State A".

Please assist.

Thanks,

Vijit

5 Replies
amit_saini
Master III
Master III

Try this:

='Test'&chr(32)&if(GetSelectedCount(Your_Field)>0,'- '&GetFieldSelections(Your_Field))

Thanks,
AS

tresesco
MVP
MVP

I am afraid that this would not be possible.

jagan
Partner - Champion III
Partner - Champion III

Hi Vijit,

I think it is not possible, because you don't have any parameters apart from FieldName for GetSelectedCount() and GetFieldSelections().

Regards,

Jagan.

Anonymous
Not applicable
Author

Have you tried something like :

          =count (  distinct {State A} Field )

jagan
Partner - Champion III
Partner - Champion III

Hi Bill,

=count (  distinct {State A} Field )

This will return possible values not selected values.

Regards,

Jagan.