<?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: N/N-1 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/N-N-1/m-p/639040#M234292</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set 2 variables in your script in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET CurrYear = Year(Today());&lt;/P&gt;&lt;P&gt;LET PrevYear = Year(Today())-1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then your expression will be:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count ({$ &amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Année mouvement]&lt;/SPAN&gt; = {$(CurrYear))}&amp;gt;} DISTINCT [Numero Facture Compta])&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;-&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;count ({$ &amp;lt;[Année mouvement] = {$(PrevYear)}&amp;gt;}&amp;nbsp; DISTINCT [Numero Facture Compta])&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;&lt;BR /&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;Let me know ...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 May 2014 07:00:06 GMT</pubDate>
    <dc:creator>alexandros17</dc:creator>
    <dc:date>2014-05-20T07:00:06Z</dc:date>
    <item>
      <title>N/N-1</title>
      <link>https://community.qlik.com/t5/QlikView/N-N-1/m-p/639038#M234290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bonjour,&lt;/P&gt;&lt;P&gt;je voudrais comparer les commandes de l'année avec celles de l'année dernière&lt;/P&gt;&lt;P&gt;les commandes de cette années s'écrivent :&amp;nbsp;&amp;nbsp; count ( DISTINCT [Numero Facture Compta])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;j'ai donc rentré la formule :&lt;/P&gt;&lt;P&gt;count ( DISTINCT [Numero Facture Compta])&lt;BR /&gt;-&lt;BR /&gt;count ( {$[Année mouvement]={$(=[Année mouvement]-1 )} ,&amp;nbsp; DISTINCT [Numero Facture Compta])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mais ça ne fonctionne pas. quelqu'un a une idée ???&lt;/P&gt;&lt;P&gt;Merci d'avance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 06:53:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/N-N-1/m-p/639038#M234290</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-20T06:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: N/N-1</title>
      <link>https://community.qlik.com/t5/QlikView/N-N-1/m-p/639039#M234291</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;Please check whether is &lt;STRONG&gt;comma&lt;/STRONG&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;count( {$[Année mouvement]={$(=[Année mouvement]-1 )} &lt;STRONG&gt;}, &lt;/STRONG&gt; DISTINCT [Numero Facture Compta]) is a type mistake. And you missed &lt;STRONG&gt;}&lt;/STRONG&gt; bracket.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;&lt;BR /&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; font-size: 12.727272033691406px;"&gt;Edited:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;count( {$&lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt;[Année mouvement]={$(=[Année mouvement]-1 )}&lt;STRONG&gt;&amp;gt;&lt;/STRONG&gt; &lt;STRONG&gt;} &lt;/STRONG&gt;DISTINCT [Numero Facture Compta])&lt;/SPAN&gt;&lt;BR /&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; font-size: 12.727272033691406px;"&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;&lt;BR /&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; font-size: 12.727272033691406px;"&gt;Andrei&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 06:58:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/N-N-1/m-p/639039#M234291</guid>
      <dc:creator>crusader_</dc:creator>
      <dc:date>2014-05-20T06:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: N/N-1</title>
      <link>https://community.qlik.com/t5/QlikView/N-N-1/m-p/639040#M234292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set 2 variables in your script in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET CurrYear = Year(Today());&lt;/P&gt;&lt;P&gt;LET PrevYear = Year(Today())-1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then your expression will be:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count ({$ &amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Année mouvement]&lt;/SPAN&gt; = {$(CurrYear))}&amp;gt;} DISTINCT [Numero Facture Compta])&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;-&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;count ({$ &amp;lt;[Année mouvement] = {$(PrevYear)}&amp;gt;}&amp;nbsp; DISTINCT [Numero Facture Compta])&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;&lt;BR /&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;Let me know ...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 07:00:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/N-N-1/m-p/639040#M234292</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-05-20T07:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: N/N-1</title>
      <link>https://community.qlik.com/t5/QlikView/N-N-1/m-p/639041#M234293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count ( DISTINCT [Numero Facture Compta])&lt;BR /&gt;-&lt;BR /&gt;count ( {$[Année mouvement]={$(=[Année mouvement]-1 )}}, DISTINCT [Numero Facture Compta])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did not work. the first "DISTINCT" is in blue, the second one stay in black, so there should still be a mistake somewhere ? thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 07:17:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/N-N-1/m-p/639041#M234293</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-20T07:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: N/N-1</title>
      <link>https://community.qlik.com/t5/QlikView/N-N-1/m-p/639042#M234294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forgot about &lt;STRONG&gt;&amp;lt;&amp;gt; &lt;/STRONG&gt; and NO commas(!)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;count( {$&lt;/SPAN&gt;&lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;[Année mouvement]={$(=[Année mouvement]-1 )}&lt;/SPAN&gt;&lt;STRONG&gt;&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt; &lt;/SPAN&gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;DISTINCT [Numero Facture Compta])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check above&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 07:22:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/N-N-1/m-p/639042#M234294</guid>
      <dc:creator>crusader_</dc:creator>
      <dc:date>2014-05-20T07:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: N/N-1</title>
      <link>https://community.qlik.com/t5/QlikView/N-N-1/m-p/639043#M234295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it works :-))&lt;/P&gt;&lt;P&gt;many thanks. regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 07:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/N-N-1/m-p/639043#M234295</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-20T07:25:25Z</dc:date>
    </item>
  </channel>
</rss>

