<?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: looking to compute difference between columnvalue in pivot view in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/looking-to-compute-difference-between-columnvalue-in-pivot-view/m-p/1435949#M431367</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, here are few things I want to know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Are you looking to only look at Period and Period -1 in a chart?&lt;/P&gt;&lt;P&gt;2) Period-1 is shown against Period -1 or Period? (For example, when we did Period - Period-1, we had to bring Period-1 in the same column as Period. Is that what you want?)&lt;/P&gt;&lt;P&gt;3) Movemonth is only month or does it have the date information in it? To check this, create a list box for Movemonth and give it a number representation from the number tab to see if it is a number like 41xxx or is it showing 1, 2, 3, 4 or does it not change at all....?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Nov 2017 13:49:07 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-11-22T13:49:07Z</dc:date>
    <item>
      <title>looking to compute difference between columnvalue in pivot view</title>
      <link>https://community.qlik.com/t5/QlikView/looking-to-compute-difference-between-columnvalue-in-pivot-view/m-p/1435941#M431359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/184078_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this pivot view, I'm trying to compute the difference between the months for each line of the update range.&amp;nbsp; I'm looking to get the absolute value.&amp;nbsp; Here is the dimension and expression (just a simple count on the dimension shown in parenthesis.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/184079_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;IMG class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/184080_pastedImage_2.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;the expression I'm using to compute totals by moth is not working - it includes all months.&amp;nbsp; Maybe my approach is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample for on month&lt;/P&gt;&lt;P&gt;Count({&amp;lt;Movemonth = {"$(='&amp;gt;=' &amp;amp; Date((AddMonths(Today(),-3)),'MMMMM'))"}&amp;gt;} unittranid)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help/tips to fix this issue would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 19:10:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/looking-to-compute-difference-between-columnvalue-in-pivot-view/m-p/1435941#M431359</guid>
      <dc:creator>Rkota</dc:creator>
      <dc:date>2017-11-21T19:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: looking to compute difference between columnvalue in pivot view</title>
      <link>https://community.qlik.com/t5/QlikView/looking-to-compute-difference-between-columnvalue-in-pivot-view/m-p/1435942#M431360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not entirely sure, but are you looking to get this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Count(unittranid) - After(Count(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;unittranid))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Count(unittranid) - Before(Count(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;unittranid))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;After(Count(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;unittranid)) - &lt;/SPAN&gt;Count(unittranid)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Before&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;(Count(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;unittranid)) &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;- &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Count(unittranid)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 19:16:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/looking-to-compute-difference-between-columnvalue-in-pivot-view/m-p/1435942#M431360</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-21T19:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: looking to compute difference between columnvalue in pivot view</title>
      <link>https://community.qlik.com/t5/QlikView/looking-to-compute-difference-between-columnvalue-in-pivot-view/m-p/1435943#M431361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worked!!!&amp;nbsp; Had no idea that such a function called after, before exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a ton for the super timely help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on another note, how do I count for a the previous month - with/without putting in the literal.&amp;nbsp; I.E as of today the three prior months are Aug, Sep and Oct.&amp;nbsp;&amp;nbsp; What would be the expression to get the count for each of these months using an expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, many thanks for your timely help Sunny.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 19:30:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/looking-to-compute-difference-between-columnvalue-in-pivot-view/m-p/1435943#M431361</guid>
      <dc:creator>Rkota</dc:creator>
      <dc:date>2017-11-21T19:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: looking to compute difference between columnvalue in pivot view</title>
      <link>https://community.qlik.com/t5/QlikView/looking-to-compute-difference-between-columnvalue-in-pivot-view/m-p/1435944#M431362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Previous month against current month?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 19:45:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/looking-to-compute-difference-between-columnvalue-in-pivot-view/m-p/1435944#M431362</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-21T19:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: looking to compute difference between columnvalue in pivot view</title>
      <link>https://community.qlik.com/t5/QlikView/looking-to-compute-difference-between-columnvalue-in-pivot-view/m-p/1435945#M431363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes please...and make that dynamic - thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here's the expression I was using before&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;Movemonth = {"$(='&amp;gt;=' &amp;amp; Date((AddMonths(Today(),-3)),'MMMMM'))"}&amp;gt;} unittranid)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 19:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/looking-to-compute-difference-between-columnvalue-in-pivot-view/m-p/1435945#M431363</guid>
      <dc:creator>Rkota</dc:creator>
      <dc:date>2017-11-21T19:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: looking to compute difference between columnvalue in pivot view</title>
      <link>https://community.qlik.com/t5/QlikView/looking-to-compute-difference-between-columnvalue-in-pivot-view/m-p/1435946#M431364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anytime you want to bring Previous Month to Today's month, you need to use Above, Below, After, Before function, set analysis is not really a good idea to use here... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 19:57:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/looking-to-compute-difference-between-columnvalue-in-pivot-view/m-p/1435946#M431364</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-21T19:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: looking to compute difference between columnvalue in pivot view</title>
      <link>https://community.qlik.com/t5/QlikView/looking-to-compute-difference-between-columnvalue-in-pivot-view/m-p/1435947#M431365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, how do you created Monthmoevment in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 19:58:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/looking-to-compute-difference-between-columnvalue-in-pivot-view/m-p/1435947#M431365</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-21T19:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: looking to compute difference between columnvalue in pivot view</title>
      <link>https://community.qlik.com/t5/QlikView/looking-to-compute-difference-between-columnvalue-in-pivot-view/m-p/1435948#M431366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks again Sunny.&amp;nbsp; Am beginning to see the same that doing these in qlikview is more work than necessary.&amp;nbsp; Most of what I do is when I load data from SQL server...I try and use qlik only for presentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the Move month based on datename(MONTH, ...) in sql.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should I assume this is better off done when extracting data from the backend?&amp;nbsp; Defer to your opinion since you are a Qlik expert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 20:05:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/looking-to-compute-difference-between-columnvalue-in-pivot-view/m-p/1435948#M431366</guid>
      <dc:creator>Rkota</dc:creator>
      <dc:date>2017-11-21T20:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: looking to compute difference between columnvalue in pivot view</title>
      <link>https://community.qlik.com/t5/QlikView/looking-to-compute-difference-between-columnvalue-in-pivot-view/m-p/1435949#M431367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, here are few things I want to know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Are you looking to only look at Period and Period -1 in a chart?&lt;/P&gt;&lt;P&gt;2) Period-1 is shown against Period -1 or Period? (For example, when we did Period - Period-1, we had to bring Period-1 in the same column as Period. Is that what you want?)&lt;/P&gt;&lt;P&gt;3) Movemonth is only month or does it have the date information in it? To check this, create a list box for Movemonth and give it a number representation from the number tab to see if it is a number like 41xxx or is it showing 1, 2, 3, 4 or does it not change at all....?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 13:49:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/looking-to-compute-difference-between-columnvalue-in-pivot-view/m-p/1435949#M431367</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-22T13:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: looking to compute difference between columnvalue in pivot view</title>
      <link>https://community.qlik.com/t5/QlikView/looking-to-compute-difference-between-columnvalue-in-pivot-view/m-p/1435950#M431368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the note Sunny.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand you right, here is some feedback to your questions.&lt;/P&gt;&lt;P&gt;1. I'm assuming by Period and Period-1, you mean August, September etc., in my pivot view.&amp;nbsp; So, yes, I am trying to compute the difference (increase/decrease) between period 1 and period.&amp;nbsp; Similarly period - 2 and period - 1&lt;/P&gt;&lt;P&gt;2. Movemonth is a string as, I calculate that as part of my SQL output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 15:46:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/looking-to-compute-difference-between-columnvalue-in-pivot-view/m-p/1435950#M431368</guid>
      <dc:creator>Rkota</dc:creator>
      <dc:date>2017-11-22T15:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: looking to compute difference between columnvalue in pivot view</title>
      <link>https://community.qlik.com/t5/QlikView/looking-to-compute-difference-between-columnvalue-in-pivot-view/m-p/1435951#M431369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are looking to find the difference in Period &amp;amp; Period - 1 and Period - 1 &amp;amp; Period - 2 and Period - 2 &amp;amp; Period - 3 and so on... why do you want to use set analysis? What issue are you seeing with using Above()/Below()/After()/Before() functions? A more optimized way is to use &lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt; if you are seeing performance issue... but in this scenario, set analysis is not going to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 16:05:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/looking-to-compute-difference-between-columnvalue-in-pivot-view/m-p/1435951#M431369</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-22T16:05:35Z</dc:date>
    </item>
  </channel>
</rss>

