Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

QlikView forum consolidation is complete. Labels are now required. LEARN ABOUT LABELS
Showing results for 
Search instead for 
Did you mean: 
Contributor II
Contributor II

Dividing 2 Expressions in a chart: A Different result for the 'same' calculation.

I have an annoying and rather difficult to explain problem.
My data model uses a calendar table (to generate a complete calandar) and it's linked to a data table on one field.

It doesn't link to any other tables in the model.

My 'chart' uses the calendartable as a dimension (by month, week , year), and the values from the data table to calculate the expressions.

Expression "Amount_Open"


Expression "Amounth_Payed)"

So if I want the % payed





If I calculate essentially the same column using
[Amount_Open] / [Amount_Payed]

I get a difference of several %.

The actual code is a bit more complex  as there is a some basic set analysis in the sums to filter out certain data rows. And the actual Amounth Due And payed is calculated from several fields as well.
However It's the same in both expressions. I don't believe it's a rounding error as even rounding to 0.00000001 doesn't impact the result I get from the combined expression.

Any suggestions on where to look for the problem?

4 Replies

Would you be able to share a screenshot of the two expressions in a straight table?

Contributor II
Contributor II

Thx for the reply.

Here's a cleaned up test table.


And by putting it in a smaller test table...
I just noticed the expression for 'Payed' did not filter out the invalid records, but the expression for % payed did.
My bad, will have to debug in small test tables more often .


So is the issue resolved for you now?

Contributor II
Contributor II

Yes, The issue was me not noticing an obvious error because I was "debugging" in a cluttered table