Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Basic Calculation (Addition) not working right in Transform

Hi All,

The Calculation

SECT A +SECT B/ 2 (if SECT A and SECT B not null)

SECT A + SECT B / 1 ( if SECT A is 0 and SECT B is not null)

is working fine in Table Chart, but not in Any other Charts

Below is the formula i used in expression

( if(isnull([SECT A])=0,[SECT A],0) + if(isnull([SECT B])=0,[SECT B],0) )

/
( if(isnull([SECT A]),0,1) + if(isnull([SECT B]),0,1) )

2 Replies
phaneendra_kunc
Partner - Specialist III
Partner - Specialist III

Hi Neelima,

Can you post a sample...

Regards,

Phani

tanelry
Partner - Creator II
Partner - Creator II

I think you can simplify your calculation to just this:

RangeAvg([SECT A],[SECT B])

Range functions are usually immune to null values which makes them handy.