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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Sxbbb
Creator III
Creator III

Want to Count Average

Average compared to Upper and Lower If the value is between Upper and Lower  count ( green numbers). If the value is not between Upper and Lower count the red numbers.

Suchanan_0-1666408212535.png

 

 

1 Reply
sidhiq91
Specialist II
Specialist II

@Sxbbb  Firstly use the below script in the back end:

NoConcatenate
Temp:
Load * inline [
Average,Upper Limit,Lower Limit,Accept,Reject
45.62,52.01, 42.99,40,0
35.62,52.01, 42.99,40,0
];

NoConcatenate
Temp1:
Load *,
if(Average>[Lower Limit] and Average<[Upper Limit],'Accept','Reject') as flag
Resident Temp;

Drop table Temp;

Exit Script;

Then use the Expression as show below in the front end:

sidhiq91_0-1666450975247.png

If this resolves your issue, please like and accept it as a solution.