Skip to main content

App Development

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

Announcements
QlikWorld 2023, a live, in-person thrill ride. Save $300 before February 6: REGISTER NOW!
cancel
Showing results for 
Search instead for 
Did you mean: 
chitraxi
Contributor II
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

Labels (1)
1 Solution

Accepted Solutions
shraddha_g
Partner - Master III
Partner - Master III

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)

View solution in original post

4 Replies
shraddha_g
Partner - Master III
Partner - Master III

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)

Ralf_Heukäufer
Partner - Creator III
Partner - Creator III

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?

sunny_talwar

May be try this for your filter pane

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

ahana
Partner - Contributor II
Partner - Contributor II

@sunny_talwar can you explain why aggr() works but if() doesn't? Thanks!