Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to suppress Negitive Values

Dear All

No NameAmt1Commi
101Sankar100200
101Sankar-250
102ram200100
102ram-500

i wat to suppress Negitive values and Zero's

help me please.......................

Regards

Sankar

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hi Sankar,

You need to use the same set analysis in all three expressions, so the values are not even shown. So if Amt1 works with

Sum({< Amt1 = {">0"} >} Amt1)

Amt2 should work with

Sum({< Amt1 = {">0"} >} Amt2)

And likewise Commi

Sum({< Amt1 = {">0"} >} Commi)

Hope that helps.

Miguel

View solution in original post

10 Replies
brenner_martina
Partner - Specialist II
Partner - Specialist II

Hi, Sankar,

you can use the expression:

If(Sum(Amt1)>0,Sum(Amt1))

Greetings from Munich

Martina

EVACO GmbH

IAMDV
Luminary Alumni
Luminary Alumni

Hi Sankar,

I am not sure which chart object you are using. However you can use something like this...

If( Amount1 <= 0, White( ) )

You can change the text color to white. So the users wont see these values.

Please post a QV document as sample if you need more help.

Cheers - DV

brenner_martina
Partner - Specialist II
Partner - Specialist II

Hi, Sankar,

you can use in my if-statement followinmg else-statements:

If(Sum(Amt1)>0,Sum(Amt1),0)

If(Sum(Amt1)>0,Sum(Amt1),'')

If(Sum(Amt1)>0,Sum(Amt1),NULL())

Miguel_Angel_Baeyens

Hi,

I'd use a set analysis instead to make the chart perform faster avoiding the use of conditionals:

Sum({< Amt1 = {">0"} >} Amt1)

Hope that helps.

Miguel

Not applicable
Author

Thx to all

all Queries are working fine.My source like below

No NameAmt1Amt2Commi
101Sankar100500200
101Sankar-25250
102ram200300100
102ram-50500

but i want to display as below

No NameAmt1Amt2Commi
101Sankar100500200
102ram200300100

suppress and delete the row.

Regards

Sankar

IAMDV
Luminary Alumni
Luminary Alumni

Hi Sankar,

Have you tried Miguel's Set Analysis expression? That should work in your requirement.

Cheers - DV

Not applicable
Author

Hi

I tried Miguel's Set Analysis expression but it is displaying as below

No NameAmt1Amt2Commi
101Sankar100500200
101Sankar0250
102ram200300100
102ram0500

my target is as below

No NameAmt1Amt2Commi
101Sankar100500200
102ram200300100
Miguel_Angel_Baeyens

Hi Sankar,

You need to use the same set analysis in all three expressions, so the values are not even shown. So if Amt1 works with

Sum({< Amt1 = {">0"} >} Amt1)

Amt2 should work with

Sum({< Amt1 = {">0"} >} Amt2)

And likewise Commi

Sum({< Amt1 = {">0"} >} Commi)

Hope that helps.

Miguel

SunilChauhan
Champion
Champion

In dimension take No, Name

in first expression take

sum(if(Amt1>0,Amt1))

in second exp

sum(if(Amt1>0,Amt2))

in third

exp

sum(if(Amt1>0,Commi))

hope this helps

Sunil Chauhan