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

Extract Numbers under and over null

Hello again,

I have a colum with different numbers over and under null.

Savings
2
-2
3
0
-5

1. I would have only the numbers over null, how can i extract

2. How Can i extract the numbers under null?

After that I will make a summ over the Saving with 1. over null and 2. under null.

Could anybody help me.

Thanks.

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Not sure about over and under Null as Null doesn't exist, but over and under 0 can be found summarised with these fields:

TableName:

LOAD

  Savings,

  if(Savings>0,Savings) AS OverSavings,

  if(Savings<0,Savings) AS UnderSavings,

  if(Savings>0,1) AS OverCount,

  if(Savings<0,1) AS UnderCount,

FROM. ... TableSource;

Should be able to do Sum(OverCount) and Sum(UnderCount) in a chart.

Jonathan

View solution in original post

1 Reply
Anonymous
Not applicable
Author

Not sure about over and under Null as Null doesn't exist, but over and under 0 can be found summarised with these fields:

TableName:

LOAD

  Savings,

  if(Savings>0,Savings) AS OverSavings,

  if(Savings<0,Savings) AS UnderSavings,

  if(Savings>0,1) AS OverCount,

  if(Savings<0,1) AS UnderCount,

FROM. ... TableSource;

Should be able to do Sum(OverCount) and Sum(UnderCount) in a chart.

Jonathan