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

QV 11 Dimension Limits with negative values

Hi,

Please take a look at the attached file.

I use the Dimension Limits to illustrate Pareto principle, by something go wrong.

Why are also displayed the negative values?

How can I avoid displaying negative values?

Thanks,

Have a nice day

2 Replies
Not applicable

use this dimension: =if(Sales>0,Partener)

It works as designed. If restriction condition is set to "Show only values that accumulate to xxx relative to the total", negative values are not included in the calculation of the total ("Restriction sum", that is the total that is used for evaluating the restriction for a particular row). The reason for this is the following:

Imagine the following case:

A

2

1

-3

The sum for this field is 0, which is undefined when you do relative calculation. What is the 40% limit of the sum 0 in this case? And how many values should be displayed?

The way to handle these questions, that makes most sense is to discard the negative values before performing the restrictions. Doing so, The sum is 3 and the 40% limit is more intuitive (1.2). Thus the value 1 will be shown.

A good is advice is to avoid relative restrictions when there are negative values as this can lead to a behaviour that is difficult to forsee (even though it is well defined)

Not applicable

Hi Bili,

Find the attached QVW file... Hope it helps...

Best Regards,

Nitesh