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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
rohitians
Creator III
Creator III

EXPRESSION PROBLEM

Hello,

if(ISNULL(PROD_GROUP_NAME) OR LEN(PROD_GROUP_NAME)=0,1,0) AS IsMissingProductGrp,

    

      if(ISNULL(THERAPEUTIC_NAME ) OR LEN(THERAPEUTIC_NAME )=0,1,0  ) AS IsMissingProductTherapy,

In the above two expressions i want to add one condition in the first one is if PROD_ID=0 then i need IsMissingProductGrp as 1

      

add  if THERAPEUTIC_NAME=OTHERS then i need  IsmissingProductTherapy as 1,

Thanks and Regards,

Rohit

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Try this.

     if(PROD_ID = 0,1,

      if(ISNULL(PROD_GROUP_NAME) OR LEN(PROD_GROUP_NAME)=0,1,0)) AS IsMissingProductGrp,

     and

     If(THERAPEUTIC_NAME = 'OTHERS',1,

if(ISNULL(THERAPEUTIC_NAME ) OR LEN(THERAPEUTIC_NAME )=0,1,0  )) AS IsMissingProductTherapy

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

2 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Try this.

     if(PROD_ID = 0,1,

      if(ISNULL(PROD_GROUP_NAME) OR LEN(PROD_GROUP_NAME)=0,1,0)) AS IsMissingProductGrp,

     and

     If(THERAPEUTIC_NAME = 'OTHERS',1,

if(ISNULL(THERAPEUTIC_NAME ) OR LEN(THERAPEUTIC_NAME )=0,1,0  )) AS IsMissingProductTherapy

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
rohitians
Creator III
Creator III
Author

It was small but I am learning thanks for your support...

.