<?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: Pivot table Current and Previous month data for a current month in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Pivot-table-Current-and-Previous-month-data-for-a-current-month/m-p/2090537#M89387</link>
    <description>&lt;P&gt;Thanks a lot for the help.&lt;/P&gt;
&lt;P&gt;It's working now.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jul 2023 07:03:34 GMT</pubDate>
    <dc:creator>Pooja2</dc:creator>
    <dc:date>2023-07-05T07:03:34Z</dc:date>
    <item>
      <title>Pivot table Current and Previous month data for a current month</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-table-Current-and-Previous-month-data-for-a-current-month/m-p/2090220#M89367</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to create a report in qlik in below format.&lt;/P&gt;
&lt;P&gt;where for current Month year i have to show 2 measure 1 with current month value and another with previous year same month.&lt;/P&gt;
&lt;P&gt;But i am unable to show previous month value as a measure.&lt;/P&gt;
&lt;P&gt;is it possible to achieve this.&lt;/P&gt;
&lt;P&gt;kindly Help.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pooja2_0-1688456149151.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/111509iDD036539C8E8C20A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pooja2_0-1688456149151.png" alt="Pooja2_0-1688456149151.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:37:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-table-Current-and-Previous-month-data-for-a-current-month/m-p/2090220#M89367</guid>
      <dc:creator>Pooja2</dc:creator>
      <dc:date>2024-11-15T21:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table Current and Previous month data for a current month</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-table-Current-and-Previous-month-data-for-a-current-month/m-p/2090250#M89369</link>
      <description>&lt;P&gt;use below dummy data and expression calculated to get Current Month and Previous year Month:-&lt;/P&gt;
&lt;P&gt;Load *, Year ([Start Date]) as Year,&lt;BR /&gt;Month([Start Date]) as Month,&lt;BR /&gt;Monthname([Start Date]) as Month1;&lt;BR /&gt;Load&lt;/P&gt;
&lt;P&gt;* INLINE [&lt;/P&gt;
&lt;P&gt;ID, Start Date,value&lt;BR /&gt;1,01/01/2023,1&lt;BR /&gt;1,01/01/2022,10&lt;BR /&gt;2,10/01/2023,20&lt;BR /&gt;2,10/01/2022,30&lt;BR /&gt;3,10/01/2023,40&lt;BR /&gt;3,10/01/2022,5&lt;BR /&gt;4,03/04/2023,10&lt;BR /&gt;4,03/04/2022,10&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;exit Script;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Current month:-&lt;/P&gt;
&lt;P&gt;sum({&amp;lt;Month1={'$(=monthname(Max([Start Date])))'}&amp;gt;}value)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Previous&amp;nbsp; Year Month:-&lt;/P&gt;
&lt;P&gt;sum({&amp;lt;Month1={'$(=monthname(addmonths(Max([Start Date]),-12)))'}&amp;gt;}value)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output:-&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="udit_k_0-1688462113177.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/111511i0900A3E18B549AFF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="udit_k_0-1688462113177.png" alt="udit_k_0-1688462113177.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 09:15:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-table-Current-and-Previous-month-data-for-a-current-month/m-p/2090250#M89369</guid>
      <dc:creator>udit_k</dc:creator>
      <dc:date>2023-07-04T09:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table Current and Previous month data for a current month</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-table-Current-and-Previous-month-data-for-a-current-month/m-p/2090276#M89372</link>
      <description>&lt;P&gt;this will work when you don't have MOnth_Year dimension in columns of pivot table.&lt;/P&gt;
&lt;P&gt;I have 1 dimension in column which is year.&lt;/P&gt;
&lt;P&gt;under current year dimension i have to show 2 measures&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 10:07:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-table-Current-and-Previous-month-data-for-a-current-month/m-p/2090276#M89372</guid>
      <dc:creator>Pooja2</dc:creator>
      <dc:date>2023-07-04T10:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table Current and Previous month data for a current month</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-table-Current-and-Previous-month-data-for-a-current-month/m-p/2090305#M89373</link>
      <description>&lt;P&gt;you could nullify month in expression :-&lt;/P&gt;
&lt;P&gt;LM:-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;CM:-&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;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="udit_k_0-1688467835845.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/111527i0D588A037068AE9C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="udit_k_0-1688467835845.png" alt="udit_k_0-1688467835845.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 10:50:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-table-Current-and-Previous-month-data-for-a-current-month/m-p/2090305#M89373</guid>
      <dc:creator>udit_k</dc:creator>
      <dc:date>2023-07-04T10:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table Current and Previous month data for a current month</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-table-Current-and-Previous-month-data-for-a-current-month/m-p/2090537#M89387</link>
      <description>&lt;P&gt;Thanks a lot for the help.&lt;/P&gt;
&lt;P&gt;It's working now.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 07:03:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-table-Current-and-Previous-month-data-for-a-current-month/m-p/2090537#M89387</guid>
      <dc:creator>Pooja2</dc:creator>
      <dc:date>2023-07-05T07:03:34Z</dc:date>
    </item>
  </channel>
</rss>

