<?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 - plz help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-plz-help/m-p/515136#M482913</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got a few free minutes...&amp;nbsp; From your explanation, it should be this:&lt;/P&gt;&lt;P&gt;count({1&amp;lt;Geschlecht = {0}, Eintritt={"$(= '&amp;lt;' &amp;amp; DATE(Monthstart(TODAY(), 0)))"},&amp;nbsp; Austritt = {"$(= '&amp;gt;' &amp;amp; DATE(today()))"}&amp;gt;} DISTINCT PN)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the example - you can reduce the application to make it small, and scramble the data (except these two dates). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jul 2013 16:45:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-07-24T16:45:26Z</dc:date>
    <item>
      <title>Set analysis - plz help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-plz-help/m-p/515126#M482903</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;can anyone explain to me how I can use set analysis combining (operators other than &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt; with a dynamic expression?&lt;/P&gt;&lt;P&gt;- With an expression, I know that $(=) thing. Sometimes, for some reason I also have to enclose that in quotes.&lt;/P&gt;&lt;P&gt;- With other operators, the examples in my book say I have to use double quotes (""). &lt;/P&gt;&lt;P&gt;=&amp;gt; How to combine the two so I will have, e.g.: &lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;gt;&amp;gt;&amp;nbsp; Date1 after the start of the month before now &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 15:56:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-plz-help/m-p/515126#M482903</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-07-23T15:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - plz help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-plz-help/m-p/515127#M482904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I want to use date conditions, aspecialy more than one, I use this set:&lt;/P&gt;&lt;P&gt;{&amp;lt;DateField={"$(= '&amp;gt;=' &amp;amp; date(expression for one date) ) &amp;amp; '&amp;lt;=' &amp;amp; date(expression for another date) "}&amp;gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 16:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-plz-help/m-p/515127#M482904</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-23T16:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - plz help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-plz-help/m-p/515128#M482905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OMG&amp;nbsp; - I'll have to write this down.&lt;/P&gt;&lt;P&gt;Thanks a lot, Michael!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 16:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-plz-help/m-p/515128#M482905</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-07-23T16:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - plz help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-plz-help/m-p/515129#M482906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry, can you help me once more? I just cannot spot the mistake:&lt;/P&gt;&lt;P&gt;I have this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; count({1&amp;lt;Geschlecht = {"0"}, Eintritt={"$(= '&amp;lt;=' &amp;amp; Monthstart(TODAY(), -1))"}, Austritt = {"$(= '&amp;gt;=' &amp;amp; Monthend(TODAY(), -1))"}&amp;gt;}DISTINCT PN)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should just return the count of employees of this gender in the last month. It does return a value, but different from the one I get using just the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;Geschlecht = {0}&amp;gt;}DISTINCT PN)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and manually selecting the dates, using advanced search expressions - exactly the same expression, I've checked several times. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 08:14:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-plz-help/m-p/515129#M482906</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-07-24T08:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - plz help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-plz-help/m-p/515130#M482907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friedrich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is essential to use date() function in set, like&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;date(&lt;/STRONG&gt;Monthstart(TODAY(), -1))&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Same for the monthend, or any date expression at all.&amp;nbsp; It is an important part of the generic example in my previous answer.&lt;/P&gt;&lt;P&gt;And, no need for "" around 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 10:20:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-plz-help/m-p/515130#M482907</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-24T10:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - plz help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-plz-help/m-p/515131#M482908</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;I understand that "0" is over the top, it was just a try. Why the DATE()? The functions &lt;/P&gt;&lt;P&gt;- TODAY() and &lt;/P&gt;&lt;P&gt;- Monthstart(TODAY(), -1)&lt;/P&gt;&lt;P&gt;return a date, don't they?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 10:28:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-plz-help/m-p/515131#M482908</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-07-24T10:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - plz help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-plz-help/m-p/515132#M482909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not really, it is in fact a timestamp...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 10:31:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-plz-help/m-p/515132#M482909</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-24T10:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - plz help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-plz-help/m-p/515133#M482910</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;it is still returning different values: I have now changed it to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; count({1&amp;lt;Geschlecht = {0}, Eintritt={"$(= '&amp;lt;=' &amp;amp; DATE(Monthstart(TODAY(), -1)))"}, Austritt = {"$(= '&amp;gt;=' &amp;amp; DATE(Monthend(TODAY(), -1)))"}&amp;gt;}DISTINCT PN)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still, when I compare it to that other code that works only with regular selections, it is different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is also possible that the reason lies elsewhere - I have the date originally in format YYYYMMDD, but as a STRING - so I rearrange it in the script to have it in DD.MM.YYYY format. The table viewer shows me it's now a date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The strange thing about this is that when I use the same thing to specify the current month, it works fine and it returns the same result that I get without any set_analysis (safe for the gender) when just doing regular selections, whether or not&lt;EM&gt; &lt;/EM&gt;I use that additional DATE() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 10:39:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-plz-help/m-p/515133#M482910</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-07-24T10:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - plz help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-plz-help/m-p/515134#M482911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you have now is &lt;STRONG&gt;technically &lt;/STRONG&gt;correct.&amp;nbsp; The question is - is it correct &lt;STRONG&gt;logically&lt;/STRONG&gt;?&amp;nbsp; &lt;BR /&gt;First, there is nothing to return if you look for the date &lt;STRONG&gt;earlier than month start and later than the same month end&lt;/STRONG&gt;.&lt;BR /&gt;Next, the function monthend() returns the last milisecond on the last date, which is in your case the end of the day June 30, 2013.&amp;nbsp; Date() returns the integer date, that is the beginning of July 30.&amp;nbsp; The counts for that date may be not included, depending on formats.&lt;BR /&gt;In your expression, try this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({1&amp;lt;Geschlecht = {0}, Eintritt={"$(= '&lt;STRONG&gt;&amp;gt;=&lt;/STRONG&gt;' &amp;amp; DATE(Monthstart(TODAY(), -1)))"}, Austritt = {"$(= '&lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt;' &amp;amp; DATE(&lt;STRONG&gt;Monthstart&lt;/STRONG&gt;(TODAY(), &lt;STRONG&gt;0&lt;/STRONG&gt;)))"}&amp;gt;}DISTINCT PN)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it doesn't work, upload an example.&amp;nbsp; (Not sure if I'll have more time today, sorry)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 12:33:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-plz-help/m-p/515134#M482911</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-24T12:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - plz help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-plz-help/m-p/515135#M482912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the help!&lt;/P&gt;&lt;P&gt;I'm afraid I won't be able to provide an example. I'm handling personell data here, and I have a bad feeling about it myself since this really is a red-hot issue in Germany...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eintritt and Austritt are two different dates - "Eintritt" is the date an employee joined the company, "Austritt" is when he left it.&lt;/P&gt;&lt;P&gt;I want to capture, sticking with this example, all employees that joined the company BEFORE the start of this month and who did not yet leave - that is, their leaving date is after today.&lt;/P&gt;&lt;P&gt;It is also logically correct as far as I can oversee it - but it doesn't work. I'm puzzled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 13:28:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-plz-help/m-p/515135#M482912</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-07-24T13:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - plz help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-plz-help/m-p/515136#M482913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got a few free minutes...&amp;nbsp; From your explanation, it should be this:&lt;/P&gt;&lt;P&gt;count({1&amp;lt;Geschlecht = {0}, Eintritt={"$(= '&amp;lt;' &amp;amp; DATE(Monthstart(TODAY(), 0)))"},&amp;nbsp; Austritt = {"$(= '&amp;gt;' &amp;amp; DATE(today()))"}&amp;gt;} DISTINCT PN)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the example - you can reduce the application to make it small, and scramble the data (except these two dates). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 16:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-plz-help/m-p/515136#M482913</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-24T16:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - plz help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-plz-help/m-p/515137#M482914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we're still now quite on the same page:&lt;/P&gt;&lt;P&gt;As I told you - making it stranger still - it works fine for the current period (the syntax example you have would return the number of employees that joined before this month's start and did not leave until today. That works fine.&lt;/P&gt;&lt;P&gt;What does not work is when I try the same, only replacing (Monthstart(TODAY())) with (Monthstart(TODAY(), -1))&lt;/P&gt;&lt;P&gt;It is then that I suddenly get different values.&lt;/P&gt;&lt;P&gt;I will see about the example asap - but it might be a while. Sorry, I have to jump a bit between my priorities and something else is more pressing as it is wished_for by management - I'll be back here as soon as I've had the time to do some more testing. Please follow this thread. &lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 08:20:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-plz-help/m-p/515137#M482914</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-07-25T08:20:06Z</dc:date>
    </item>
  </channel>
</rss>

