Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
ankuragrawal
Partner - Contributor
Partner - Contributor

Where clause not working as expectation

LOAD
Sno,
"Date",
"Time",
"State/UnionTerritory" as State,
ConfirmedIndianNational,
ConfirmedForeignNational,
Cured,
Deaths,
Confirmed
FROM [lib://DataFiles/covid_19_india.csv]
(txt, utf8, embedded labels, delimiter is ',', msq)
where "State/UnionTerritory" <>'Cases being reassigned to states' or 'Unassigned';

this code is only filtering Cases to be reassigned not unassigned

Please help

1 Solution

Accepted Solutions
GaryGiles
Specialist
Specialist

where "State/UnionTerritory" <>'Cases being reassigned to states'  and

"State/UnionTerritory" <> 'Unassigned' and

Not isnulll("State/UnionTerritory");

View solution in original post

4 Replies
GaryGiles
Specialist
Specialist

Since you are using <>, I think you want to use AND and specify "State/UnionTerritory" twice, like this:

 

where "State/UnionTerritory" <>'Cases being reassigned to states'  and

"State/UnionTerritory" <> 'Unassigned';

ankuragrawal
Partner - Contributor
Partner - Contributor
Author

Its working perfectly fine now,Can you also help me to know, how to remove null values from same column

GaryGiles
Specialist
Specialist

where "State/UnionTerritory" <>'Cases being reassigned to states'  and

"State/UnionTerritory" <> 'Unassigned' and

Not isnulll("State/UnionTerritory");

ankuragrawal
Partner - Contributor
Partner - Contributor
Author

still null values are appearing at the data model, is null and space same?