<?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 Storing the straight table's Total Mode of a column in a variable for later reference in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Storing-the-straight-table-s-Total-Mode-of-a-column-in-a/m-p/370539#M493517</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to use advanced aggregation in your variable definition to achieve what you want:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In variable overview, use this expression as definition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=sum( aggr( YourComplexExpressionFromTheTable, YourDimensionFromTheTable))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might run into some issues if you are using chart inter record functions in your complex expression, like above(), but you haven't listed that &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 May 2012 14:47:41 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-05-26T14:47:41Z</dc:date>
    <item>
      <title>Storing the straight table's Total Mode of a column in a variable for later reference</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-the-straight-table-s-Total-Mode-of-a-column-in-a/m-p/370538#M493516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Say you have a straight table containg&amp;nbsp; multiple rows (using one dimension) and just one column (one expression). The formula used to arrive at the individual row values is complex [uses divisions, multiplications, set analysis]. The total of the column however is merely the sum of the rows and hence I'm setting the Total mode to "Sum of rows". Now I want this total (which appears in the top most row, above the first row) to be stored in a variable for use in other computations. How do I achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gopal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 May 2012 14:40:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-the-straight-table-s-Total-Mode-of-a-column-in-a/m-p/370538#M493516</guid>
      <dc:creator />
      <dc:date>2012-05-26T14:40:02Z</dc:date>
    </item>
    <item>
      <title>Storing the straight table's Total Mode of a column in a variable for later reference</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-the-straight-table-s-Total-Mode-of-a-column-in-a/m-p/370539#M493517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to use advanced aggregation in your variable definition to achieve what you want:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In variable overview, use this expression as definition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=sum( aggr( YourComplexExpressionFromTheTable, YourDimensionFromTheTable))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might run into some issues if you are using chart inter record functions in your complex expression, like above(), but you haven't listed that &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 May 2012 14:47:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-the-straight-table-s-Total-Mode-of-a-column-in-a/m-p/370539#M493517</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-05-26T14:47:41Z</dc:date>
    </item>
    <item>
      <title>Storing the straight table's Total Mode of a column in a variable for later reference</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-the-straight-table-s-Total-Mode-of-a-column-in-a/m-p/370540#M493518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Piece of cake! Thanks swuehl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 May 2012 15:06:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-the-straight-table-s-Total-Mode-of-a-column-in-a/m-p/370540#M493518</guid>
      <dc:creator />
      <dc:date>2012-05-26T15:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Storing the straight table's Total Mode of a column in a variable for later reference</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-the-straight-table-s-Total-Mode-of-a-column-in-a/m-p/370541#M493519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was exactly what I was looking for. Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 16:28:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-the-straight-table-s-Total-Mode-of-a-column-in-a/m-p/370541#M493519</guid>
      <dc:creator />
      <dc:date>2016-04-28T16:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Storing the straight table's Total Mode of a column in a variable for later reference</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-the-straight-table-s-Total-Mode-of-a-column-in-a/m-p/1550236#M493521</link>
      <description>&lt;P&gt;Hi,&amp;nbsp; It'd be great if you could suggest what to do if i'm using above() in my expression? TIA&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 06:32:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-the-straight-table-s-Total-Mode-of-a-column-in-a/m-p/1550236#M493521</guid>
      <dc:creator>Monika2828</dc:creator>
      <dc:date>2019-02-28T06:32:17Z</dc:date>
    </item>
  </channel>
</rss>

