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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
bharatkishore
Creator III
Creator III

Syntax issue

Hi All,

i have the below sql code :

where (IB <>0 and IB is not NULL)
or (Consumption<> 0 and consumption is not NULL);


and when i write in qlikview  i am getting 0 records.. Qlikview code is below on:


where (IsNull(IB) and IB<>'0') or (IsNull(Consumption) and Consumption<>'0')


Can you please tell me where i am doing wrong.


Thanks,

Bharat

1 Solution

Accepted Solutions
sunny_talwar

I think the SQL query is saying is not null, but you are doing IsNull in QlikView?

Capture.PNG

May be you want this

Where (NOT IsNull(IB) and IB <> '0') or (NOT IsNull(Consumption) and Consumption<>'0')

View solution in original post

3 Replies
sunny_talwar

I think the SQL query is saying is not null, but you are doing IsNull in QlikView?

Capture.PNG

May be you want this

Where (NOT IsNull(IB) and IB <> '0') or (NOT IsNull(Consumption) and Consumption<>'0')

bharatkishore
Creator III
Creator III
Author

Thank you sunny bhai.. just saw that and replaced My bad..

sunny_talwar

No problem