Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to count based on values in fields

Hi,

I have a table like this loaded in Qlikview.

IDMeasuredValueLowerLimitUpperLimit
27233037
56353236

31

302540

Now I want to count how many IDs that are outside the limits, and I have problems to get it to work.

If I use the expression below I get the behaviour that I want for the first row in the table.

count({ < MeasuredValue={">30<=37"} >} ID)

What I want is to replace 30 and 37 with the fields LowerLimit and UpperLimit to work for a big table, but I can't get it to work.

Can someone help me?

Thank you!

1 Reply
marcelviegas
Creator II
Creator II

if(MeasuredValue>lowerLimit and MeasuredValue<=UpperLimit,count(ID))