<?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 needed with a Set-analys in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-needed-with-a-Set-analys/m-p/269930#M1179999</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hmm, I was able to get the 999999999 posts as well the dateformated post by load the table twice were I use the Date(Date#..function in the last load...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;&amp;nbsp;&amp;nbsp; StopDate&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;[C:\Qlikview Filer....&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;Date(Date#(StopDate, 'YYYYMMDD'), 'YYYY-MM-DD') as StopDate&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;[C:\Qlikview Filer\.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don´t look pretty so any suggestion how to make it easier are welcome!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jan 2012 19:02:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-12T19:02:02Z</dc:date>
    <item>
      <title>Help needed with a Set-analys</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-a-Set-analys/m-p/269927#M1179994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. I hope anyone can help me with a SET-analys (I think I´s a set-analys...) that I´m not even can figure out were to start with.. =(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 4 listboxes&lt;/P&gt;&lt;P&gt;1) StartDate (YYYY-MM-DD)&lt;/P&gt;&lt;P&gt;2) StopDate (YYYY-MM-DD)&lt;/P&gt;&lt;P&gt;3) UserType&lt;/P&gt;&lt;P&gt;4) UserID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To this I have connected a calender with year and months. CalendarYear and CalendarMonthName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I select a month and year I can se how many users that have a StopDate and StartDates, I get the result in a pivot by the simple expression &lt;/P&gt;&lt;P&gt;=Count(StartDate) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that I cant figure out how to get how many that are active/ have a startdate but not a enddate. Can someone help me out with this?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 10:37:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-a-Set-analys/m-p/269927#M1179994</guid>
      <dc:creator />
      <dc:date>2012-01-12T10:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with a Set-analys</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-a-Set-analys/m-p/269928#M1179996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand your problem. You are trying to select something that isn't there.&lt;/P&gt;&lt;P&gt;If you have a startdate of 01-01-2010 end an enddate of 31-01-2010 you want it to count it as active if you select for example 12-01-2010 ,right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a few ways to do this. One is to create a new field in your script (activedate) which is genereate for every day between the startdate and the enddate. That way you have select and count on that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An other way is to you a macro and a button which will make a selection (from-till) on one or more fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at the atteched file for an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also : &lt;A _jive_internal="true" href="https://community.qlik.com/message/169783#169783"&gt;http://community.qlik.com/message/169783#169783&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 12:21:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-a-Set-analys/m-p/269928#M1179996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-12T12:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with a Set-analys</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-a-Set-analys/m-p/269929#M1179998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks for the help. I tryed that but I did´t fully worked but I think why (but don´t know any solution)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I load the script I have to do like this to make the date-field to be a actually date, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Date(Date#(StopDate, 'YYYYMMDD'), 'YYYY-MM-DD') as StopDate&lt;/P&gt;&lt;P&gt;That because the date are just a string with numbers, 20120131 and QW wont reconise it as a date if a don´t do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have also looked at the sourcefile and the field with no stopdate are actually printed as 9999999999&lt;/P&gt;&lt;P&gt;But when I do the Date(Date#.... the posts with 999999 disapears. Anyone that knows how to overcome this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 18:44:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-a-Set-analys/m-p/269929#M1179998</guid>
      <dc:creator />
      <dc:date>2012-01-12T18:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with a Set-analys</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-a-Set-analys/m-p/269930#M1179999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hmm, I was able to get the 999999999 posts as well the dateformated post by load the table twice were I use the Date(Date#..function in the last load...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;&amp;nbsp;&amp;nbsp; StopDate&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;[C:\Qlikview Filer....&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;Date(Date#(StopDate, 'YYYYMMDD'), 'YYYY-MM-DD') as StopDate&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;[C:\Qlikview Filer\.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don´t look pretty so any suggestion how to make it easier are welcome!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 19:02:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-a-Set-analys/m-p/269930#M1179999</guid>
      <dc:creator />
      <dc:date>2012-01-12T19:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with a Set-analys</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-a-Set-analys/m-p/269931#M1180000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or what you could do somthing like below in your load scrip is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;If(StopDate = '99999999' , 2999-12-31 , Date(Date#(StopDate, 'YYYYMMDD'), 'YYYY-MM-DD')) as StopDate,&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;From ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way it will change '99999999'&amp;nbsp; into 2999-12-31 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 08:59:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-a-Set-analys/m-p/269931#M1180000</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-13T08:59:28Z</dc:date>
    </item>
  </channel>
</rss>

