<?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: Re: getting previous month values from yearmonth column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/getting-previous-month-values-from-yearmonth-column/m-p/602107#M1106756</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a Pivot Table.&lt;/P&gt;&lt;P&gt;First Dimension: Client&lt;/P&gt;&lt;P&gt;Second Dimension: date(date#(yearmonth&amp;amp;'01', 'YYYYMMDD'), 'MMMYY')&lt;/P&gt;&lt;P&gt;Expression: sum(Revenue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then pivot (drag) the second dimension (date column) so that the dates go across the top and create columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example file is attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Mar 2014 14:18:17 GMT</pubDate>
    <dc:creator>Nicole-Smith</dc:creator>
    <dc:date>2014-03-20T14:18:17Z</dc:date>
    <item>
      <title>getting previous month values from yearmonth column</title>
      <link>https://community.qlik.com/t5/QlikView/getting-previous-month-values-from-yearmonth-column/m-p/602100#M1106749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have one yearmonth field in a format like 201403, 201402. On the basis of these values we are trying to get values as Mar14,Feb14 etc. When we use function month&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;now&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;yearmonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;now&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;yearmonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) it gives output as Mar2014 but when we try to calculate previous month by using function &lt;/SPAN&gt;month&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;now&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;yearmonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-1)))&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;now&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;yearmonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&amp;nbsp; to get output as Feb2014 it gives value as Mar2014 again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Kindly guide what value should we use so that we get values of previous months like Feb14, Jan14, Dec13 etc..&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 13:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-previous-month-values-from-yearmonth-column/m-p/602100#M1106749</guid>
      <dc:creator>rsdhavle</dc:creator>
      <dc:date>2014-03-20T13:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: getting previous month values from yearmonth column</title>
      <link>https://community.qlik.com/t5/QlikView/getting-previous-month-values-from-yearmonth-column/m-p/602101#M1106750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest using date functions so it will treat your values as dates instead of text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current:&lt;/P&gt;&lt;P&gt;date(date#(yearmonth&amp;amp;'01', 'YYYYMMDD'), 'MMMYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previous:&lt;/P&gt;&lt;P&gt;date(addmonths(date#(yearmonth&amp;amp;'01', 'YYYYMMDD'),-1), 'MMMYY')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 13:56:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-previous-month-values-from-yearmonth-column/m-p/602101#M1106750</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-03-20T13:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: getting previous month values from yearmonth column</title>
      <link>https://community.qlik.com/t5/QlikView/getting-previous-month-values-from-yearmonth-column/m-p/602102#M1106751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect..Thanks Nicole!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 13:59:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-previous-month-values-from-yearmonth-column/m-p/602102#M1106751</guid>
      <dc:creator>rsdhavle</dc:creator>
      <dc:date>2014-03-20T13:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: getting previous month values from yearmonth column</title>
      <link>https://community.qlik.com/t5/QlikView/getting-previous-month-values-from-yearmonth-column/m-p/602103#M1106752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;in addition to that lets say we have one revenue field and on the basis of above values we need to calculate Sum(Rev) for particular values like Mar14, Feb14 etc. How can we do that? What would be the correct expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 14:01:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-previous-month-values-from-yearmonth-column/m-p/602103#M1106752</guid>
      <dc:creator>rsdhavle</dc:creator>
      <dc:date>2014-03-20T14:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: getting previous month values from yearmonth column</title>
      <link>https://community.qlik.com/t5/QlikView/getting-previous-month-values-from-yearmonth-column/m-p/602104#M1106753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are many ways to do that, but try to a different approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume that yourDate = 201403 &lt;/P&gt;&lt;P&gt;First 201403, this is not a date, change to Date#(yourDate&amp;amp;'01','YYYYMMDD'), now you have a date 2014/03/01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's apply the function MonthName(Date#(yourDate&amp;amp;'01','YYYYMMDD')) = Mar 2014 (this is a date),&lt;/P&gt;&lt;P&gt;Now if you want last month you can do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MonthName(AddMonths(Date#(yourDate&amp;amp;'01','YYYYMMDD'),-1)) = Feb 2014&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 14:03:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-previous-month-values-from-yearmonth-column/m-p/602104#M1106753</guid>
      <dc:creator>jolivares</dc:creator>
      <dc:date>2014-03-20T14:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: getting previous month values from yearmonth column</title>
      <link>https://community.qlik.com/t5/QlikView/getting-previous-month-values-from-yearmonth-column/m-p/602105#M1106754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What would the dimension be?&amp;nbsp; (It can't be the date field if you want to use a separate expression for current and previous.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 14:04:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-previous-month-values-from-yearmonth-column/m-p/602105#M1106754</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-03-20T14:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: getting previous month values from yearmonth column</title>
      <link>https://community.qlik.com/t5/QlikView/getting-previous-month-values-from-yearmonth-column/m-p/602106#M1106755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have different dimesnsions lets say client. And for client C1 i need to calculate revenue for currecnt month mar14 and in next column for feb14 and Jan14 etc..just the rquirement is it should start from the latest month in the data and based on that the previous values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 14:06:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-previous-month-values-from-yearmonth-column/m-p/602106#M1106755</guid>
      <dc:creator>rsdhavle</dc:creator>
      <dc:date>2014-03-20T14:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Re: getting previous month values from yearmonth column</title>
      <link>https://community.qlik.com/t5/QlikView/getting-previous-month-values-from-yearmonth-column/m-p/602107#M1106756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a Pivot Table.&lt;/P&gt;&lt;P&gt;First Dimension: Client&lt;/P&gt;&lt;P&gt;Second Dimension: date(date#(yearmonth&amp;amp;'01', 'YYYYMMDD'), 'MMMYY')&lt;/P&gt;&lt;P&gt;Expression: sum(Revenue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then pivot (drag) the second dimension (date column) so that the dates go across the top and create columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example file is attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 14:18:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-previous-month-values-from-yearmonth-column/m-p/602107#M1106756</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-03-20T14:18:17Z</dc:date>
    </item>
  </channel>
</rss>

