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: 
rohan_mulay
Partner - Creator
Partner - Creator

Limit the number of selections for a field

Hii All,

I have a requirement where I should allow the user to select any 3 months randomly from the month field. Not more than 3 months should be selected.

Pls help

1 Solution

Accepted Solutions
SunilChauhan
Champion II
Champion II

see the attched file for example

You can do two things

1) you can hide chart on more than 3 selections ( chart1 in attached file)

2) you can display some message on more than three selection ( chart2 in attached file)

hope this helps

Sunil Chauhan

View solution in original post

6 Replies
SunilChauhan
Champion II
Champion II

getselectedcount( fieldname)<=3

hope this helps

Sunil Chauhan
sujeetsingh
Master III
Master III

But where to set the expression

SunilChauhan
Champion II
Champion II

use in Layout of a chart

and you can also display some message after more than 3 selections

Sunil Chauhan
SunilChauhan
Champion II
Champion II

see the attched file for example

You can do two things

1) you can hide chart on more than 3 selections ( chart1 in attached file)

2) you can display some message on more than three selection ( chart2 in attached file)

hope this helps

Sunil Chauhan
rohan_mulay
Partner - Creator
Partner - Creator
Author

Hii Sunil,

Where have you set the error message.. ?? i checked it in the chart properties>error message but didnt find....

SunilChauhan
Champion II
Champion II

chart properties-> genral tab

calculation condition

and for error message

error message-> calculation candition unfilled

hope this helps

Sunil Chauhan