Qlik Community

Ask a Question

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
Welcome to our newly redesigned Qlik Community! Read our blog to learn about all the new updates: READ BLOG and REPORTED ISSUES
cancel
Showing results for 
Search instead for 
Did you mean: 
Contributor
Contributor

Help with images anf 'if' condition!!

Hello guys, i'm kind of new at this, and my question is next:

i would like to appear or hidde an image depending result of a list , for example, i have 'FlagImages', 'Names' and 'TimesVisited',

FlagImages = images of countries

Names= names of persons

TimesVisited= the ammount of countries they have visited

This names represent people that could have visit different countries, and what i'm triying to do is that when select a name on this list i need to show with a flag image  all different nations this person  have visited, it could be 2 or 6, etc.

I know how to hide or appear a text object on wich i have set the image: if(country = 'mexico',1,0) at condition chart

but how can i tell that  depending of a result of a different table it will be the image and the amount of flags?.

I guess in sql could be like this:  SELECT IF(result of list name = 'name')TimesVisited FROM person.

I've tried next on each object : if(NameList = 'peter',1,0) at text object/design/condition. The result should be  3

different flags images appearing but no flag is deployed, 

P.s.

sorry for gramatics apreciate any help please!!

1 Solution

Accepted Solutions
Specialist II
Specialist II

Try the formula below in the conditional show for the flags.

If(Count({$<country={'mexico'}*P(country)>}NameList) > 0,1,0)

View solution in original post

2 Replies
Specialist II
Specialist II

Try the formula below in the conditional show for the flags.

If(Count({$<country={'mexico'}*P(country)>}NameList) > 0,1,0)

View solution in original post

Contributor
Contributor

THANKS it worked!