Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
paulyeo11
Master
Master

Why one condition work when add one more condition it return wrong value ?

Hi All


My expression below work fine :-


sum(if([Sales Stage]='Sales_Fulfillment',(Amount)))


But when i want to add one more condition , it does not give the correct result :-

sum(if([Sales Stage]='Closed_Won' or 'Sales_Fulfillment',(Amount)))


if i use and , it does not display any value. ( below expression is wrong , so cannot use and )

sum(if([Sales Stage]='Closed_Won' and 'Sales_Fulfillment',(Amount)))


May i know where go wrong ?


Paul Yeo

1 Solution

Accepted Solutions
kenphamvn
Creator III
Creator III

Hi

Try this

sum({<[Sales Stage] ={'Closed_Won','Sales_Fulfillment'} >} Amount)

Regards

An Pham

View solution in original post

5 Replies
paulyeo11
Master
Master
Author

my QVW

kenphamvn
Creator III
Creator III

Hi

Try this

sum({<[Sales Stage] ={'Closed_Won','Sales_Fulfillment'} >} Amount)

Regards

An Pham

paulyeo11
Master
Master
Author

Hi An Pham

Thank you

So it is possible to use if instead of SET ?

Paul

kenphamvn
Creator III
Creator III

Hi

Yes

you can using If statement instead SET

sum(if([Sales Stage]='Closed_Won' or [Sales Stage] ='Sales_Fulfillment',(Amount)))

Regards

An Pham

paulyeo11
Master
Master
Author

Hi Pham

Thank you very much , now i know where i make the mistake

Paul