<?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: How to subtract current month values with previous month values in straight table with dimension is year and columns as months in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-subtract-current-month-values-with-previous-month-values/m-p/2090367#M89375</link>
    <description>&lt;P&gt;Current month :-&lt;/P&gt;
&lt;P&gt;sum({&amp;lt;Year={'$(=year(addyears(yearstart(max([Start Date])),0)))'},Month={'&amp;gt;=$(=month(yearstart(max([Start Date]))))&amp;lt;=$(=month(Max([Start Date])))'},Month=&amp;gt;}value)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Previous month:-&lt;/P&gt;
&lt;P&gt;sum({&amp;lt;Year={'$(=year(addyears(yearstart(max([Start Date])),-1)))'},Month={'&amp;gt;=$(=month(yearstart(max([Start Date]))))&amp;lt;=$(=month(Max([Start Date])))'},Month=&amp;gt;}value)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sub:-Column(1)-Column(2)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="udit_k_0-1688475182608.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/111543i2C90459E796A660D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="udit_k_0-1688475182608.png" alt="udit_k_0-1688475182608.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jul 2023 12:53:13 GMT</pubDate>
    <dc:creator>udit_k</dc:creator>
    <dc:date>2023-07-04T12:53:13Z</dc:date>
    <item>
      <title>How to subtract current month values with previous month values in straight table with dimension is year and columns as months</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-subtract-current-month-values-with-previous-month-values/m-p/2090315#M89374</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Can someone help me to solve the below.&lt;/P&gt;
&lt;P&gt;I have a straight table which has year as dimension and columns as months. I am trying to calculate variance (current month - previous month) but, facing issues when I am trying to subtract Jan month with dec month values.&lt;/P&gt;
&lt;P&gt;Calculation has to be done at row level as per the screenshot and attachments below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sravani5_0-1688469432291.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/111528i45BA7B6874EF670D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sravani5_0-1688469432291.png" alt="Sravani5_0-1688469432291.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 11:20:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-subtract-current-month-values-with-previous-month-values/m-p/2090315#M89374</guid>
      <dc:creator>Sravani5</dc:creator>
      <dc:date>2023-07-04T11:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to subtract current month values with previous month values in straight table with dimension is year and columns as months</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-subtract-current-month-values-with-previous-month-values/m-p/2090367#M89375</link>
      <description>&lt;P&gt;Current month :-&lt;/P&gt;
&lt;P&gt;sum({&amp;lt;Year={'$(=year(addyears(yearstart(max([Start Date])),0)))'},Month={'&amp;gt;=$(=month(yearstart(max([Start Date]))))&amp;lt;=$(=month(Max([Start Date])))'},Month=&amp;gt;}value)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Previous month:-&lt;/P&gt;
&lt;P&gt;sum({&amp;lt;Year={'$(=year(addyears(yearstart(max([Start Date])),-1)))'},Month={'&amp;gt;=$(=month(yearstart(max([Start Date]))))&amp;lt;=$(=month(Max([Start Date])))'},Month=&amp;gt;}value)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sub:-Column(1)-Column(2)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="udit_k_0-1688475182608.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/111543i2C90459E796A660D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="udit_k_0-1688475182608.png" alt="udit_k_0-1688475182608.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 12:53:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-subtract-current-month-values-with-previous-month-values/m-p/2090367#M89375</guid>
      <dc:creator>udit_k</dc:creator>
      <dc:date>2023-07-04T12:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to subtract current month values with previous month values in straight table with dimension is year and columns as months</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-subtract-current-month-values-with-previous-month-values/m-p/2090382#M89376</link>
      <description>&lt;P&gt;Thanks for your reply..&lt;/P&gt;
&lt;P&gt;My requirement has only month columns and we need to calculate only variance among them.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 13:17:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-subtract-current-month-values-with-previous-month-values/m-p/2090382#M89376</guid>
      <dc:creator>Sravani5</dc:creator>
      <dc:date>2023-07-04T13:17:04Z</dc:date>
    </item>
  </channel>
</rss>

