Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
Not applicable

If Condition ?

Any Body can post applications related to

1. If condition

2. If Else condition

3. Nested If condition

Thanks,

Helen

3 Replies
Not applicable

Re: If Condition ?

Attached is a basic example.

Hope it helps.

Thanks

AJ

Not applicable

Re: If Condition ?

HI Ajay, help me to write in QV Scripting at Back End....

if(service_type==CPE)

{

  SQL Select Stmt...

 

    if(Value>0)

     {

  SQL select Stmt...

  If (No data)

   {

     SQL select Stmt..

   }

      }

  else

            {

  SQL select Stmt..

        If (No data)

          {

             SQL select Stmt..

          }

      }

}

Thanks,

Helen

mangalsk
Contributor III

Re: If Condition ?

Hello,

Try this:

=if(service_type='CPE','st1',if(Value>0,'st2',if(isnull(Value),'st3',if(isnull(service_type),'st5','st4'))))

and provide sample data if it doesn't work.

Regards

Community Browser