<?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 Trying to get Calculation for Previous Month in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Trying-to-get-Calculation-for-Previous-Month/m-p/1810805#M66058</link>
    <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When trying to create a KPI for Previous Month the below Script is not working.&lt;/P&gt;&lt;P&gt;Its Just giving me the total overall.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if(VConceptType=1,&lt;/P&gt;&lt;P&gt;Sum({&amp;lt; Month = {"=Month(AddMonths(Today(),-1))"}&amp;gt;}[Judgment Total]),&lt;/P&gt;&lt;P&gt;If(VConceptType=2,&lt;/P&gt;&lt;P&gt;Count({&amp;lt; Month = {"=Month(AddMonths(Today(),-1))"}&amp;gt;}distinct[Judge ID]),&lt;/P&gt;&lt;P&gt;If(VConceptType=3,&lt;/P&gt;&lt;P&gt;sum({&amp;lt; Month = {"=Month(AddMonths(Today(),-1))"}&amp;gt;}[Total Earnings]))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any Ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jamie&lt;/P&gt;</description>
    <pubDate>Wed, 26 May 2021 15:56:59 GMT</pubDate>
    <dc:creator>jamiemcc</dc:creator>
    <dc:date>2021-05-26T15:56:59Z</dc:date>
    <item>
      <title>Trying to get Calculation for Previous Month</title>
      <link>https://community.qlik.com/t5/App-Development/Trying-to-get-Calculation-for-Previous-Month/m-p/1810805#M66058</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When trying to create a KPI for Previous Month the below Script is not working.&lt;/P&gt;&lt;P&gt;Its Just giving me the total overall.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if(VConceptType=1,&lt;/P&gt;&lt;P&gt;Sum({&amp;lt; Month = {"=Month(AddMonths(Today(),-1))"}&amp;gt;}[Judgment Total]),&lt;/P&gt;&lt;P&gt;If(VConceptType=2,&lt;/P&gt;&lt;P&gt;Count({&amp;lt; Month = {"=Month(AddMonths(Today(),-1))"}&amp;gt;}distinct[Judge ID]),&lt;/P&gt;&lt;P&gt;If(VConceptType=3,&lt;/P&gt;&lt;P&gt;sum({&amp;lt; Month = {"=Month(AddMonths(Today(),-1))"}&amp;gt;}[Total Earnings]))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any Ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jamie&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 15:56:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trying-to-get-Calculation-for-Previous-Month/m-p/1810805#M66058</guid>
      <dc:creator>jamiemcc</dc:creator>
      <dc:date>2021-05-26T15:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get Calculation for Previous Month</title>
      <link>https://community.qlik.com/t5/App-Development/Trying-to-get-Calculation-for-Previous-Month/m-p/1810811#M66059</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/53210"&gt;@jamiemcc&lt;/a&gt;&amp;nbsp;, I suppose VConceptType is a variable you are using to select which calculation to run. I think the solution could be using $(VConceptType) instead.&lt;/P&gt;&lt;P&gt;JG&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 16:51:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trying-to-get-Calculation-for-Previous-Month/m-p/1810811#M66059</guid>
      <dc:creator>JuanGerardo</dc:creator>
      <dc:date>2021-05-26T16:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get Calculation for Previous Month</title>
      <link>https://community.qlik.com/t5/App-Development/Trying-to-get-Calculation-for-Previous-Month/m-p/1810835#M66068</link>
      <description>&lt;P&gt;Hi JuanGerardo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Same Issue - Both Solutions Work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Issue seems to be here -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Month = {"=Month(AddMonths(Today(),-1))"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jamie&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 18:25:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trying-to-get-Calculation-for-Previous-Month/m-p/1810835#M66068</guid>
      <dc:creator>jamiemcc</dc:creator>
      <dc:date>2021-05-26T18:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get Calculation for Previous Month</title>
      <link>https://community.qlik.com/t5/App-Development/Trying-to-get-Calculation-for-Previous-Month/m-p/1810842#M66069</link>
      <description>&lt;P&gt;Then I guess this can be caused because of the date format. You can try something like this, depending on your default date format and the way you calculate your Month dimension:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#008000"&gt;&lt;SPAN&gt;Month = {'=Num(Month(AddMonths(Today(),-1)))'}&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#008000"&gt;&lt;SPAN&gt;Month = {"=Date(Month(AddMonths(Today(),-1)), 'MMM')"}&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;JG&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 18:44:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trying-to-get-Calculation-for-Previous-Month/m-p/1810842#M66069</guid>
      <dc:creator>JuanGerardo</dc:creator>
      <dc:date>2021-05-26T18:44:44Z</dc:date>
    </item>
  </channel>
</rss>

