Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Paknanarn23
Creator II
Creator II

The sum of the 2 tables is not equal

I have entered the code But the total results are not equal.

=( if([Average] <= [Spec (Upper limit)]
and [Average] >= [Spec (Lower limit)],1,0))

Paknanarn23_0-1666591583304.png

 

Labels (1)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

=AGGR(  if([Average] <= [Spec (Upper limit)]
and [Average] >= [Spec (Lower limit)],1,0), [Panel ID])

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

4 Replies
Mark_Little
Luminary
Luminary

HI @Paknanarn23 

It will be down to aggregation. Take a look AGGR function.

You will need to make the the calc is being done at the correct level in the top level.

Paknanarn23
Creator II
Creator II
Author

Hi Mark

I did, the sum is not correct. Can you have the code for me?

vinieme12
Champion III
Champion III

=AGGR(  if([Average] <= [Spec (Upper limit)]
and [Average] >= [Spec (Lower limit)],1,0), [Panel ID])

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Paknanarn23
Creator II
Creator II
Author

Hi Vineeth 

I've tried that and the values still don't match.

Paknanarn23_0-1666670931250.png