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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set to return a value from a table

QV Gurus, one and all

I have been stumped on this one for quite a while.

I have a table which has four headings...Area, MinPt, MaxPt, DaysHence

I need to develop a set that returns the value in DaysHence, where the result of a forumla within the same table (let's call it TP) is greater than MinP and less than MaxP

I have tried combinations of the following with max, Only, Sum, Min etc, but to no avail.

=sum({<MinPt = {"<=[TP]"},MaxPt = {"<=[TP]"}>}DaysHence)

I believe the problem will lie with the use of the Field name [TP]...would anyone know a way around it?

The forumula that creates [TP] is a combination nested if/set evaluation using two programmable variables, so i donlt know if it can be included in it's raw form

Thanks in advance

Rick Green

1 Solution

Accepted Solutions
Not applicable
Author

Thank you all for your help. In the end I created a new table in excel with all the possible values (value will never go over 2000) and have referenced that directly, rather than try the greater than and equal to approach.

View solution in original post

3 Replies
anbu1984
Master III
Master III

=sum({<MinPt = {"<=[TP]"},MaxPt = {">=[TP]"}>}DaysHence)

sujeetsingh
Master III
Master III

Rick,

As per my level of thinking i will define this new field in script with checking nested iff conditions.

Just do it and iff needed then provide a sample

Not applicable
Author

Thank you all for your help. In the end I created a new table in excel with all the possible values (value will never go over 2000) and have referenced that directly, rather than try the greater than and equal to approach.