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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
roee1983
Contributor III
Contributor III

Presenting Negetive Values


Hi all,

How can I ignore negative values ?

I have a table with next values

Table A:

pro1,15

pro2,30

pro3,-40

How can I prevent showing the negative record?

thanks

Roee

1 Solution

Accepted Solutions
Not applicable

Hi

by using filter u prevent negetive values

let suppose customer is ur dimension and sum(sales) is expression

in ur dimension tab use below expression

=if(Sales > 0, Company,Null())

then u avoid the negetive values,

View solution in original post

26 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

If you want to restrict in script then use the below script

LOAD

*

FROM Table

WHERE Value >= 0;

If you want to do the same in expression then use the below expression

=Sum({<Value={'>0'}>} Value)

Regards,

Jagan.

Anonymous
Not applicable

Roee

Try using a Chart of Type Straight Table and a calculated dimension :

=if ( Value > 0 , Pro , null() )

See attached qvw.

Best Regards,     Bill

Clever_Anjos
Employee
Employee

sum(if(yourfield>0,yourfield))

tresesco
MVP
MVP

If you want the negative values to be excluded during load, try like :

Load Field1,

          Field2

From <> Where Field2>=0;

If you want to restrict only in the fron-end (table), try like:

If(Field2>=0, Field2)    , this you could try in list box or in calculated dimension or even in an expression.

MayilVahanan

Hi

Try like this

Load * from tablename where values > 0;

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
vikasmahajan

You can select option Suppress When Values is Null Option in pivot table.

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
Not applicable

You want to ignore negative values or you want to show negative values are in postive.

qlikpahadi07
Specialist
Specialist

Hi Roee,

you can simply remove with if condition

if Sum(<column A >)<0, Sum(<column A >)

nizamsha
Specialist II
Specialist II

use fabs in the column in your script for eg : fabs(amount)