<?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 Re: Set analysis for one field greater than another in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-for-one-field-greater-than-another/m-p/342861#M572250</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So current date is your selectabledate and a data island from where you select one value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=count(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{&amp;lt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;terminationdate = {"&amp;gt;=$(=only(CurrentDate))"},&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;employmentdate ={"&amp;lt;=$(=only(CurrentDate))"}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;} &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;distinct employeenum)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Aug 2012 17:54:43 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-08-07T17:54:43Z</dc:date>
    <item>
      <title>Set analysis for one field greater than another</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-for-one-field-greater-than-another/m-p/342855#M572244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets say I have two fields that I would like to use in set analysis.&amp;nbsp; One of them is YearField1 and the other is YearField2.&amp;nbsp; How to I get the set of values where YearField1&amp;gt;=YearField2 and YearType1&amp;lt;=YearField3?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 14:59:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-for-one-field-greater-than-another/m-p/342855#M572244</guid>
      <dc:creator />
      <dc:date>2012-08-07T14:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis for one field greater than another</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-for-one-field-greater-than-another/m-p/342856#M572245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum({$&amp;lt;[&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;YearField1&lt;/SPAN&gt;]={"&amp;gt;=$([&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;YearField2]&lt;/SPAN&gt;)"}, [&lt;SPAN style="color: #636363; font-size: 12px; background-color: #eef4f9; font-family: Arial;"&gt;YearType1&lt;/SPAN&gt;]={"&amp;lt;=$([&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;YearField3&lt;/SPAN&gt;]&lt;/SPAN&gt;)"}&lt;/P&gt;&lt;P&gt;&amp;gt;} [Sales])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;depending on your field names&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 15:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-for-one-field-greater-than-another/m-p/342856#M572245</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2012-08-07T15:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis for one field greater than another</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-for-one-field-greater-than-another/m-p/342857#M572246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For some reason, that gives me the total of all selections regardless of the selection I make.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 16:14:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-for-one-field-greater-than-another/m-p/342857#M572246</guid>
      <dc:creator />
      <dc:date>2012-08-07T16:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis for one field greater than another</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-for-one-field-greater-than-another/m-p/342858#M572247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to create a primary key since you want to select single records, right?&lt;/P&gt;&lt;P&gt;For example, use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;recno() as RecID,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your script to create the Key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you can try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=sum({$&amp;lt;RecID = {"=YearField1&amp;gt;=YearField2"}*{"=YearType1&amp;lt;=Yearfield3"} &amp;gt;} [Sales])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=sum({$&amp;lt;RecID = {"=YearField1&amp;gt;=YearField2 and YearType1&amp;lt;=Yearfield3"} &amp;gt;} [Sales])&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 16:20:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-for-one-field-greater-than-another/m-p/342858#M572247</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-08-07T16:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis for one field greater than another</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-for-one-field-greater-than-another/m-p/342859#M572248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you post a sample application?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 16:28:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-for-one-field-greater-than-another/m-p/342859#M572248</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2012-08-07T16:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis for one field greater than another</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-for-one-field-greater-than-another/m-p/342860#M572249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically I have 2 fields, termination date and employment date.&amp;nbsp; I want a count of people that are employed at my company monthly so I want terminationdate&amp;gt;selectabledate and employmentdate&amp;lt;selectabledate.&amp;nbsp; I tried doing an inline load for current date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 16:54:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-for-one-field-greater-than-another/m-p/342860#M572249</guid>
      <dc:creator />
      <dc:date>2012-08-07T16:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis for one field greater than another</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-for-one-field-greater-than-another/m-p/342861#M572250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So current date is your selectabledate and a data island from where you select one value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=count(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{&amp;lt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;terminationdate = {"&amp;gt;=$(=only(CurrentDate))"},&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;employmentdate ={"&amp;lt;=$(=only(CurrentDate))"}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;} &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;distinct employeenum)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 17:54:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-for-one-field-greater-than-another/m-p/342861#M572250</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-08-07T17:54:43Z</dc:date>
    </item>
  </channel>
</rss>

