Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Simple Expression

Hi All,

My expression,

SUM('BRO_ORC'+'AGE_ORC'+'GRO_ORC'+'DIRECT_ME')-('ORC_COM')

where 'BRO_ORC','AGE_ORC,'GRO_ORC, 'DIRECT_ME' and 'ORC_COM' are field name of my table.

Even expression status shows "OK" , the calculation is not done.

Regards,

Priyantha.

4 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Try This

SUM(BRO_ORC+AGE_ORC+GRO_ORC+DIRECT_ME-ORC_COM)


or this


SUM(BRO_ORC+AGE_ORC+GRO_ORC+DIRECT_ME)-SUM(ORC_COM)


let me know

Not applicable
Author

Both are not working.......

alexandros17
Partner - Champion III
Partner - Champion III

Replace sum with rangesum so you have:

rangesum(BRO_ORC,AGE_ORC,GRO_ORC,DIRECT_ME)

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

If any one field is null, the row will evaluate as null, regardless of the value of the other fields. RangeSum() will fix that. Your complete expression will then be:

Sum(RangeSum(BRO_ORC, AGE_ORC, GRO_ORC, DIRECT_ME, -ORC_COM))


HTH

Jonathan


Logic will get you from a to b. Imagination will take you everywhere. - A Einstein