<?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 Perform a calculation for last 12 months in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Perform-a-calculation-for-last-12-months/m-p/1628658#M46771</link>
    <description>&lt;P&gt;Hello, I am struggling with a calculation. I am calculating NETT sales using the following formula:&amp;nbsp;&lt;/P&gt;&lt;P&gt;(((Sum({&amp;lt;TCODE={'IN'}&amp;gt;} AMOUNT))-(Sum({&amp;lt;TCODE={'CN'}&amp;gt;} AMOUNT)))-((Sum({&amp;lt;TCODE={'IN'}&amp;gt;} PROFIT))-(Sum({&amp;lt;TCODE={'CN'}&amp;gt;} PROFIT))))&lt;/P&gt;&lt;P&gt;This works just fine, but I only want to perform this calculation on data that fall in the last 12 months, my date field is [TXDATE].&lt;/P&gt;&lt;P&gt;Unless this is not possible and someone could please point me in the correct direction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 20:00:20 GMT</pubDate>
    <dc:creator>LEGION</dc:creator>
    <dc:date>2024-11-16T20:00:20Z</dc:date>
    <item>
      <title>Perform a calculation for last 12 months</title>
      <link>https://community.qlik.com/t5/App-Development/Perform-a-calculation-for-last-12-months/m-p/1628658#M46771</link>
      <description>&lt;P&gt;Hello, I am struggling with a calculation. I am calculating NETT sales using the following formula:&amp;nbsp;&lt;/P&gt;&lt;P&gt;(((Sum({&amp;lt;TCODE={'IN'}&amp;gt;} AMOUNT))-(Sum({&amp;lt;TCODE={'CN'}&amp;gt;} AMOUNT)))-((Sum({&amp;lt;TCODE={'IN'}&amp;gt;} PROFIT))-(Sum({&amp;lt;TCODE={'CN'}&amp;gt;} PROFIT))))&lt;/P&gt;&lt;P&gt;This works just fine, but I only want to perform this calculation on data that fall in the last 12 months, my date field is [TXDATE].&lt;/P&gt;&lt;P&gt;Unless this is not possible and someone could please point me in the correct direction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:00:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Perform-a-calculation-for-last-12-months/m-p/1628658#M46771</guid>
      <dc:creator>LEGION</dc:creator>
      <dc:date>2024-11-16T20:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Perform a calculation for last 12 months</title>
      <link>https://community.qlik.com/t5/App-Development/Perform-a-calculation-for-last-12-months/m-p/1628675#M46773</link>
      <description>&lt;P&gt;change to&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(((Sum({&amp;lt;TCODE={'IN'}, TXDATE={"&amp;gt;=$(=date(addmonths(today(),-12)))"}&amp;gt;} AMOUNT))-(Sum({&amp;lt;TCODE={'CN'}, TXDATE={"&amp;gt;=$(=date(addmonths(today(),-12)))"}&amp;gt;} AMOUNT)))-((Sum({&amp;lt;TCODE={'IN'}, TXDATE={"&amp;gt;=$(=date(addmonths(today(),-12)))"}&amp;gt;} PROFIT))-(Sum({&amp;lt;TCODE={'CN'}, TXDATE={"&amp;gt;=$(=date(addmonths(today(),-12)))"}&amp;gt;} PROFIT))))&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;</description>
      <pubDate>Thu, 26 Sep 2019 14:32:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Perform-a-calculation-for-last-12-months/m-p/1628675#M46773</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2019-09-26T14:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Perform a calculation for last 12 months</title>
      <link>https://community.qlik.com/t5/App-Development/Perform-a-calculation-for-last-12-months/m-p/1629141#M46849</link>
      <description>&lt;P&gt;Thank you so much, this worked perfectly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 14:33:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Perform-a-calculation-for-last-12-months/m-p/1629141#M46849</guid>
      <dc:creator>LEGION</dc:creator>
      <dc:date>2019-09-27T14:33:00Z</dc:date>
    </item>
  </channel>
</rss>

