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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Limiting contents of a list box

I have a list box with a Field Name entitle 'ANATOMICAL MAIN GROUP'  Under this field, there are the following records:

  1. ALIMENTARY TRACT AND METABOLISM
  2. BLOOD AND BLOOD FORMING ORGANS
  3. CARDIOVASCULAR SYSTEM
  4. DERMATOLOGICALS
  5. GENITOURINARY SYSTEM
  6. HOMORNAL SYSTEM
  7. ANTI-INFECTIVES
  8. ANTINEOPLASTICS

How can i limit the contents of the list box to say:

  1. CARDIOVASCULAR SYSTEM
  2. ALIMENTARY TRACT AND METABOLISM
  3. ANTI-INFECTIVES

Thank you in advance

19 Replies
ali_hijazi
Partner - Master II
Partner - Master II

send me your excel sheet and I'll send you a sample qvw and show you how it works

I can walk on water when it freezes
Anonymous
Not applicable
Author

Ali please find herewith the excel sheet.

regards.

Chris

ali_hijazi
Partner - Master II
Partner - Master II

check attached qvw file

I can walk on water when it freezes
Anonymous
Not applicable
Author

Ali

Thank you very much, it works.  The expression is in the caption properties of the list box.  Can i restrict the list box to apply to certain sheets only within the application?

Thanks in advance.

ali_hijazi
Partner - Master II
Partner - Master II

yes you can by using alternative states tell me exactly what is required to achieve and I will help u achieve it

I can walk on water when it freezes
Anonymous
Not applicable
Author

Hi Ali

Thank you very much for all your help,most appreciated.  Attached is a screen shot of my application which has 7 sheets and 9 list boxes.  I would want for example, the doctors name, market, payment type to apply say to the Reports, Prescription Trending and Market Shares sheets only when any one of them is being used for current selections.  Can this be done?

RegardsScreen Shot 2014-11-15 at 09.17.42.png

ali_hijazi
Partner - Master II
Partner - Master II

yes Christopher

but what you are requesting is the default behavior of Qlik

please elaborate more

I can walk on water when it freezes
Anonymous
Not applicable
Author

Many thanks for the response.

What i mean is that if i select a doctor's name when i am on the Reports sheet, i do not want that filter to be applied say on the market shares sheet. 

ali_hijazi
Partner - Master II
Partner - Master II

then create 2 alternate states one for each sheet then assign all objects and charts to respective state this way you separate each sheet from selections made on another sheet

go to settings ->document properties -> general tab alternate states

but if you want your only one chart to not be affected by doctor name selection then in your expression on that chart add in your. Set analysis a condition to ignore doctor name selection {<doctor_name=>}

I can walk on water when it freezes
Anonymous
Not applicable
Author

Ali

Many thanks i will try that