Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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.