<?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 Year, Previous Month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-Year-Previous-Month/m-p/435407#M162326</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use AddMonths function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;[ARBalance]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;FYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG style="font-size: 12px;"&gt;&lt;EM style="font-size: 8pt; color: #808080;"&gt;$(=Max(Year))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;FPeriod&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG style="font-size: 12px;"&gt;&lt;EM style="font-size: 8pt; color: #808080;"&gt;$(=AddMonths(Today())-1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;REV_TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hope it helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Sep 2012 19:06:19 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2012-09-24T19:06:19Z</dc:date>
    <item>
      <title>Current Year, Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-Previous-Month/m-p/435403#M162322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to get the sum of revenue for the current year, previous month.&lt;/P&gt;&lt;P&gt;The file that I have loaded contains&lt;/P&gt;&lt;P&gt;Year &lt;/P&gt;&lt;P&gt;Period&lt;/P&gt;&lt;P&gt;Revenue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I look at the data today, I want to get the previous month's data, i.e. since today is year 2012 month 09, I want to see all revenue for year 2012 month 08&lt;/P&gt;&lt;P&gt;I am using the following set analysis but it doesn't seem to be working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I have this set up wrong; any suggestions?????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;FYear={$(=Max(Year))}, FPeriod={$(=Month(Today()-1))}&amp;gt;}REV_TOTAL)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 16:46:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-Previous-Month/m-p/435403#M162322</guid>
      <dc:creator />
      <dc:date>2012-09-24T16:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Current Year, Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-Previous-Month/m-p/435404#M162323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sum({$&amp;lt;FYear={$(=Max(Year))}, FPeriod={$(=Month(Today()&lt;STRONG style="text-decoration: underline;"&gt;)&lt;/STRONG&gt;-1)}&amp;gt;}REV_TOTAL)&lt;/P&gt;&lt;P&gt;i think the problem is the parenthese is not in the right place.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 17:49:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-Previous-Month/m-p/435404#M162323</guid>
      <dc:creator>alexpanjhc</dc:creator>
      <dc:date>2012-09-24T17:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Current Year, Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-Previous-Month/m-p/435405#M162324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I made the change you suggested.&amp;nbsp; When I try to put together the entire calcultion that I'm really trying to get, the program just churns &amp;amp; eventually gets a not responding.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Could there be something else wrong with my calculation; here it is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ARBalance]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=Max(Year))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FPeriod&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=Month(Today())-1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;REV_TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))*30 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get the DSO by taking the AR Balance &amp;amp; dividing by last month's sales and then multiplying by number of days in which we are using 30.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 18:39:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-Previous-Month/m-p/435405#M162324</guid>
      <dc:creator />
      <dc:date>2012-09-24T18:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Current Year, Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-Previous-Month/m-p/435406#M162325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is the last parenthese needed? or you are missing a paranthese at the begining?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(=Max(Year))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FPeriod&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(=Month(Today())-1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;REV_TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 18:48:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-Previous-Month/m-p/435406#M162325</guid>
      <dc:creator>alexpanjhc</dc:creator>
      <dc:date>2012-09-24T18:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Current Year, Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-Previous-Month/m-p/435407#M162326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use AddMonths function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;[ARBalance]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;FYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG style="font-size: 12px;"&gt;&lt;EM style="font-size: 8pt; color: #808080;"&gt;$(=Max(Year))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;FPeriod&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG style="font-size: 12px;"&gt;&lt;EM style="font-size: 8pt; color: #808080;"&gt;$(=AddMonths(Today())-1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;REV_TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hope it helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 19:06:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-Previous-Month/m-p/435407#M162326</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-09-24T19:06:19Z</dc:date>
    </item>
  </channel>
</rss>

