<?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: Help with a set in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-a-set/m-p/375612#M139948</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, I don´t get it to work. It don´t calculate the Start/enddate=...Year(today).... right, The start and end-date are in the format of 2010-12-01 &lt;/P&gt;&lt;P&gt;I also have a Year field from the calendar, if I only wright Count({$&amp;lt;Year= {'$(=(Year(Today())-1))'}&amp;gt;} PeopleID) I get all the PeopleId that exist last year so the expression by it self works well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I someway add Year(startdate) in the set?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Mar 2012 18:21:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-29T18:21:25Z</dc:date>
    <item>
      <title>Help with a set</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-set/m-p/375609#M139945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I´m trying to do a Set that gives me "reactivated" peoples. table PeopleID. I have a table with EndDate and one with StartDate. I want to get those with a Enddate =Year(Today()-1) and startdate =Year(Today()) &lt;/P&gt;&lt;P&gt;Do I have to make some variable in the script for this? I was trying with the set/script generator at qlikblog but have not been sucessful. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me? Would be greatfull!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 14:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-set/m-p/375609#M139945</guid>
      <dc:creator />
      <dc:date>2012-03-29T14:02:45Z</dc:date>
    </item>
    <item>
      <title>Help with a set</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-set/m-p/375610#M139946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something along the lines of this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;Enddate= {"$(=year(today())-1)"},Startdate= {"$(=year(today()))"}&amp;gt;} PeopleID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 14:07:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-set/m-p/375610#M139946</guid>
      <dc:creator />
      <dc:date>2012-03-29T14:07:18Z</dc:date>
    </item>
    <item>
      <title>Help with a set</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-set/m-p/375611#M139947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;Enddate= {'$(=(Year(Today())-1))'},Startdate= {'$(=Year(Today()))'}&amp;gt;} PeopleID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year(Today())-1 will give you the previous and assigning it to Enddate&lt;/P&gt;&lt;P&gt;Year(Today()) will give you the current year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 14:39:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-set/m-p/375611#M139947</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-03-29T14:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a set</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-set/m-p/375612#M139948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, I don´t get it to work. It don´t calculate the Start/enddate=...Year(today).... right, The start and end-date are in the format of 2010-12-01 &lt;/P&gt;&lt;P&gt;I also have a Year field from the calendar, if I only wright Count({$&amp;lt;Year= {'$(=(Year(Today())-1))'}&amp;gt;} PeopleID) I get all the PeopleId that exist last year so the expression by it self works well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I someway add Year(startdate) in the set?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 18:21:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-set/m-p/375612#M139948</guid>
      <dc:creator />
      <dc:date>2012-03-29T18:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a set</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-set/m-p/375613#M139949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understood well, you have two fields: EndDate and StartDate, in a table with PeopleID field too. You want to know how many people ends last year, but begin again current year. Also, EndDate and StartDate aren´t in Date dual format, but only in string "YYYY-MM-DD" Format. (if it's like that, why you said in first post that EndDate=Year(Tioday()-1)? this will give you only year number in EndDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's ok, you don't need to compare years, but yes complete dates. In the script, if EndDate and StartDate were in date format, you could do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;Count({$&amp;lt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EndDate= {"&amp;lt;=$(=(Date(Today()-1,'YYYY-MM-DD'))"},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; StartDate&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;= {"&amp;gt;=$(=(Date(Today(),'YYYY-MM-DD'))"}&lt;/SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;} PeopleID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, confirm the format of the fields EndDate and StartDate, because if it were =Year(Today()) style, Jagan and Marc are right...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 20:02:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-set/m-p/375613#M139949</guid>
      <dc:creator>sebastiandperei</dc:creator>
      <dc:date>2012-03-29T20:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a set</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-set/m-p/375614#M139950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I may have misunderstod the use of year(today()).. but I have got it to work when in script make Year(Startdate) as startdateyear and same for enddate and then use them in the set as &lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #0000ff; font-size: 1;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;enddateyear=P(enddateyear),InsatsAvslutadÅr=P(InsatsAvslutadÅr),startdateyear=P(startdateyear)&amp;gt;} Distinct peopleid)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2012 08:55:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-set/m-p/375614#M139950</guid>
      <dc:creator />
      <dc:date>2012-03-30T08:55:44Z</dc:date>
    </item>
  </channel>
</rss>

