Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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