<?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: Comparative CA N / CA N-1, current month problem in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Comparative-CA-N-CA-N-1-current-month-problem/m-p/82000#M5461</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sophie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the issue is with your logic.&amp;nbsp; The max month will be 12 from previous years.&amp;nbsp; The max year will be this year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your data is current, there is a today() function that could be used to derive the current month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ... , Month={$(=month(Today())}&amp;gt;}[Amount Line])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See how this goes for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Apr 2018 06:09:20 GMT</pubDate>
    <dc:creator>Lisa_P</dc:creator>
    <dc:date>2018-04-25T06:09:20Z</dc:date>
    <item>
      <title>Comparative CA N / CA N-1, current month problem</title>
      <link>https://community.qlik.com/t5/App-Development/Comparative-CA-N-CA-N-1-current-month-problem/m-p/81999#M5460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;I started on Qlik Sense and I had Designer Training and Developper not completely yet. I have days left.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;My question is more about a syntax problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;I created a table where I want to get the variation of the turnover according to the current month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;I tried several things to create my column.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;If I put this, it works:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;&lt;EM&gt;sum ({&amp;lt;[_ Type Movement] = {'Sales'}, [Article Type] = {'Article'}, [Type Register] = {'Invoices'}, [Keyword] - = {'SAV'}, [ Year] = {'$ (= max (Year))'}, [Month] = {"&amp;lt;5"}&amp;gt;} [Amount Line])&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;/&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;sum ({&amp;lt;[_ Type Movement] = {'Sales'}, [Article Type] = {'Article'}, [Type Register] = {'Invoices'}, [Keyword] - = {'SAV'}, [ Year] = {'$ (= max (Year) -1)'}, [Month] = {"&amp;lt;5"}&amp;gt;} [Amount Line])&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;&lt;EM&gt;-1&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;On the other hand, if I try to dynamically recover the current month it does not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;LET v_monthsCurrent = max (Month);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;&lt;EM&gt;sum ({&amp;lt;[_ Type Movement] = {'Sales'}, [Article Type] = {'Article'}, [Type Register] = {'Invoices'}, [Keyword] - = {'SAV'}, [ Year] = {'$ (= max (Year))'}, [Month] = {"&amp;lt;$ (v_OnCurrent)"}&amp;gt;} [Amount Line])&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;/&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;sum ({&amp;lt;[_ Type Movement] = {'Sales'}, [Article Type] = {'Article'}, [Type Register] = {'Invoices'}, [Keyword] - = {'SAV'}, [ Year] = {'$ (= max (Year) -1)'}, [Month] = {"&amp;lt;$ (v_OnCurrent)"}&amp;gt;} [Amount Line])&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;&lt;EM&gt;-1&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;I tried several things:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;- Put directly into the code [Month] = {'&amp;lt;$ (= max (Month))'}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;- Put directly into the code [Month] = {'&amp;lt;$ (max (Month))'}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;I must not be too far away. A little idea, please? We did tests with the trainer and he did not arrive either (without variable)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;Thank you for your help&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 07:11:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparative-CA-N-CA-N-1-current-month-problem/m-p/81999#M5460</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-24T07:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Comparative CA N / CA N-1, current month problem</title>
      <link>https://community.qlik.com/t5/App-Development/Comparative-CA-N-CA-N-1-current-month-problem/m-p/82000#M5461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sophie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the issue is with your logic.&amp;nbsp; The max month will be 12 from previous years.&amp;nbsp; The max year will be this year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your data is current, there is a today() function that could be used to derive the current month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ... , Month={$(=month(Today())}&amp;gt;}[Amount Line])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See how this goes for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 06:09:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparative-CA-N-CA-N-1-current-month-problem/m-p/82000#M5461</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2018-04-25T06:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Comparative CA N / CA N-1, current month problem</title>
      <link>https://community.qlik.com/t5/App-Development/Comparative-CA-N-CA-N-1-current-month-problem/m-p/82001#M5462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lisa, thank you for your help. I well get the month but I want &amp;lt;= datas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this code I get nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[_Type Movement]={'Sales'},[Type Article]={'Article'},[Type Register]={'Factures'}, [Mot cle]-={'SAV'}, [Year]={'$(=max(Year))'}, Month={"&amp;lt;$(&amp;lt;=month(Today()))"} &amp;gt;}[Amount Line])&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[_Type Movement]={'Sales'},[Type Article]={'Article'},[Type Register]={'Factures'}, [Mot cle]-={'SAV'}, [Year]={'$(=max(Year)-1)'}, Month={"&amp;lt;$(=month(Today()))"} &amp;gt;}[Amount Line])&lt;/P&gt;&lt;P&gt;-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where should I place the &amp;lt; sign ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 09:52:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparative-CA-N-CA-N-1-current-month-problem/m-p/82001#M5462</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-25T09:52:04Z</dc:date>
    </item>
  </channel>
</rss>

