<?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 AGGR function returns value only on first row of chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/AGGR-function-returns-value-only-on-first-row-of-chart/m-p/571240#M212860</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a chart with a calculated dimension and each expression uses a pick(match()) function to use a different expression for each dimension.&amp;nbsp; I have run into a problem with a new function which is below.&amp;nbsp; It will only return a value in the chart at the first row in the chart.&amp;nbsp; So if i put the function in the second row pick(match()) slot, it will return null because it is not the first row in the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr( if(round(($(vTxnBucketAgg('Buys',[Lower Of SP-Moody],BASE_MKT_VALUE)))/($(vTxnBucketExclusionAgg('Buys',[Lower Of SP-Moody],BASE_MKT_VALUE)))) = ORDER_ID, sp_rc_dual),&lt;/P&gt;&lt;P&gt;&amp;nbsp; ORDER_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can simplify the above and just say aggr(if( 3 = order_id, sp_rc_dual), order_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calculated dimension on this chart is a value list:&lt;/P&gt;&lt;P&gt;ValueList(&lt;/P&gt;&lt;P&gt;'Begin',&lt;/P&gt;&lt;P&gt;'Buys',&lt;/P&gt;&lt;P&gt;'Sells',&lt;/P&gt;&lt;P&gt;'End'&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is anyone aware of a reason or way to work around this restriction to get these values to display at all rows so they will pick up in the pick(match()) expressions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Feb 2014 16:34:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-11T16:34:49Z</dc:date>
    <item>
      <title>AGGR function returns value only on first row of chart</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-function-returns-value-only-on-first-row-of-chart/m-p/571240#M212860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a chart with a calculated dimension and each expression uses a pick(match()) function to use a different expression for each dimension.&amp;nbsp; I have run into a problem with a new function which is below.&amp;nbsp; It will only return a value in the chart at the first row in the chart.&amp;nbsp; So if i put the function in the second row pick(match()) slot, it will return null because it is not the first row in the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr( if(round(($(vTxnBucketAgg('Buys',[Lower Of SP-Moody],BASE_MKT_VALUE)))/($(vTxnBucketExclusionAgg('Buys',[Lower Of SP-Moody],BASE_MKT_VALUE)))) = ORDER_ID, sp_rc_dual),&lt;/P&gt;&lt;P&gt;&amp;nbsp; ORDER_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can simplify the above and just say aggr(if( 3 = order_id, sp_rc_dual), order_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calculated dimension on this chart is a value list:&lt;/P&gt;&lt;P&gt;ValueList(&lt;/P&gt;&lt;P&gt;'Begin',&lt;/P&gt;&lt;P&gt;'Buys',&lt;/P&gt;&lt;P&gt;'Sells',&lt;/P&gt;&lt;P&gt;'End'&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is anyone aware of a reason or way to work around this restriction to get these values to display at all rows so they will pick up in the pick(match()) expressions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 16:34:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-function-returns-value-only-on-first-row-of-chart/m-p/571240#M212860</guid>
      <dc:creator />
      <dc:date>2014-02-11T16:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR function returns value only on first row of chart</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-function-returns-value-only-on-first-row-of-chart/m-p/571241#M212861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; maybe you have to add NODISTINCT ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 16:47:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-function-returns-value-only-on-first-row-of-chart/m-p/571241#M212861</guid>
      <dc:creator>bbi_mba_76</dc:creator>
      <dc:date>2014-02-11T16:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR function returns value only on first row of chart</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-function-returns-value-only-on-first-row-of-chart/m-p/571242#M212862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's the simple things in life.&amp;nbsp; Thanks so much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 17:02:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-function-returns-value-only-on-first-row-of-chart/m-p/571242#M212862</guid>
      <dc:creator />
      <dc:date>2014-02-11T17:02:55Z</dc:date>
    </item>
  </channel>
</rss>

