<?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: aggr function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/aggr-function/m-p/1187360#M384035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the last requirement is &lt;SPAN style="font-size: 13.3333px;"&gt;bit confusing &lt;/SPAN&gt;related to 15% from beginning and 15% from end, not sure if you need your resulted values in sorted order. Do you mean if you have 100 values then you want to calculate min and max between 15th to 85th value or something else?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Sep 2016 04:28:02 GMT</pubDate>
    <dc:creator>Digvijay_Singh</dc:creator>
    <dc:date>2016-09-20T04:28:02Z</dc:date>
    <item>
      <title>aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function/m-p/1187357#M384032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #000000; font-family: sans-serif; font-size: 13.696px;"&gt;Hello all,&lt;/P&gt;&lt;P style="color: #000000; font-family: sans-serif; font-size: 13.696px;"&gt;I have a straight table, the dimension contains the calculated dimension of ValueLoop(100,150) and the expression is quite complicated like this :&lt;/P&gt;&lt;P style="color: #000000; font-family: sans-serif; font-size: 13.696px; margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;=(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;( {$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[Value Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;lt;=$(v_MaxDate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;}&amp;gt;}&lt;BR /&gt;&amp;nbsp; If (PC = 'Put' AND ValueLoop(100,150) -&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[Expiration Index]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt; &amp;lt; 0,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((ValueLoop(100,150) - &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[Expiration Index]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;) * &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[Quantity]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt; * -&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[Factor]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;),&lt;BR /&gt;&amp;nbsp; If (PC = 'Call' AND ValueLoop(100,150) -&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[Expiration Index]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt; &amp;gt; 0,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((ValueLoop(100,150) - &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[Expiration Index]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;) * &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[Quantity]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt; *&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[Factor]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;)))) - Sum (&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[Premium]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: sans-serif; font-size: 13.696px; margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: sans-serif; font-size: 13.696px; margin-bottom: 0.0001pt;"&gt;And it works file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: sans-serif; font-size: 13.696px; margin-bottom: 0.0001pt;"&gt;I need to display the minimum value and the maximum value of the list of values displayed in the chart. These 2 numbers should be displayed in 2 variables outside the chart because I need a further calculation on these 2 numbers and only then, they will be the actual output.&lt;/P&gt;&lt;P style="color: #000000; font-family: sans-serif; font-size: 13.696px; margin-bottom: 0.0001pt;"&gt;Actually, the Min value should be from 15% from the beginning of the list and the Max value should be from 15% from the end of the list of values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: sans-serif; font-size: 13.696px; margin-bottom: 0.0001pt;"&gt;Can someone help me with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 06:03:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function/m-p/1187357#M384032</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-19T06:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function/m-p/1187358#M384033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not much complicated,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you provide this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 12px;"&gt;What is the Value of this --&lt;STRONG&gt; v_MaxDate&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET VExpression = &lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #000000;"&gt;ValueLoop(100,150) -&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[Expiration Index]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 12px;"&gt;&lt;STRONG&gt;Perhaps This&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 12px;"&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #000000;"&gt;=(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #000000;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[Value Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #000000;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;lt;=$(v_MaxDate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #000000;"&gt;}&amp;gt;}&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; If (PC = 'Put' AND (ValueLoop(100,150) -&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[Expiration Index])&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #000000;"&gt; &amp;lt; 0,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((ValueLoop(100,150) - &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[Expiration Index]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #000000;"&gt;) * &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[Quantity]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #000000;"&gt; * (-&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[Factor]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #000000;"&gt;)),&lt;BR /&gt;&amp;nbsp; If (PC = 'Call' AND (ValueLoop(100,150) -&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[Expiration Index])&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #000000;"&gt; &amp;gt; 0,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((ValueLoop(100,150) - &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[Expiration Index]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #000000;"&gt;) * &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[Quantity]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #000000;"&gt; *&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[Factor]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #000000;"&gt;)))) - Sum (&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[Premium]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #000000;"&gt;))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000000; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000000; font-size: 9pt; font-family: 'Courier New';"&gt;OR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000000; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;Sum(&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #000000;"&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[Value Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #000000;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;lt;=$(v_MaxDate)"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #000000;"&gt;&lt;STRONG&gt;}, PC={'Put','Call'}, If(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;VExpression&amp;lt;0, ($(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;VExpression) * Quantity * (-Factor)), &lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 13.3333px;"&gt;($(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;VExpression) * Quantity * Factor) &amp;gt;} Premium) - Sum(Premium)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 17:55:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function/m-p/1187358#M384033</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-09-19T17:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function/m-p/1187359#M384034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to share a sample where you have been playing around with it? May be it is easier to see what you have and take it forward from there?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-2380"&gt;QlikCommunity Tip: How to get answers to your post?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-16454"&gt;Uploading a Sample&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 01:51:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function/m-p/1187359#M384034</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-20T01:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function/m-p/1187360#M384035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the last requirement is &lt;SPAN style="font-size: 13.3333px;"&gt;bit confusing &lt;/SPAN&gt;related to 15% from beginning and 15% from end, not sure if you need your resulted values in sorted order. Do you mean if you have 100 values then you want to calculate min and max between 15th to 85th value or something else?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 04:28:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function/m-p/1187360#M384035</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-09-20T04:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function/m-p/1187361#M384036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer,&lt;/P&gt;&lt;P&gt;Maybe a made it too complicated, see the attached print screen. I made a simple scenario and as you can see, the results should be 4 figures.&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;IMG alt="example.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/137970_example.png" style="height: 465px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 04:42:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function/m-p/1187361#M384036</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-20T04:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function/m-p/1187362#M384037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share the qvw with us?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 19:10:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function/m-p/1187362#M384037</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-20T19:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function/m-p/1187363#M384038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Please pay attantion that the expression is just an example, in real life i will use a different one. the idea is to create expression in a text object that simulate a value in a chart.&lt;/P&gt;&lt;P&gt;many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 09:05:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function/m-p/1187363#M384038</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-21T09:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function/m-p/1187364#M384039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see the issue now. I think Aggr() only pre-created dimensions which are available in the script. Is it possible to create the ValueLoop() in the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD 49 + IterNo() as ValueLoopDim,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 0.5 * Rand() as Rand&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;While IterNo() &amp;lt;= 101;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/138238_Capture.PNG" style="height: 277px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 00:09:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function/m-p/1187364#M384039</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-22T00:09:30Z</dc:date>
    </item>
  </channel>
</rss>

