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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
richard_chilvers
Specialist
Specialist

Multiple selections

My table has records which are identified by an account code and the region code for that account.

I want to be able to select on some region codes together with some account codes not in those regions. This seems a straight forward OR selection, but forces me to work as a AND selection.

I look forward to some help.

Thanks

Labels (1)
1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

QlikView always works with an AND-logic between fields. But you can create OR-situations by creating a smart data model. Try the following, and you will get a selection field that you can use for OR-selections.

SourceData:

Load

   RecID,

   Region,

   Account

   From Source ;

SelectionField:

Load

   RecID

   'R: ' & Region as SelectionField

   Resident SourceData;

Load

   RecID

   'A: ' & Account as SelectionField

   Resident SourceData;

HIC

View solution in original post

3 Replies
hic
Former Employee
Former Employee

QlikView always works with an AND-logic between fields. But you can create OR-situations by creating a smart data model. Try the following, and you will get a selection field that you can use for OR-selections.

SourceData:

Load

   RecID,

   Region,

   Account

   From Source ;

SelectionField:

Load

   RecID

   'R: ' & Region as SelectionField

   Resident SourceData;

Load

   RecID

   'A: ' & Account as SelectionField

   Resident SourceData;

HIC

er_mohit
Master II
Master II

see the attached file of AND mode list box

richard_chilvers
Specialist
Specialist
Author

Thank you.

I have tried this and it works well.

I thought there might have been an easier solution though