<?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 Getting Current Month and Year &amp;amp; Previous Month and Year QlikSense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Getting-Current-Month-and-Year-amp-Previous-Month-and-Year/m-p/1551010#M39722</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have one requirement like:&lt;/P&gt;&lt;P&gt;1. By default "previous-month" and "current-year" should be taken in expression&lt;/P&gt;&lt;P&gt;2. On top of Month and Year selections, expression should calculate for "previous month" and "current year"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For an instance:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;a. if we select January and 2019, previous month should be December and Year should be 2018&lt;/P&gt;&lt;P&gt;b. If we select February and 2019, previous month should be January and Year should be 2019&lt;/P&gt;&lt;P&gt;Created 2 variables like:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vLatestMonth:&lt;/STRONG&gt;&amp;nbsp;IF(GetSelectedCount(MonthName)=0,Month(Date(AddMonths(Today(),-1),MonthNames)),MonthName)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vLatestYear:&lt;/STRONG&gt;&amp;nbsp;IF(GetSelectedCount(Year)=0,Year(Today()),Year)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 21:19:23 GMT</pubDate>
    <dc:creator>vardhancse</dc:creator>
    <dc:date>2024-11-16T21:19:23Z</dc:date>
    <item>
      <title>Getting Current Month and Year &amp; Previous Month and Year QlikSense</title>
      <link>https://community.qlik.com/t5/App-Development/Getting-Current-Month-and-Year-amp-Previous-Month-and-Year/m-p/1551010#M39722</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have one requirement like:&lt;/P&gt;&lt;P&gt;1. By default "previous-month" and "current-year" should be taken in expression&lt;/P&gt;&lt;P&gt;2. On top of Month and Year selections, expression should calculate for "previous month" and "current year"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For an instance:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;a. if we select January and 2019, previous month should be December and Year should be 2018&lt;/P&gt;&lt;P&gt;b. If we select February and 2019, previous month should be January and Year should be 2019&lt;/P&gt;&lt;P&gt;Created 2 variables like:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vLatestMonth:&lt;/STRONG&gt;&amp;nbsp;IF(GetSelectedCount(MonthName)=0,Month(Date(AddMonths(Today(),-1),MonthNames)),MonthName)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vLatestYear:&lt;/STRONG&gt;&amp;nbsp;IF(GetSelectedCount(Year)=0,Year(Today()),Year)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:19:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Getting-Current-Month-and-Year-amp-Previous-Month-and-Year/m-p/1551010#M39722</guid>
      <dc:creator>vardhancse</dc:creator>
      <dc:date>2024-11-16T21:19:23Z</dc:date>
    </item>
  </channel>
</rss>

