Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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,
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.
Roee
Try using a Chart of Type Straight Table and a calculated dimension :
=if ( Value > 0 , Pro , null() )
See attached qvw.
Best Regards, Bill
sum(if(yourfield>0,yourfield))
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.
Hi
Try like this
Load * from tablename where values > 0;
You can select option Suppress When Values is Null Option in pivot table.
Vikas
You want to ignore negative values or you want to show negative values are in postive.
Hi Roee,
you can simply remove with if condition
if Sum(<column A >)<0, Sum(<column A >)
use fabs in the column in your script for eg : fabs(amount)