<?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 sales difference for current month and previous month based on selection? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-show-sales-difference-for-current-month-and-previous/m-p/1449291#M798781</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have year, date fields too? If yes, try to share some data/app with such data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Dec 2017 05:24:29 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2017-12-08T05:24:29Z</dc:date>
    <item>
      <title>how to show sales difference for current month and previous month based on selection?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-show-sales-difference-for-current-month-and-previous/m-p/1449290#M798780</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have following table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;month, sales&lt;/P&gt;&lt;P&gt;jan,200&lt;/P&gt;&lt;P&gt;feb,400&lt;/P&gt;&lt;P&gt;mar,750&lt;/P&gt;&lt;P&gt;apr,900&lt;/P&gt;&lt;P&gt;may,1023&lt;/P&gt;&lt;P&gt;jun,1200&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I want to show sales difference&amp;nbsp; in Text box . if i select march &lt;SPAN style="font-size: 13.3333px;"&gt;it should show difference from march sales to feb sales,if i select jun it should show it should show difference from jun to may.based on current it should display.please help me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Anji&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-show-sales-difference-for-current-month-and-previous/m-p/1449290#M798780</guid>
      <dc:creator>Akina0929</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to show sales difference for current month and previous month based on selection?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-show-sales-difference-for-current-month-and-previous/m-p/1449291#M798781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have year, date fields too? If yes, try to share some data/app with such data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 05:24:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-show-sales-difference-for-current-month-and-previous/m-p/1449291#M798781</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-12-08T05:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to show sales difference for current month and previous month based on selection?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-show-sales-difference-for-current-month-and-previous/m-p/1449292#M798782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can Show it with the Help of Two Text Box for current and Previous month using the Set Analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;Month={$(=Max(Months))}&amp;gt;}sales)&amp;nbsp; // For Current Selection&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;Months={$(=Max(Months)-1)}&amp;gt;}Sales) // For Previous month&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 05:31:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-show-sales-difference-for-current-month-and-previous/m-p/1449292#M798782</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-08T05:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to show sales difference for current month and previous month based on selection?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-show-sales-difference-for-current-month-and-previous/m-p/1449293#M798783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hello,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;Use following expression to calulate the sales difference for current month and previous month based on selection&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;Month={$(=Max(Months))}&amp;gt;}sales) &lt;/STRONG&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;Month={$(=Max(Months)-1)}&amp;gt;}sales)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;Regards,&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 06:14:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-show-sales-difference-for-current-month-and-previous/m-p/1449293#M798783</guid>
      <dc:creator>vikasdesai</dc:creator>
      <dc:date>2017-12-08T06:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to show sales difference for current month and previous month based on selection?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-show-sales-difference-for-current-month-and-previous/m-p/1449294#M798784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to the attached sample, best way to derive using master calendar and&amp;nbsp; set analysis method, (real time u should have data in date format with historical period so u have to update this expression). &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/186197_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15127141445603736" jivemacro_uid="_15127141445603736"&gt;
&lt;P&gt;&lt;STRONG&gt;Fact:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;load&amp;nbsp; * Inline [&lt;/P&gt;
&lt;P&gt;month, sales&lt;/P&gt;
&lt;P&gt;jan,200&lt;/P&gt;
&lt;P&gt;feb,400&lt;/P&gt;
&lt;P&gt;mar,750&lt;/P&gt;
&lt;P&gt;apr,900&lt;/P&gt;
&lt;P&gt;may,1023&lt;/P&gt;
&lt;P&gt;jun,1200];&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[Month Sort]:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;load * inline [&lt;/P&gt;
&lt;P&gt;monthno,month&lt;/P&gt;
&lt;P&gt;1,jan&lt;/P&gt;
&lt;P&gt;2,feb&lt;/P&gt;
&lt;P&gt;3,mar&lt;/P&gt;
&lt;P&gt;4,apr&lt;/P&gt;
&lt;P&gt;5,may&lt;/P&gt;
&lt;P&gt;6,jun];&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 06:23:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-show-sales-difference-for-current-month-and-previous/m-p/1449294#M798784</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2017-12-08T06:23:15Z</dc:date>
    </item>
  </channel>
</rss>

