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

Announcements
Annual Conference: Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

If and AND statement

Hey guys,

STREET              NUMBER          COMPANY 

Lowland               5                        Datatec

Lowland               7                        Datatec

Lowland               10                      StrategicAnalysis

Buitenland             24                     Conecxion

Spoorweg              16                     InfoTec

Spooweg               20                      Datatec

Heuvel                   3                      Lifestyle

Milieu                    14                     BrainTec

Lowland                 8                       BrainTec

Milieu                     9                       Datatec

Heuvel                    6                      Datatec

Highland                 15                    Healthcaresolutions

Lowland                   11                   Healthcaresolutions    

From the table above I want to be able to say : IF COMPANY = Datatec AND STREET = Lowland AND NUMBER = 5, then a message should be displayed "The best HighTec Company" . Please any help on how to write these expression?                        

1 Solution

Accepted Solutions
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

If(COMPANY = 'Datatec' and STREET = 'Lowland' and NUMBER = 5, 'The best HighTec Company', 'Other') as Score

This works for your needs.

Screenshot_1.jpg

View solution in original post

4 Replies
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

If(COMPANY = 'Datatec' and STREET = 'Lowland' and NUMBER = 5, 'The best HighTec Company', 'Other') as Score

This works for your needs.

Screenshot_1.jpg

avinashelite

try like this

if(COMPANY = Datatec AND STREET = Lowland AND NUMBER = 5,'The best HighTec Company')

swuehl
MVP
MVP

For example, create a text box with expression:

=IF( COMPANY = 'Datatec' AND STREET = 'Lowland' AND NUMBER = 5,'The best HighTec Company')

and also create a show condititon on layout tab:

=COMPANY = 'Datatec' AND STREET = 'Lowland' AND NUMBER = 5

This will show the message if you have limited the data set to only these values.

Not applicable
Author

Hey Avinash,

Thanks alot it worked.

Best,Simon