<?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: Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable/m-p/1779718#M455090</link>
    <description>&lt;P&gt;I'm sorry, I might not been very precise .&amp;nbsp; You need an structured parameter (a field) to aggregate over when using aggr(). Take a look at this page to understand the aggr() functionality.&amp;nbsp; &lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/ChartFunctions/aggr.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/ChartFunctions/aggr.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Feb 2021 12:15:43 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2021-02-03T12:15:43Z</dc:date>
    <item>
      <title>Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/1779702#M455087</link>
      <description>&lt;P&gt;Hi Friends&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created following variable&lt;/P&gt;&lt;P&gt;vSale=sum({&amp;lt;RC_R_TYPE={'DIRECT','FT'}&amp;gt;}RC_AMOUNT)+sum(CS_AMOUNT)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I write an expression with that variable it does not show any value&lt;/P&gt;&lt;P&gt;My Expression&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;PERIODID = {$(=Max(PERIODID))},YEAR =,QUARTER =,MONTH =,PERIOD =&amp;gt;}($(vSale)))&lt;/P&gt;&lt;P&gt;Please help me to correct my error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 11:29:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/1779702#M455087</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2021-02-03T11:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/1779712#M455088</link>
      <description>&lt;P&gt;You have nested sums: sum(sum())&amp;nbsp;&lt;/P&gt;&lt;P&gt;Qlikview don't allow that. A work around is to put an aggregation aggr() in between.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like this :&amp;nbsp; Sum (aggr(sum()))&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 11:52:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/1779712#M455088</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-02-03T11:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/1779714#M455089</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;I modified it like below&lt;/P&gt;&lt;P&gt;sum(aggr(sum({$&amp;lt;PERIODID = {$(=Max(PERIODID))},YEAR =,QUARTER =,MONTH =,PERIOD =&amp;gt;}($(vSale)))))&lt;/P&gt;&lt;P&gt;still not working&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 11:57:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/1779714#M455089</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2021-02-03T11:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/1779718#M455090</link>
      <description>&lt;P&gt;I'm sorry, I might not been very precise .&amp;nbsp; You need an structured parameter (a field) to aggregate over when using aggr(). Take a look at this page to understand the aggr() functionality.&amp;nbsp; &lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/ChartFunctions/aggr.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/ChartFunctions/aggr.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 12:15:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/1779718#M455090</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-02-03T12:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/1779730#M455092</link>
      <description>&lt;P&gt;Thanks for your advice. I still can not find a solution for my issue&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 12:40:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/1779730#M455092</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2021-02-03T12:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/1780041#M455102</link>
      <description>&lt;P&gt;I have following Pivot Table&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="upaliwije_0-1612419502220.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/48466iE566B0B1ED0DA38C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="upaliwije_0-1612419502220.png" alt="upaliwije_0-1612419502220.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Column 1 has the following expression&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;PERIODID = {$(=Max(PERIODID))},YEAR =,QUARTER =,MONTH =,PERIOD =,RC_R_TYPE={'DIRECT','FT'}&amp;gt;}RC_AMOUNT)&lt;/P&gt;&lt;P&gt;Column2 has the following expression&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;PERIODID = {$(=Max(PERIODID))},YEAR =,QUARTER =,MONTH =,PERIOD =&amp;gt;}$(vTsale))&lt;/P&gt;&lt;P&gt;My variable&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;$( vTsale)=sum({&amp;lt;RC_R_TYPE={'DIRECT','FT'}&amp;gt;}RC_AMOUNT)&lt;/P&gt;&lt;P&gt;&lt;U&gt;My Column 2 does not show any value&lt;/U&gt;. Can you please help me to correct my Column 2&amp;nbsp; Expression&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 06:25:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/1780041#M455102</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2021-02-04T06:25:46Z</dc:date>
    </item>
  </channel>
</rss>

