<?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 Aggr formula in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-in-Aggr-formula/m-p/697984#M541823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please elaborate your expression ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jun 2014 08:08:20 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2014-06-18T08:08:20Z</dc:date>
    <item>
      <title>Variable in Aggr formula</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Aggr-formula/m-p/697983#M541822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community members,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with a variable in my aggregation formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: blue;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: blue;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: blue;"&gt;NODISTINCT&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; color: blue;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: maroon;"&gt;DEVEMPDATEKEY&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;,240),&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: maroon;"&gt;SUBDEVICE_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;='2')&amp;lt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: maroon;"&gt;DEVEMPDATEKEY&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;,1,0) * &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: maroon;"&gt;AMOUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;)&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; color: black;"&gt;I want a substitute for the part &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; color: maroon;"&gt;SUBDEVICE_ID&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; color: black;"&gt;='2' into a variable:&amp;nbsp; {&amp;lt;SUBDEVICE_ID={&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; color: maroon;"&gt;"$(vDevIdStation1)"&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; color: black;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me with the syntax.&lt;/P&gt;&lt;P&gt;Many thanks, Gerard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 08:05:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Aggr-formula/m-p/697983#M541822</guid>
      <dc:creator>g_f_bakker</dc:creator>
      <dc:date>2014-06-18T08:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Aggr formula</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Aggr-formula/m-p/697984#M541823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please elaborate your expression ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 08:08:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Aggr-formula/m-p/697984#M541823</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-06-18T08:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Variable in Aggr formula</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Aggr-formula/m-p/697985#M541824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;See attached file. The station is now a fixed number in the aggr function and I like to work with a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is about the last 60 and 240 records of a aggregated sorting per station.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your answer.&lt;/P&gt;&lt;P&gt;Gerard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 08:37:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Aggr-formula/m-p/697985#M541824</guid>
      <dc:creator>g_f_bakker</dc:creator>
      <dc:date>2014-06-18T08:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Aggr formula</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Aggr-formula/m-p/697986#M541825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(If(Aggr(NODISTINCT Max({&amp;lt;STATION={"$(='0'&amp;amp;vStation1)"}&amp;gt;}DEPSTATDATENR,60),STATION)&amp;lt;=DEPSTATDATENR,1,0) * QTYPC)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because your variable doesn't contain the value 02, but 2 it's necessary to add the 0 in the set modifier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 12:29:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Aggr-formula/m-p/697986#M541825</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-06-18T12:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Aggr formula</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Aggr-formula/m-p/697987#M541826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That’s brilliant!!&lt;/P&gt;&lt;P&gt;The 2 and 02 was my error, the former result set was without the 0.&lt;/P&gt;&lt;P&gt;It’s working perfectly now!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks, Gerard. (oftewel: SUPER bedankt man!!)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 07:08:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Aggr-formula/m-p/697987#M541826</guid>
      <dc:creator>g_f_bakker</dc:creator>
      <dc:date>2014-06-19T07:08:37Z</dc:date>
    </item>
  </channel>
</rss>

