<?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: How to show previous month data in current month? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-data-in-current-month/m-p/1275410#M400683</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: 'courier new', courier;"&gt;Can you please share an example what you are trying to achieve and would be great if you can add a sample QVW file&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jan 2017 04:35:03 GMT</pubDate>
    <dc:creator>punitpopli</dc:creator>
    <dc:date>2017-01-05T04:35:03Z</dc:date>
    <item>
      <title>How to show previous month data in current month?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-data-in-current-month/m-p/1275409#M400682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;With month as dimension, I want to show previous month data in each month. If I use variable, it shows in two lines. I need to see in one line. Please advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ruchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ruchi Bagaria&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 03:34:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-data-in-current-month/m-p/1275409#M400682</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-05T03:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to show previous month data in current month?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-data-in-current-month/m-p/1275410#M400683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: 'courier new', courier;"&gt;Can you please share an example what you are trying to achieve and would be great if you can add a sample QVW file&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 04:35:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-data-in-current-month/m-p/1275410#M400683</guid>
      <dc:creator>punitpopli</dc:creator>
      <dc:date>2017-01-05T04:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to show previous month data in current month?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-data-in-current-month/m-p/1275411#M400684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Punit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a sample app with sample source data. And thanks for the response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ruchi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 04:58:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-data-in-current-month/m-p/1275411#M400684</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-05T04:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to show previous month data in current month?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-data-in-current-month/m-p/1275412#M400685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;two line, do you mean in two different columns?&lt;/P&gt;&lt;P&gt;and you need it to have both Previous month stock and Current month stock in a single column?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 06:35:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-data-in-current-month/m-p/1275412#M400685</guid>
      <dc:creator>punitpopli</dc:creator>
      <dc:date>2017-01-05T06:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to show previous month data in current month?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-data-in-current-month/m-p/1275413#M400686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be use this for Previous Month for your Pivot Object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum({&amp;lt;MonthYear = {"$(=Date(Max(MonthYear-1),'MMM-YYYY'))"}&amp;gt;}[Total Stock])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Or By using Variable you may try this&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum({&amp;lt;MonthYear = {"$(=vPrevMthNo)"} &amp;gt;}[Total Stock])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 06:42:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-data-in-current-month/m-p/1275413#M400686</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-01-05T06:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to show previous month data in current month?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-data-in-current-month/m-p/1275414#M400687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had tried both. The problem is, the sata comes in two rows. I want it be in a single row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ruchi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 07:13:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-data-in-current-month/m-p/1275414#M400687</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-05T07:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to show previous month data in current month?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-data-in-current-month/m-p/1275415#M400688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;I could solve it. I just had to take the Price from Dimension as put it as a measure and it worked. Hence, closing the discussion. Thanks for your responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ruchi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 07:25:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-data-in-current-month/m-p/1275415#M400688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-05T07:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to show previous month data in current month?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-data-in-current-month/m-p/1275416#M400689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try using aggr function like below :&lt;/P&gt;&lt;P&gt;=aggr(sum({&amp;lt;MonthYear={'$(vPrevMthNo)'}&amp;gt;}[Total Stock]),[Planning Article])&lt;/P&gt;&lt;P&gt;=Aggr( sum([Total Stock]),[Planning Article])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 07:32:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-data-in-current-month/m-p/1275416#M400689</guid>
      <dc:creator>punitpopli</dc:creator>
      <dc:date>2017-01-05T07:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to show previous month data in current month?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-data-in-current-month/m-p/1275417#M400690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: 'courier new', courier;"&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/134702"&gt;ruchibagaria&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #000080;"&gt;Please mark response from above as helpful/correct answer to closed the thread&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: 'courier new', courier;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 09:58:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-data-in-current-month/m-p/1275417#M400690</guid>
      <dc:creator>punitpopli</dc:creator>
      <dc:date>2017-01-05T09:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to show previous month data in current month?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-data-in-current-month/m-p/1275418#M400691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you meant by single row here, can you describe more your intend to look &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got like below, What was the expect from here&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/148417_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 10:18:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-data-in-current-month/m-p/1275418#M400691</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-01-05T10:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to show previous month data in current month?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-data-in-current-month/m-p/1275419#M400692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Punit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution I tried is messing up my other fields. So, I have kept it open now. I tried your option too. It does work on this sample data but is not constant for all selections in my data model. Let me provide a better example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meanwhile please let me know if you can think of any alternative for this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ruchi Bagaria&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2017 09:47:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-data-in-current-month/m-p/1275419#M400692</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-06T09:47:09Z</dc:date>
    </item>
  </channel>
</rss>

