<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Set to return a value from a table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-to-return-a-value-from-a-table/m-p/640053#M234593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QV Gurus, one and all &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been stumped on this one for quite a while.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table which has four headings...Area, MinPt, MaxPt, DaysHence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried combinations of the following with max, Only, Sum, Min etc, but to no avail.&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;MinPt = {"&amp;lt;=[TP]"},MaxPt = {"&amp;lt;=[TP]"}&amp;gt;}DaysHence)&lt;/P&gt;&lt;P&gt;I believe the problem will lie with the use of the Field name [TP]...would anyone know a way around it?&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rick Green&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2014 03:35:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-05T03:35:42Z</dc:date>
    <item>
      <title>Set to return a value from a table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-to-return-a-value-from-a-table/m-p/640053#M234593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QV Gurus, one and all &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been stumped on this one for quite a while.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table which has four headings...Area, MinPt, MaxPt, DaysHence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried combinations of the following with max, Only, Sum, Min etc, but to no avail.&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;MinPt = {"&amp;lt;=[TP]"},MaxPt = {"&amp;lt;=[TP]"}&amp;gt;}DaysHence)&lt;/P&gt;&lt;P&gt;I believe the problem will lie with the use of the Field name [TP]...would anyone know a way around it?&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rick Green&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 03:35:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-to-return-a-value-from-a-table/m-p/640053#M234593</guid>
      <dc:creator />
      <dc:date>2014-06-05T03:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set to return a value from a table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-to-return-a-value-from-a-table/m-p/640054#M234594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum({&amp;lt;MinPt = {"&amp;lt;=[TP]"},MaxPt = {"&lt;STRONG style="font-size: 14pt;"&gt;&amp;gt;=&lt;/STRONG&gt;[TP]"}&amp;gt;}DaysHence)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 05:12:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-to-return-a-value-from-a-table/m-p/640054#M234594</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-06-05T05:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set to return a value from a table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-to-return-a-value-from-a-table/m-p/640055#M234595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rick,&lt;/P&gt;&lt;P&gt;As per my level of thinking i will define this new field in script with checking nested iff conditions.&lt;/P&gt;&lt;P&gt;Just do it and iff needed then provide a sample &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 05:57:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-to-return-a-value-from-a-table/m-p/640055#M234595</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-06-05T05:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set to return a value from a table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-to-return-a-value-from-a-table/m-p/640056#M234596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 10:54:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-to-return-a-value-from-a-table/m-p/640056#M234596</guid>
      <dc:creator />
      <dc:date>2014-06-12T10:54:51Z</dc:date>
    </item>
  </channel>
</rss>

