<?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 Current &amp; Previous Month based on Flag in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-Previous-Month-based-on-Flag/m-p/210285#M64919</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any way which you feel comfortable you can work around.&lt;/P&gt;&lt;P&gt;But set analysis reduces the pressure on the chart as compare to if statement.&lt;/P&gt;&lt;P&gt;You will lots of forum on Set analysis, read it will be very useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Feb 2011 12:32:30 GMT</pubDate>
    <dc:creator>deepakk</dc:creator>
    <dc:date>2011-02-10T12:32:30Z</dc:date>
    <item>
      <title>Current &amp; Previous Month based on Flag</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Previous-Month-based-on-Flag/m-p/210278#M64912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I check the posts on the Current Month but my problem is different.&lt;/P&gt;&lt;P&gt;The Current Month needs to be set using the CurrentMonthFlag which is set in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Values which are required for reporting are:&lt;/P&gt;&lt;P&gt;CurrentMonth, Previous Month and Next Month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could get a CurrentMonth using the flag.&lt;/P&gt;&lt;P&gt;The problem is how do I get the previous Month. Can i create a nested query like a Nested SQL in QlikView ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have MonthID which is in a numeric format which can be used to do +1 or -1 for next or previous month.&lt;/P&gt;&lt;P&gt;Also how would we identify next month for the selected month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Suggest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 11:12:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Previous-Month-based-on-Flag/m-p/210278#M64912</guid>
      <dc:creator />
      <dc:date>2011-02-10T11:12:34Z</dc:date>
    </item>
    <item>
      <title>Current &amp; Previous Month based on Flag</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Previous-Month-based-on-Flag/m-p/210279#M64913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;You can achieve the above using set analysis. Create a num month&lt;/P&gt;&lt;P&gt;eg : load num(Month) as Monthnum from table.&lt;/P&gt;&lt;P&gt;output would be 01,02,03&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in Expression. use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Monthnum={$(=num(Month(today())))}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 11:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Previous-Month-based-on-Flag/m-p/210279#M64913</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-02-10T11:21:45Z</dc:date>
    </item>
    <item>
      <title>Current &amp; Previous Month based on Flag</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Previous-Month-based-on-Flag/m-p/210280#M64914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will try this solution but the only problem here is the calender is not the normal calender so I cant use Today() the value has to be from the database based on the flag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 11:30:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Previous-Month-based-on-Flag/m-p/210280#M64914</guid>
      <dc:creator />
      <dc:date>2011-02-10T11:30:44Z</dc:date>
    </item>
    <item>
      <title>Current &amp; Previous Month based on Flag</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Previous-Month-based-on-Flag/m-p/210281#M64915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;If it is from data based then you can use max(Month). If you can add a sample file then it would be easy to provide a solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 11:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Previous-Month-based-on-Flag/m-p/210281#M64915</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-02-10T11:53:29Z</dc:date>
    </item>
    <item>
      <title>Current &amp; Previous Month based on Flag</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Previous-Month-based-on-Flag/m-p/210282#M64916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;How would we get the Prev of Current Month.&lt;/P&gt;&lt;P&gt;And if a selection is done pervious of that.&lt;/P&gt;&lt;P&gt;Sample Data Below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="261"&gt;&lt;COL style="width:46pt;" width="61" /&gt;&lt;COL style="width:54pt;" width="72" /&gt;&lt;COL style="width:96pt;" width="128" /&gt;&lt;TBODY&gt;&lt;TR style="height:15pt;"&gt;&lt;TD class="xl66" height="20" style="height:15pt;width:46pt;" width="61"&gt;MonthID&lt;/TD&gt;&lt;TD class="xl66" style="border-left:medium none;width:54pt;" width="72"&gt;Month&lt;/TD&gt;&lt;TD class="xl66" style="border-left:medium none;width:96pt;" width="128"&gt;Current Month Flag&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD class="xl65" height="20" style="height:15pt;border-top:medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl65" style="border-top:medium none;border-left:medium none;"&gt;Jan FY2011&lt;/TD&gt;&lt;TD class="xl65" style="border-top:medium none;border-left:medium none;"&gt;N&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD class="xl65" height="20" style="height:15pt;border-top:medium none;"&gt;112&lt;/TD&gt;&lt;TD class="xl65" style="border-top:medium none;border-left:medium none;"&gt;Feb FY2011&lt;/TD&gt;&lt;TD class="xl65" style="border-top:medium none;border-left:medium none;"&gt;N&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD class="xl65" height="20" style="height:15pt;border-top:medium none;"&gt;113&lt;/TD&gt;&lt;TD class="xl65" style="border-top:medium none;border-left:medium none;"&gt;Mar FY2011&lt;/TD&gt;&lt;TD class="xl65" style="border-top:medium none;border-left:medium none;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD class="xl65" height="20" style="height:15pt;border-top:medium none;"&gt;114&lt;/TD&gt;&lt;TD class="xl65" style="border-top:medium none;border-left:medium none;"&gt;Apr FY2011&lt;/TD&gt;&lt;TD class="xl65" style="border-top:medium none;border-left:medium none;"&gt;N&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chinmay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 12:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Previous-Month-based-on-Flag/m-p/210282#M64916</guid>
      <dc:creator />
      <dc:date>2011-02-10T12:02:46Z</dc:date>
    </item>
    <item>
      <title>Current &amp; Previous Month based on Flag</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Previous-Month-based-on-Flag/m-p/210283#M64917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 12:15:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Previous-Month-based-on-Flag/m-p/210283#M64917</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-02-10T12:15:10Z</dc:date>
    </item>
    <item>
      <title>Current &amp; Previous Month based on Flag</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Previous-Month-based-on-Flag/m-p/210284#M64918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Really appreciate your quick response, I am kind of new with the Set Analysis and finding it difficult to understand how i would use this in charts.&lt;/P&gt;&lt;P&gt;I was trying to save the CurrentMonth, Previous Month into a variable which I would be able to Use in the charts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chinmay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 12:18:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Previous-Month-based-on-Flag/m-p/210284#M64918</guid>
      <dc:creator />
      <dc:date>2011-02-10T12:18:52Z</dc:date>
    </item>
    <item>
      <title>Current &amp; Previous Month based on Flag</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Previous-Month-based-on-Flag/m-p/210285#M64919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any way which you feel comfortable you can work around.&lt;/P&gt;&lt;P&gt;But set analysis reduces the pressure on the chart as compare to if statement.&lt;/P&gt;&lt;P&gt;You will lots of forum on Set analysis, read it will be very useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 12:32:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Previous-Month-based-on-Flag/m-p/210285#M64919</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-02-10T12:32:30Z</dc:date>
    </item>
  </channel>
</rss>

