Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
deepakkrish
Creator
Creator

Multiple If Condition

Hello All,

I have one table it has 4 columns , first column has all the table names second one is null values and third column is not null values.  I want to display led gauge based on some condition . see below is my table ..

Table:

Tablenullnot nullled 
Table 135green
Table221green
Table369Red

 

condition for led :

if($Table='Table1', count(Table1.Name)>=2 and wildmatch(Table1.address,'Delhi','bangalore'),green(),

if($Table='Table2' , count(Table2.Name)>=5 and match(Table2.Pin,'123','456'),green(),red())))

how to write multiple if condition to show color for LED column?  Give me your ideas ,solutions .

Thanks in advance.

Krish.

3 Replies
zhadrakas
Specialist II
Specialist II

maybe this:

if($Table='Table1' AND count(Table1.Name)>=2 and wildmatch(Table1.address,'Delhi','bangalore'),green(),

       if($Table='Table2' AND count(Table2.Name)>=5 and match(Table2.Pin,'123','456'),green()

             ,red())))

Brett_Bleess
Former Employee
Former Employee

Deepak, did Tim's post help you get things working as you wished?  If so, be sure to come back and use the Accept as Solution button on his post to give him credit and let others know that did work.  If you are still working on things, please leave an update for us.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.
Surya
Creator II
Creator II

Hello., Try This

if(wildmatch(Table,'Table1'),count(Name) >= 2 and wildmatch(Address,'Delhi','banglore'),Green(),

if(wildmatch(Table,'Table2'),count(Name) >=5 and wildmatch(Pin,'123','456'),Red()))