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: 
Not applicable

Field with value NULL

Hi all,

Somebody can help me?

Like the sample attached, how can I create a column ( name K) with value 5 if value k1 is Null and value Altro is not NULL, otherwise K set up with value of field K1?

Thank All

5 Replies
Not applicable
Author

Hi,

Attach your data sources.

i could see only application.

- Sridhar

Not applicable
Author

Hi,

Try droping your 1st table using below code.

drop table Sez1;

Note:

The above drop statement should be the last line of your script.

- Sridhar

sathishkumar_go
Partner - Specialist
Partner - Specialist

HI try this expression



if

(IsNull(K1) =-1 and IsNull(Altro)=0, 5) as K

its not working then attach ur excel file here

-Sathish





Not applicable
Author

Sorry,

Now I attach the file QLV and the file Excel.

Thank All

Not applicable
Author

Hi,

Check the attahed application now.

I would suggest you to go for len() function instead of isnull()

- Sridhar