<?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 Help comparing months data in pivot table? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-comparing-months-data-in-pivot-table/m-p/359677#M133543</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops - yep looks like there was a typo in my answer!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 May 2012 06:59:32 GMT</pubDate>
    <dc:creator>Jason_Michaelides</dc:creator>
    <dc:date>2012-05-21T06:59:32Z</dc:date>
    <item>
      <title>Help comparing months data in pivot table?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-comparing-months-data-in-pivot-table/m-p/359672#M133538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi, Im new to qlikview so tought I would start my community journey with a question on how to compare months (data) in qlikview.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What I would like to do is to Compare data from two different months and write the varience (percent) and create arrows (trends), up or down, depending on the variance (positive or negative)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create this in a pivottable (or any other suggestions on how it can be done?). The percentage variance I would like to show in a seperate column, and the trend-arrow next to it. (See attached file)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stores and months are set as dimensions and the varience and arrows as expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im not really sure how I should compare two months with eachother =if (Sum([Retail Price])&lt;SPAN style="color: #ff0000;"&gt; *Feb*&lt;/SPAN&gt; &amp;gt; Sum ([Retail Price]) &lt;SPAN style="color: #ff0000;"&gt;*Jan* &lt;SPAN style="color: #000000;"&gt;... ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This is where I get stuck, tried to look around but thought this would be the best way to get a good answer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone that is up to help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the attached file is the data created in a pivot. Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_____________________________________________________&lt;/P&gt;&lt;P&gt;My variables are (Stores) = Store Postcode&lt;/P&gt;&lt;P&gt;Sales = Sum ([Retail Price]) &lt;/P&gt;&lt;P&gt;And months = months..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 May 2012 10:21:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-comparing-months-data-in-pivot-table/m-p/359672#M133538</guid>
      <dc:creator />
      <dc:date>2012-05-20T10:21:21Z</dc:date>
    </item>
    <item>
      <title>Help comparing months data in pivot table?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-comparing-months-data-in-pivot-table/m-p/359673#M133539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm guessing you want to select a single month and have the chart show totals for that month, the previous month and variance between them? If so, create a straight table chart with a single dimension, Stores, and 4 expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1: Sum([Retail Price])&lt;/P&gt;&lt;P&gt;2: Sum({&amp;lt;Month={"=$(=Max(Month)-1)"}&amp;gt;} [Retail Price])&lt;/P&gt;&lt;P&gt;3: Expr2Name-Expr1Name&lt;/P&gt;&lt;P&gt;4: If(Expr3Name&amp;lt;0,a,b) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In expression 4, a and b are paths to the built in icons for up and down arrows. You will need to set the representation to Image in the expression tab. Look up the use of built-in icons as I can't remember the syntax right now!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 May 2012 15:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-comparing-months-data-in-pivot-table/m-p/359673#M133539</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-05-20T15:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help comparing months data in pivot table?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-comparing-months-data-in-pivot-table/m-p/359674#M133540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Thanks for the answer! &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;&lt;/P&gt;&lt;P&gt;Yep, that is what I would like to do, compare two months, this month with previous month (and if its possible to show a list of all months and the variances, but thats a later problem!!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did what was stated, however it didnt seem to get the work done... :S&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Expression, Sum({&amp;lt;Month={"=$(=Max(Month)-1)"}&amp;gt;} [Retail Price]), seems to return the same Sum as Sum([Retail Price]), when I select a specifik month... Why I dont know...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will attach the file, maybe its something ive missed...&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 May 2012 19:39:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-comparing-months-data-in-pivot-table/m-p/359674#M133540</guid>
      <dc:creator />
      <dc:date>2012-05-20T19:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help comparing months data in pivot table?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-comparing-months-data-in-pivot-table/m-p/359675#M133541</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;I think if you change the "expr2" as follows, it should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Month={$(=month(AddMonths( Max(Date),-1)))}&amp;gt;} [Retail Price])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://quickdevtips.blogspot.com"&gt;http://quickdevtips.blogspot.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 03:30:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-comparing-months-data-in-pivot-table/m-p/359675#M133541</guid>
      <dc:creator />
      <dc:date>2012-05-21T03:30:26Z</dc:date>
    </item>
    <item>
      <title>Help comparing months data in pivot table?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-comparing-months-data-in-pivot-table/m-p/359676#M133542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Change this expression &lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Month={"=$(=Max(Month)-1)"}&amp;gt;} [Retail Price])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Month={"$(=Max(Month)-1)"}&amp;gt;} [Retail Price])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 05:54:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-comparing-months-data-in-pivot-table/m-p/359676#M133542</guid>
      <dc:creator />
      <dc:date>2012-05-21T05:54:59Z</dc:date>
    </item>
    <item>
      <title>Help comparing months data in pivot table?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-comparing-months-data-in-pivot-table/m-p/359677#M133543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops - yep looks like there was a typo in my answer!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 06:59:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-comparing-months-data-in-pivot-table/m-p/359677#M133543</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-05-21T06:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help comparing months data in pivot table?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-comparing-months-data-in-pivot-table/m-p/359678#M133544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aydin's expression worked well!&lt;/P&gt;&lt;P&gt;Is there now a possibility to show all variances from Jan to Dec in a table without having to specificly select a specific month?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your time!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Ashutosh, I got your expression returning 0 &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 13:32:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-comparing-months-data-in-pivot-table/m-p/359678#M133544</guid>
      <dc:creator />
      <dc:date>2012-05-22T13:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help comparing months data in pivot table?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-comparing-months-data-in-pivot-table/m-p/359679#M133545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah I agree, the expression which I gave will only work if we have numeric months so rather than having jan, feb and so on , if we have 1,2 and so on then expression, I gave will work but that should not be case as most of the time we will have textual months. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just removed the = sign from the already posted expression and did not look at the expression itself.&lt;/P&gt;&lt;P&gt;Anyways, as Aydin already gave the required expression. &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;..&lt;/P&gt;&lt;P&gt;Ashutosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 18:57:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-comparing-months-data-in-pivot-table/m-p/359679#M133545</guid>
      <dc:creator />
      <dc:date>2012-05-22T18:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help comparing months data in pivot table?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-comparing-months-data-in-pivot-table/m-p/359680#M133546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Possibilities to show all months variances in one table (not having to self-select a month) ?&lt;/P&gt;&lt;P&gt;Any way of doing that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 18:53:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-comparing-months-data-in-pivot-table/m-p/359680#M133546</guid>
      <dc:creator />
      <dc:date>2012-05-23T18:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help comparing months data in pivot table?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-comparing-months-data-in-pivot-table/m-p/359681#M133547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes there are ways&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1st way is by using chart inter record functions such as above, before etc&amp;nbsp; (There may be cases where needs more conditions based on the requirements such as irregular intervals)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2nd way is by using island table&amp;nbsp; (Can be very slow for really large data sets.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3rd way, you can precalculate it in your script itself and add one more field as variance. (most flexible and faster but adds one more field in your data model)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached app which shows the 1st 2 ways as 3rd one , I believe you will be able to do it. &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;&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;Ashutosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 19:06:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-comparing-months-data-in-pivot-table/m-p/359681#M133547</guid>
      <dc:creator />
      <dc:date>2012-05-23T19:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help comparing months data in pivot table?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-comparing-months-data-in-pivot-table/m-p/359682#M133548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you need the something like the "Total" table&amp;nbsp; (I named it as "total", it shows Jan to Apr and diference between Jan &amp;amp; Feb, Feb &amp;amp; Mar, Mar &amp;amp; Apr)&lt;/P&gt;&lt;P&gt;in the attached file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 21:55:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-comparing-months-data-in-pivot-table/m-p/359682#M133548</guid>
      <dc:creator />
      <dc:date>2012-05-23T21:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help comparing months data in pivot table?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-comparing-months-data-in-pivot-table/m-p/359683#M133549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, Nice!&lt;/P&gt;&lt;P&gt;Great illustrations Ashutosh! Specially the island chart!&lt;/P&gt;&lt;P&gt;I ended up using Ashutosh suggestion using the chart inter record functions,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My final ended up:&lt;/P&gt;&lt;P&gt;Pivot table:&lt;/P&gt;&lt;P&gt;Dimension: Stores, Months&lt;/P&gt;&lt;P&gt;Expressions, &lt;/P&gt;&lt;P&gt;1. sum([Retail Price]) &lt;/P&gt;&lt;P&gt;2. RangeSum(sum([Retail Price]),-Before(sum([Retail Price])))/Before(sum([Retail Price])) &lt;/P&gt;&lt;P&gt;3. if(Variance&amp;gt;0,'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_ne_g.png','qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_sw_r.png')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Might sound little strange, but seems to actually work for my purpose! &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;&lt;IMG alt="Final.png" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/14691_Final.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aydin thanks! Yep thats it, sum({$ &amp;lt;Month={'Jan'}&amp;gt;} [Retail Price]), so thats how you get 'Jan' &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashutosh, Bilge Aydin and Jason, thank you for your time! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 23:37:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-comparing-months-data-in-pivot-table/m-p/359683#M133549</guid>
      <dc:creator />
      <dc:date>2012-05-23T23:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help comparing months data in pivot table?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-comparing-months-data-in-pivot-table/m-p/359684#M133550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;cool, this is exactly what i wanted, i attached my Qvw with your changes (:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 14:39:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-comparing-months-data-in-pivot-table/m-p/359684#M133550</guid>
      <dc:creator>yakir_manor</dc:creator>
      <dc:date>2016-02-18T14:39:12Z</dc:date>
    </item>
  </channel>
</rss>

