Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

chitraxi
New Contributor II

GetSelectedCount() is not working while using set analysis in filter pane

Hi All,

I have to use following set analysis in filter pane: if(Category<>'ABC', Category)


Now I have to print whatever values are selected In Text & image object. But getSelectedCount(Category) is 0 and getFieldSelectings(Category) is returning null even after selecting values

1 Solution

Accepted Solutions
shraddha_g
Honored Contributor III

Re: GetSelectedCount() is not working while using set analysis in filter pane

Try creating new field in Script

if(Category<>'ABC', Category) as NewCategory



Use this field in Filter Pane

and try

getSelectedCount(NewCategory) and GetFieldSelections(NewCategory)

3 Replies
shraddha_g
Honored Contributor III

Re: GetSelectedCount() is not working while using set analysis in filter pane

Try creating new field in Script

if(Category<>'ABC', Category) as NewCategory



Use this field in Filter Pane

and try

getSelectedCount(NewCategory) and GetFieldSelections(NewCategory)

hf-group
Contributor III

Re: GetSelectedCount() is not working while using set analysis in filter pane

Hi,

how can you select in a text & image object?

As far as i know that is not possible.

The get commands only works for filters you can see in the filterpane?

Can you upload a example app?

MVP
MVP

Re: GetSelectedCount() is not working while using set analysis in filter pane

May be try this for your filter pane

Aggr(Only({<Category -= {'ABC'}>} Category), Category)