<?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: Current Month Jan to Previous Month Dec in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Current-Month-Jan-to-Previous-Month-Dec/m-p/1745630#M57224</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Hope this helps you!!&lt;/P&gt;&lt;P&gt;In Frontend&amp;nbsp; Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=date(Addmonths(date#([Date(Year month format)], 'YYYYMM'), - 1),'YYYYMM')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhavya&lt;/P&gt;</description>
    <pubDate>Mon, 21 Sep 2020 13:35:34 GMT</pubDate>
    <dc:creator>bhavyagrb</dc:creator>
    <dc:date>2020-09-21T13:35:34Z</dc:date>
    <item>
      <title>Current Month Jan to Previous Month Dec</title>
      <link>https://community.qlik.com/t5/App-Development/Current-Month-Jan-to-Previous-Month-Dec/m-p/1744124#M57059</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having a requirement where I need to place values for current month vs previous month&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" width="127px" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="62px" height="25px"&gt;FIELD1&lt;/TD&gt;&lt;TD width="64px" height="25px"&gt;Date (Year month format)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="62px" height="25px"&gt;A&lt;/TD&gt;&lt;TD width="64px" height="25px"&gt;202009&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="62px" height="25px"&gt;B&lt;/TD&gt;&lt;TD width="64px" height="25px"&gt;202010&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE border="0" width="127px" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="62px" height="17"&gt;C&lt;/TD&gt;&lt;TD width="64px"&gt;202011&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="62px" height="17"&gt;D&lt;/TD&gt;&lt;TD width="64px"&gt;202012&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="62px" height="17"&gt;E&lt;/TD&gt;&lt;TD width="64px"&gt;202101&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;I have variable set for value in current month, however I am not able to create a proper expression for getting the values from the pervious Year Month. Mainly because of Jan to Dec. If I use 202101 as current Year Month for example, I am getting 202100 as Previous Year Month Date. What expression can I use for when current year month is 202101, the previous year month date will show as 202012?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:27:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Current-Month-Jan-to-Previous-Month-Dec/m-p/1744124#M57059</guid>
      <dc:creator>aswinnar</dc:creator>
      <dc:date>2024-11-16T01:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month Jan to Previous Month Dec</title>
      <link>https://community.qlik.com/t5/App-Development/Current-Month-Jan-to-Previous-Month-Dec/m-p/1744135#M57060</link>
      <description>&lt;P&gt;By the looks of it your date field is not a date, but an integer. Therfore you can not use date funtions like addmonth() on it without manipulating it a bit. Try something like this to get prev month.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Num(Text(Date(Addmonths(date#([Date Field], 'YYYYMM'), - 1)&lt;SPAN&gt;, 'YYYYMM')))&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 21:14:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Current-Month-Jan-to-Previous-Month-Dec/m-p/1744135#M57060</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-09-15T21:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month Jan to Previous Month Dec</title>
      <link>https://community.qlik.com/t5/App-Development/Current-Month-Jan-to-Previous-Month-Dec/m-p/1745630#M57224</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Hope this helps you!!&lt;/P&gt;&lt;P&gt;In Frontend&amp;nbsp; Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=date(Addmonths(date#([Date(Year month format)], 'YYYYMM'), - 1),'YYYYMM')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhavya&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 13:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Current-Month-Jan-to-Previous-Month-Dec/m-p/1745630#M57224</guid>
      <dc:creator>bhavyagrb</dc:creator>
      <dc:date>2020-09-21T13:35:34Z</dc:date>
    </item>
  </channel>
</rss>

