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

Qlik: Straight table expression issue

Hi,

We have 4-5 expressions in a straight table where one of them is a calculation of a percentage. In most cases this field shows data but for some it shows 'NA' as we have replaced the Null and missing characters '-' to show 'NA'.

Has anyone faced a similar issue?

6 Replies
giakoum
Partner - Master II
Partner - Master II

yes many times

but we cannot help you without a sample app

it is the calculation that is failing. Most likely your denominator is null or 0

alexandros17
Partner - Champion III
Partner - Champion III

a percentage is like

a/b, if b is 0 or is null the result is null so you have NA

Siva_Sankar
Master II
Master II

Can you upload the application with sample data? or try debuggin the expression..may be by copy pasting the expression in text box

Anonymous
Not applicable
Author

If you dont want this you can do this, so have 0 and not null/Na:

if(isnull(b),0,if(b=0,0,a/b))

Not applicable
Author

Guys,

This is not the case!!

When I click on  the associated dimension, I get the correct data showing up. I should have highlighted this in the previous message.

This is simply wierd to me!!

giakoum
Partner - Master II
Partner - Master II

do you use aggr in your expression? a sample app would help otherwise it is going to be a guessing game