<?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 Above function for two dimensions in line chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Above-function-for-two-dimensions-in-line-chart/m-p/1149368#M916478</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to show Period Over Period calculation in line chart which has 2 dimensions(Month and Product). We are using Above() function in the line chart and it was displaying wrong numbers in the chart. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above() function was working fine in the single dimension chart but not in dual dimension chart. Below is the example of expressions using in my chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression:&lt;/STRONG&gt; Sum(Product TRx) / Sum(Total&amp;lt;Month&amp;gt; Market TRx)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Using Above:&lt;/STRONG&gt; &lt;SPAN style="font-size: 13.3333px;"&gt;Sum(Product TRx) / Sum(Total&amp;lt;Month&amp;gt; Market TRx)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; - (Above(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum(Product TRx) / Sum(Total&amp;lt;Month&amp;gt; Market TRx))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me to understand how above() needs to be changed to work in this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Jaswanth P &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>polisetti</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Above function for two dimensions in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Above-function-for-two-dimensions-in-line-chart/m-p/1149368#M916478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to show Period Over Period calculation in line chart which has 2 dimensions(Month and Product). We are using Above() function in the line chart and it was displaying wrong numbers in the chart. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above() function was working fine in the single dimension chart but not in dual dimension chart. Below is the example of expressions using in my chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression:&lt;/STRONG&gt; Sum(Product TRx) / Sum(Total&amp;lt;Month&amp;gt; Market TRx)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Using Above:&lt;/STRONG&gt; &lt;SPAN style="font-size: 13.3333px;"&gt;Sum(Product TRx) / Sum(Total&amp;lt;Month&amp;gt; Market TRx)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; - (Above(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum(Product TRx) / Sum(Total&amp;lt;Month&amp;gt; Market TRx))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me to understand how above() needs to be changed to work in this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Jaswanth P &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/Above-function-for-two-dimensions-in-line-chart/m-p/1149368#M916478</guid>
      <dc:creator>polisetti</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Above function for two dimensions in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Above-function-for-two-dimensions-in-line-chart/m-p/1149369#M916479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The above() will pick the above &lt;EM&gt;Product&lt;/EM&gt; within the same &lt;EM&gt;Month &lt;/EM&gt;(that's by the order of dimensions needed in your line chart), while you expect to pick the previous Month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can either work with an AsOf Table&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4252"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use the aggr() function to reorder your table dimensions in the chart expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr( &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(Product TRx) / Sum(Total&amp;lt;Month&amp;gt; Market TRx)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; - (Above(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(Product TRx) / Sum(Total&amp;lt;Month&amp;gt; Market TRx))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, Product, Month)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will only work if you are using Month field values with chronologic load order or on newer QV versions using structured parameter:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4673"&gt;The sortable Aggr function is finally here!&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 08:43:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-function-for-two-dimensions-in-line-chart/m-p/1149369#M916479</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-16T08:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Above function for two dimensions in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Above-function-for-two-dimensions-in-line-chart/m-p/1149370#M916480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I may, I would like to suggest an alternative method of doing this. Instead of doing this using Above(), consider creating an As-Of table in the script which will make your life so much easier.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can provide a sample, we might be able to show you how the As-Of Table can work for your scenario.&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>Mon, 16 May 2016 10:02:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-function-for-two-dimensions-in-line-chart/m-p/1149370#M916480</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-16T10:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Above function for two dimensions in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Above-function-for-two-dimensions-in-line-chart/m-p/1149371#M916481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a similar requirement.&lt;/P&gt;&lt;P&gt;I need to show some of the metrics at month level and some at quarter level. My data consists of both Month start date and Quarter start date. I am able to achieve the functionality for monthly data using AsOf Table. I need to show some data for single dimension and some for multiple dimension, similar to Jaswanth's.&lt;/P&gt;&lt;P&gt;Can the same AsOf Table be used for showing both monthly as well as quarterly, or do we need to separate tables. Itried to modify the existing code a bit for quarterly view but couldn't achieve the desired functionality?&lt;/P&gt;&lt;P&gt;I am attaching my sample data (single metric only) and QVW file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 14:40:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-function-for-two-dimensions-in-line-chart/m-p/1149371#M916481</guid>
      <dc:creator />
      <dc:date>2016-05-16T14:40:08Z</dc:date>
    </item>
  </channel>
</rss>

