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

check this statement it is not working (Aoiding null values)

sum

(if(trim(IS_MIN=1 and IS_MIN<>11 and IS_MIN <>0), (if(cm=null() , [CM],0))+ (if(OTHER_CM=null() , [OTHER_CM],0)), null())))





1 Solution

Accepted Solutions
Not applicable
Author

Hi,

sum(if(trim(IS_MIN=1) and trim(IS_MIN<>11) and trim(IS_MIN <>0),

((if(cm=null() , [CM],0))+ (if(OTHER_CM=null() , [OTHER_CM],0)))))

try this.

i hope it help's

Regards,

chandra

View solution in original post

8 Replies
Not applicable
Author

Hi,

sum(if(trim(IS_MIN=1) and trim(IS_MIN<>11) and trim(IS_MIN <>0),

((if(cm=null() , [CM],0))+ (if(OTHER_CM=null() , [OTHER_CM],0)))))

try this.

i hope it help's

Regards,

chandra

Not applicable
Author

It is giving o result, it is not working.

Thankyou for quick response

Regards

Akmal Imtiaz

tresesco
MVP
MVP

Hi Akmal,

Can you explain in words what you want (your logic) ? and one more thing, if you verify a post, it means it is working for, you.

Regards, tresesco

Not applicable
Author

CM and OTHER_CM may have null values ,du to this reason this statament is not giving result.

Regards

Akmal Imtiaz

Not applicable
Author

Both of these statement are not working.

Statement no. 1

=

sum(

if

(trim(IS_MIN=1 and IS_MIN<>11 and IS_MIN <>0), (if(cm=null() , [CM],0))+ (if(OTHER_CM=null() , [OTHER_CM],0)), null

()))



Statement no. 2

=

sum(if(trim(IS_MIN=1) and trim(IS_MIN<>11) and trim(IS_MIN <>0), ((if(cm=null() , [CM],0))+ (if(OTHER_CM=null() , [OTHER_CM]

,0)))))



Not applicable
Author

Hi,

please find attachment. i tried with one example, still u r not get solution post app with sample data.

Thanks,

Chandra

Not applicable
Author

It is not working.

Not applicable
Author

Thank you very much, it is working.