<?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: Expression by Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924308#M319921</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Working with a Personal Edition of QlikView, and hence prepared my own sample to try and show how this can work. You may need to alter this based on your need and requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; (Rand() * 100000) as Value,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 'A' as Product,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Week(Date) as Week,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Month(Date) as Month,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Year(Date) as Year,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Ceil(Month(Date)/3) as Quarter;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date((Today() + 365) - RecNo()) as Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate 730;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate(Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; (Rand() * 100000) as Value,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 'B' as Product,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Week(Date) as Week,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Month(Date) as Month,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Year(Date) as Year,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Ceil(Month(Date)/3) as Quarter;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date((Today() + 365) - RecNo()) as Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate 730;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Created a Pivot Table with the following information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions: &lt;STRONG&gt;Product, Year, Quarter, Month, Week&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Expressions:&lt;/P&gt;&lt;P&gt;1) Current Value: &lt;STRONG&gt;=Sum(Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2) Previous Value: &lt;STRONG&gt;=If(Above(TOTAL Product) = Product, Above(TOTAL Sum(Value)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3) % Change: &lt;STRONG&gt;=Sum(Value)/If(Above(TOTAL Product) = Product, Above(TOTAL Sum(Value))) - 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screenshot:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/96044_Capture.PNG" style="height: 358px; width: 620px;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attaching the qvw for your reference as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Aug 2015 02:55:11 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-08-14T02:55:11Z</dc:date>
    <item>
      <title>Expression by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924305#M319918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wanna display % Growth of Sale as follow the formula : (the current - last month ) / last month * 100 . Dimension is Quarter, Month, Week. Parameter is a store. Like a picture. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture-qlik.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/96004_Capture-qlik.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt; I try this expresion for a week but it doesnt work : If(WeekYear='29', (Sum(O_TriGiaBan) - Sum({&amp;lt;WeekYear={'28'}&amp;gt;} O_TriGiaBan))/ &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Sum({&amp;lt;WeekYear={'28'}&amp;gt;} O_TriGiaBan) * 100&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;.I wanna calc all the week in the dimension. Please help me! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 20:23:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924305#M319918</guid>
      <dc:creator />
      <dc:date>2015-08-13T20:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Expression by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924306#M319919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;provide some sample date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 21:08:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924306#M319919</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2015-08-13T21:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Expression by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924307#M319920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will give you my Qlikview file and you can review detail of file !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 02:19:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924307#M319920</guid>
      <dc:creator />
      <dc:date>2015-08-14T02:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Expression by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924308#M319921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Working with a Personal Edition of QlikView, and hence prepared my own sample to try and show how this can work. You may need to alter this based on your need and requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; (Rand() * 100000) as Value,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 'A' as Product,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Week(Date) as Week,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Month(Date) as Month,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Year(Date) as Year,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Ceil(Month(Date)/3) as Quarter;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date((Today() + 365) - RecNo()) as Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate 730;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate(Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; (Rand() * 100000) as Value,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 'B' as Product,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Week(Date) as Week,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Month(Date) as Month,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Year(Date) as Year,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Ceil(Month(Date)/3) as Quarter;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date((Today() + 365) - RecNo()) as Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate 730;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Created a Pivot Table with the following information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions: &lt;STRONG&gt;Product, Year, Quarter, Month, Week&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Expressions:&lt;/P&gt;&lt;P&gt;1) Current Value: &lt;STRONG&gt;=Sum(Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2) Previous Value: &lt;STRONG&gt;=If(Above(TOTAL Product) = Product, Above(TOTAL Sum(Value)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3) % Change: &lt;STRONG&gt;=Sum(Value)/If(Above(TOTAL Product) = Product, Above(TOTAL Sum(Value))) - 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screenshot:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/96044_Capture.PNG" style="height: 358px; width: 620px;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attaching the qvw for your reference as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 02:55:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924308#M319921</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-14T02:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Expression by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924309#M319922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it 's work. But I check Show Partial Sum in Presentation Tab of Chart Properties. And it display the Total Sum (value ) but % Change dont display and the Previous Value dont display, too&amp;nbsp; . The following picture :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture-qlik.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/96050_Capture-qlik.JPG" style="font-size: 13.3333330154419px;" /&gt;&lt;/P&gt;&lt;P&gt;I wanna display all the total % Change and Previous Value. Please help me again &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 04:07:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924309#M319922</guid>
      <dc:creator />
      <dc:date>2015-08-14T04:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Expression by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924310#M319923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What partial total would you be wanting to see for the Previous Column???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 04:18:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924310#M319923</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-14T04:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Expression by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924311#M319924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wanna see Partial total of Previous Value Quarter, or Month.&lt;/P&gt;&lt;P&gt;For example: the Row of Total of Year 2015, the Previous Value will display the Total of Year 2014 , and % Change of 2015 compare with 2014. and the Quarter is same Year...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 04:40:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924311#M319924</guid>
      <dc:creator />
      <dc:date>2015-08-14T04:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Expression by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924312#M319925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 05:09:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924312#M319925</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-14T05:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Expression by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924313#M319926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am so sorry about this inconvenience. I cant see it ??? Can you show me clearly ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 05:50:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924313#M319926</guid>
      <dc:creator />
      <dc:date>2015-08-14T05:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Expression by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924314#M319927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still working on 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;Sorry, I haven't done this before and that is why it is taking some time. Will revert as soon as I have a solution for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 05:58:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924314#M319927</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-14T05:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Expression by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924315#M319928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yup , thank you so much &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 07:29:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924315#M319928</guid>
      <dc:creator />
      <dc:date>2015-08-14T07:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Expression by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924316#M319929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;New Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; (Rand() * 100000) as Value,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 'A' as Product,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Week(Date) as Week,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Month(Date) as Month,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Year(Date) as Year,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Ceil(Month(Date)/3) as Quarter,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Num#(Year(Date)&amp;amp;Ceil(Month(Date)/3)) as YearQuarter;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date((YearStart(Today()) + 730) - RecNo()) as Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate 1460;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate(Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; (Rand() * 100000) as Value,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 'B' as Product,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Week(Date) as Week,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Month(Date) as Month,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Year(Date) as Year,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Ceil(Month(Date)/3) as Quarter,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Num#(Year(Date)&amp;amp;Ceil(Month(Date)/3)) as YearQuarter;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date((YearStart(Today()) + 730) - RecNo()) as Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate 1460;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pivot Table with following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: Product, Year, Quarter, Month&lt;/P&gt;&lt;P&gt;Expressions:&lt;/P&gt;&lt;P&gt;1) Current Value:&lt;STRONG&gt; =Sum(Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2) Previous Value:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Dimensionality() = 2,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; Aggr(Below(Sum(Value)), Product, Year),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; If(Dimensionality() = 3,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; Aggr(Below(Sum(Value)), Product, YearQuarter),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; If(Above(TOTAL Product) = Product, Above(TOTAL Sum(Value)))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3) % Change:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Dimensionality() = 2,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; Sum(Value)/Aggr(Below(Sum(Value)), Product, Year) - 1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; If(Dimensionality() = 3,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; Sum(Value)/Aggr(Below(Sum(Value)), Product, YearQuarter) - 1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; Sum(Value)/If(Above(TOTAL Product) = Product, Above(TOTAL Sum(Value))) - 1))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screenshot:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="96070" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/96070_Capture.PNG" style="height: 469px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the Previous Value expression and % Change expression are using Below() instead of Above() function and I have no idea why is that the case. When I try it with Above, I don't get the results I am seeking, but when I use Below it gives me exactly what I am looking for. So you might have to see if Above or Below works for you. Because from logic I would have though Above to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it would be a good idea to involve some experts here to get better idea of why is this happening, plus they might be able to offer a much better solution also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I request &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/61824"&gt;MarcoWedel&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/120618"&gt;MRKachhiaIMP&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/2286"&gt;rwunderlich&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/23109"&gt;jagan&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/10670"&gt;maxgro&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/27943"&gt;Marcus_Sommer&lt;/A&gt;‌ to help us in understanding why Below is working here and not Above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 10:27:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924316#M319929</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-14T10:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Expression by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924317#M319930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are creating dates, year and month in descending load order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date((Today() + 365) - RecNo()) as Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate 730;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And advanced aggregation uses load order to sort dimension values. That's why you need below() inside the aggr() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 11:01:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924317#M319930</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-14T11:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Expression by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924318#M319931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Super Stefan. I totally forgot that you mentioned this before also. I guess, I won't make this mistake one more time now &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;Thank you for your assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 11:06:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924318#M319931</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-14T11:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Expression by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924319#M319932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;sunindia&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I wanna add 1 expression next to % Change. This expression is % Change compare with last year.&lt;/P&gt;&lt;P&gt;Ex: in the row week 28 in the 2015, the column % Change with Prior Year will display % change of week 28 in the 2015 compare with the week 28 in the 2014 like : (value of week 28-2015) / (value of week-2014) - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="96434" alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/96434_Capture.JPG" style="height: 289px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I have an idea, Can i make the total of quarter,month,week in Edit Script ? or Could you please give me another expresion, Sunny ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 10:43:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-by-Dimension/m-p/924319#M319932</guid>
      <dc:creator />
      <dc:date>2015-08-19T10:43:17Z</dc:date>
    </item>
  </channel>
</rss>

