<?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: Count with Left in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-with-Left/m-p/536580#M200574</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again Nicole.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jan 2014 16:26:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-20T16:26:41Z</dc:date>
    <item>
      <title>Set Analysis: Count with Left</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-with-Left/m-p/536576#M200570</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'm trying to count the numbers of Matters opened in a given time period, and the expression I currently have is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Count({&amp;lt;left(MATTER.OPEN_DATE, 4)={$(YTD)}&amp;gt;} (MATTER.CLNT_MATT_CODE))&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;Where MATTER.OPEN_DATE is of the format '1901-01-01 00:00:00.000'&lt;/P&gt;&lt;P&gt;YTD is a variable, an example of which is '2014'&lt;/P&gt;&lt;P&gt;and MATTER.CLNT_MATT_CODE is a unique identifier for a Matter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The QV expression editor indicates that the expression is OK, but the above expression returns no data (I would expect a count of thousands).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I'd appreciate any suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks, Gavin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 15:00:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-with-Left/m-p/536576#M200570</guid>
      <dc:creator />
      <dc:date>2014-01-20T15:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: Count with Left</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-with-Left/m-p/536577#M200571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't have a calculation to the left of the equal sign in set analysis.&amp;nbsp; Try this:&lt;/P&gt;&lt;P&gt;Count({&amp;lt;MATTER.OPEN_DATE={'=left(MATTER.OPEN_DATE, 4)=$(YTD)'}&amp;gt;} MATTER.CLNT_MATT_CODE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that doesn't work, you need to create a new field left(MATTER.OPEN_DATE, 4) as NewField in your script and use that in the set analysis instead:&lt;/P&gt;&lt;P&gt;Count({&amp;lt;NewField={$(YTD)}&amp;gt;} MATTER.CLNT_MATT_CODE)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 15:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-with-Left/m-p/536577#M200571</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-20T15:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: Count with Left</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-with-Left/m-p/536578#M200572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Nicole. I think that would have worked perfectly, however for some reason the 'Left' function is not behaving as I would have expected. Instead of returning, for example, '2014', it is instead returning, for example '4165'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I realise that this is a separate question so will mark this as correct. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 15:55:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-with-Left/m-p/536578#M200572</guid>
      <dc:creator />
      <dc:date>2014-01-20T15:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: Count with Left</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-with-Left/m-p/536579#M200573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of left(MATTER.OPEN_DATE, 4), go with year(MATTER.OPEN_DATE).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 16:02:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-with-Left/m-p/536579#M200573</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-20T16:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: Count with Left</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-with-Left/m-p/536580#M200574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again Nicole.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 16:26:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-with-Left/m-p/536580#M200574</guid>
      <dc:creator />
      <dc:date>2014-01-20T16:26:41Z</dc:date>
    </item>
  </channel>
</rss>

