<?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 and expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-expression/m-p/711970#M1063405</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But with the count function at the beguining I get an error message and without it the result is - when the result should return 135.000 / 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the other example I get the same result - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I calculate both expressions separately I get the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I define variable for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Sep 2014 18:40:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-16T18:40:48Z</dc:date>
    <item>
      <title>Set analysis and expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-expression/m-p/711966#M1063401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone tell me what´s going wrong with this expression? I get an ok in the expresion but is no reporting any data, although both expressions (numerator &amp;amp; denominator) separately give a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;"Year([Fecha de Entrada]"={"Year(Today()"}&amp;gt;} [Línea de ped de Compra])/count(DISTINCT(Month([Fecha de Entrada])))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance and regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Asier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 16:01:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-expression/m-p/711966#M1063401</guid>
      <dc:creator />
      <dc:date>2014-09-16T16:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-expression/m-p/711967#M1063402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like,&lt;/P&gt;&lt;P&gt;count(If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Year([Fecha de Entrada])=Year(Today()),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; [Línea de ped de Compra]/count(DISTINCT(Month([Fecha de Entrada]))))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope it helps&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 17:31:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-expression/m-p/711967#M1063402</guid>
      <dc:creator />
      <dc:date>2014-09-16T17:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-expression/m-p/711968#M1063403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;You can't have expressions as fields in set analysis like {&amp;lt;year(Date) = {'2014'}&amp;gt;}.&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;Try this code:&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;&lt;STRONG&gt;count({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;[Fecha de Entrada]&lt;/SPAN&gt;={"=Year(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;[Fecha de Entrada]&lt;/SPAN&gt;)=Year(Today())"}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;[Línea de ped de Compra]&lt;/SPAN&gt;)/count(DISTINCT Month(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;[Fecha de Entrada]&lt;/SPAN&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 17:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-expression/m-p/711968#M1063403</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-09-16T17:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-expression/m-p/711969#M1063404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;Year(date([Fecha de Entrada]))={'$(=Year(Today())'}&amp;gt;} [Línea de ped de Compra])/count(DISTINCT(Month(date([Fecha de Entrada])&amp;nbsp; )))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 18:01:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-expression/m-p/711969#M1063404</guid>
      <dc:creator />
      <dc:date>2014-09-16T18:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-expression/m-p/711970#M1063405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But with the count function at the beguining I get an error message and without it the result is - when the result should return 135.000 / 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the other example I get the same result - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I calculate both expressions separately I get the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I define variable for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 18:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-expression/m-p/711970#M1063405</guid>
      <dc:creator />
      <dc:date>2014-09-16T18:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-expression/m-p/711971#M1063406</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;Thanks all.&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;But with the count function at the beguining I get an error message and without it the result is - when the result should return 135.000 / 12.&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;With the other examples I get the same result -&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;If I calculate both expressions separately I get the result.&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;Should I define variable for this?&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 18:41:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-expression/m-p/711971#M1063406</guid>
      <dc:creator />
      <dc:date>2014-09-16T18:41:31Z</dc:date>
    </item>
  </channel>
</rss>

