Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

if the user hasn't selected any choices, it defaults to a predefined choice.

Before the user has selected any choice from a field (in this case a dimension), all choices are selected. I'd like to make it so that if the user hasn't selected any choices, it defaults to a predefined choice.

This is what I've tried in the field equation editor of the graph.

if(GetSelectedCount([sem type])=0,

  if(match([sem type], 'Vietnam'), [Term Code]),

    [Term Code]   

  )

if nothing is selected, set it to 'Vietnam', otherwise, use what the user has selected.

It does set it initially to 'Vietnam', but when I change it to another choice, it doesn't work.

0 Replies