<?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 analysis with multiple Date Variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-multiple-Date-Variables/m-p/630114#M231269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Help Please i'm have difficulty with Set below basically I need to select only ID's for a date range that are in the second date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works with the static 2013 year selected:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13999189473077289" jivemacro_uid="_13999189473077289"&gt;
&lt;P&gt;=Count(Distinct {&amp;lt;_LK_Period={"&amp;gt;=$(SelectDateFrom) &amp;lt;=$(SelectDateTo)"}, [PlayerMaster PeopleID] = {"=Count(Distinct {&amp;lt;[PlayerMaster Year Registered] = {2013}&amp;gt;}&amp;nbsp; [PlayerMaster PeopleID])&amp;gt;0"} &amp;gt;}[PlayerMaster PeopleID])&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have been trying to do is get the second date range based on 2 other variable SelectDateFromPre and SelectDateFromTo&lt;SPAN style="color: rgba(0, 0, 0, 0); font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif;"&gt;Eand &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the same SelactDateFrom and SelectDateTo but with Addmonths()-12 to give the previous years data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13999189090918470" jivemacro_uid="_13999189090918470"&gt;
&lt;P&gt;=Count( {&amp;lt;_LK_Period={"&amp;gt;=$(SelectDateFrom) &amp;lt;=$(SelectDateTo)"}, [PlayerMaster PeopleID] = {=Count({$ &amp;lt;_LK_Period={"&amp;gt;=$(=SelectDateFromPre) &amp;lt;=$(=SelectDateToPre)"} &amp;gt;}[PlayerMaster PeopleID])&amp;gt;0 } &amp;gt;}Distinct [PlayerMaster PeopleID])&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 May 2014 18:16:16 GMT</pubDate>
    <dc:creator>cbutcher</dc:creator>
    <dc:date>2014-05-12T18:16:16Z</dc:date>
    <item>
      <title>Set analysis with multiple Date Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-multiple-Date-Variables/m-p/630114#M231269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Help Please i'm have difficulty with Set below basically I need to select only ID's for a date range that are in the second date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works with the static 2013 year selected:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13999189473077289" jivemacro_uid="_13999189473077289"&gt;
&lt;P&gt;=Count(Distinct {&amp;lt;_LK_Period={"&amp;gt;=$(SelectDateFrom) &amp;lt;=$(SelectDateTo)"}, [PlayerMaster PeopleID] = {"=Count(Distinct {&amp;lt;[PlayerMaster Year Registered] = {2013}&amp;gt;}&amp;nbsp; [PlayerMaster PeopleID])&amp;gt;0"} &amp;gt;}[PlayerMaster PeopleID])&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have been trying to do is get the second date range based on 2 other variable SelectDateFromPre and SelectDateFromTo&lt;SPAN style="color: rgba(0, 0, 0, 0); font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif;"&gt;Eand &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the same SelactDateFrom and SelectDateTo but with Addmonths()-12 to give the previous years data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13999189090918470" jivemacro_uid="_13999189090918470"&gt;
&lt;P&gt;=Count( {&amp;lt;_LK_Period={"&amp;gt;=$(SelectDateFrom) &amp;lt;=$(SelectDateTo)"}, [PlayerMaster PeopleID] = {=Count({$ &amp;lt;_LK_Period={"&amp;gt;=$(=SelectDateFromPre) &amp;lt;=$(=SelectDateToPre)"} &amp;gt;}[PlayerMaster PeopleID])&amp;gt;0 } &amp;gt;}Distinct [PlayerMaster PeopleID])&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 18:16:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-multiple-Date-Variables/m-p/630114#M231269</guid>
      <dc:creator>cbutcher</dc:creator>
      <dc:date>2014-05-12T18:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with multiple Date Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-multiple-Date-Variables/m-p/630115#M231270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe&lt;/P&gt;&lt;P&gt;=Count( {&amp;lt;_LK_Period={"&amp;gt;=$(SelectDateFrom) &amp;lt;=$(SelectDateTo)"}, [PlayerMaster PeopleID] = {"=Count({$ &amp;lt;_LK_Period={'&amp;gt;=$(=SelectDateFromPre) &amp;lt;=$(=SelectDateToPre)'} &amp;gt;}[PlayerMaster PeopleID])&amp;gt;0" } &amp;gt;}Distinct [PlayerMaster PeopleID])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 18:25:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-multiple-Date-Variables/m-p/630115#M231270</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-05-12T18:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with multiple Date Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-multiple-Date-Variables/m-p/630116#M231271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;You sir are a star &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;SPAN class="emoticon-inline emoticon_happy" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 18:28:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-multiple-Date-Variables/m-p/630116#M231271</guid>
      <dc:creator>cbutcher</dc:creator>
      <dc:date>2014-05-12T18:28:35Z</dc:date>
    </item>
  </channel>
</rss>

