<?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: Need help to make aggr() expression work with Valuelist using island table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-to-make-aggr-expression-work-with-Valuelist-using/m-p/1791272#M1210668</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For Discounts &amp;amp; SubTotal, you can use Sum() function alone without Aggr.&lt;/P&gt;&lt;P&gt;For&amp;nbsp;&lt;SPAN&gt;line_items_price, if you want to use aggr by Order Id based on ur requirement, try like below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sum(Aggr(Sum(line_items_price), [order_id]))&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Mar 2021 03:55:56 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2021-03-15T03:55:56Z</dc:date>
    <item>
      <title>Need help to make aggr() expression work with Valuelist using island table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-to-make-aggr-expression-work-with-Valuelist-using/m-p/1790974#M1210632</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;I'm trying to use aggr() expression in valuelist().&amp;nbsp;&lt;BR /&gt;I know aggr() doesn’t seem to work in combination with ValueList() due to&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;“grain mismatch”.&lt;/STRONG&gt;&amp;nbsp; And need to use island table.&amp;nbsp;&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;But facing difficulties in creating one and understand how island table works.&amp;nbsp;&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Front End Table&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="frontend.jpg" style="width: 519px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51053i0F131BCEAD988C76/image-dimensions/519x130?v=v2" width="519" height="130" role="button" title="frontend.jpg" alt="frontend.jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/STRONG&gt;&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;&lt;P&gt;&lt;STRONG&gt;Dimension:&lt;BR /&gt;&lt;/STRONG&gt;KPI_Dimension:&lt;BR /&gt;Load * INLINE [&lt;BR /&gt;KPI_Metric&lt;BR /&gt;GMV&lt;BR /&gt;Discounts&lt;BR /&gt;Cancellation&lt;BR /&gt;Return&lt;BR /&gt;NetSales&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Expression:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Pick(Match(ValueList('GMV', 'Discounts', 'Cancellation','Return','Net Sales'),&lt;BR /&gt;'GMV', 'Discounts', 'Cancellation','Return','Net Sales'),&lt;/P&gt;&lt;P&gt;Sum(Aggr(Only(line_items_price), [order_id])),&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sum(Aggr(Only(total_discounts), [order_id])),&lt;/P&gt;&lt;P&gt;Sum(Aggr(Only({&amp;lt;fulfilment_flag = {"unfulfilled"}, cancelled_flag = {"Yes"}&amp;gt;} line_items_price ), [order_id])),&lt;/P&gt;&lt;P&gt;Sum(Aggr(Only({&amp;lt;fulfillment_status = {"fulfilled"}, cancelled_flag = {"Yes"}&amp;gt;} line_items_price ), [order_id]))&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Need help on the approach to create island table.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 14:28:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-to-make-aggr-expression-work-with-Valuelist-using/m-p/1790974#M1210632</guid>
      <dc:creator>SujanJoeJacob</dc:creator>
      <dc:date>2021-03-12T14:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to make aggr() expression work with Valuelist using island table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-to-make-aggr-expression-work-with-Valuelist-using/m-p/1790979#M1210633</link>
      <description>&lt;P&gt;I think, if you use Aggr along with Pick &amp;amp; Match, it will give wrong results. May be try avoiding it.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 14:47:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-to-make-aggr-expression-work-with-Valuelist-using/m-p/1790979#M1210633</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2021-03-12T14:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to make aggr() expression work with Valuelist using island table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-to-make-aggr-expression-work-with-Valuelist-using/m-p/1791102#M1210642</link>
      <description>&lt;P&gt;What's the alternative for &amp;nbsp;&amp;gt; Sum(Aggr(Only(line_items_price), [order_id]))?&amp;nbsp;&lt;BR /&gt;To get a sum grouped on dimension.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 20:31:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-to-make-aggr-expression-work-with-Valuelist-using/m-p/1791102#M1210642</guid>
      <dc:creator>SujanJoeJacob</dc:creator>
      <dc:date>2021-03-12T20:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to make aggr() expression work with Valuelist using island table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-to-make-aggr-expression-work-with-Valuelist-using/m-p/1791146#M1210644</link>
      <description>&lt;P&gt;Hi Sujan&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sum(Aggr(Only(line_items_price), [order_id]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Based on my understanding, one order has many order item &amp;amp; each item has their own item price. If its the case, you need to use sum(line_items_price) instead of only(). can you try like&amp;nbsp; below?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sum(Aggr(Sum(line_items_price), [order_id]))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Mar 2021 03:05:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-to-make-aggr-expression-work-with-Valuelist-using/m-p/1791146#M1210644</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-03-13T03:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to make aggr() expression work with Valuelist using island table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-to-make-aggr-expression-work-with-Valuelist-using/m-p/1791193#M1210655</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;SPAN&gt;Mayil&amp;nbsp;,&lt;BR /&gt;Thanks for your reply.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Yes, that's problem with our schema.&amp;nbsp;&lt;BR /&gt;Unfortunately, fields like discounts, subtotal are stored on order level and not line item level.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hence have to do grouping and aggr() on order_id.&amp;nbsp;&lt;BR /&gt;Any alternative to group without aggr()?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Mar 2021 17:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-to-make-aggr-expression-work-with-Valuelist-using/m-p/1791193#M1210655</guid>
      <dc:creator>SujanJoeJacob</dc:creator>
      <dc:date>2021-03-13T17:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to make aggr() expression work with Valuelist using island table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-to-make-aggr-expression-work-with-Valuelist-using/m-p/1791272#M1210668</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For Discounts &amp;amp; SubTotal, you can use Sum() function alone without Aggr.&lt;/P&gt;&lt;P&gt;For&amp;nbsp;&lt;SPAN&gt;line_items_price, if you want to use aggr by Order Id based on ur requirement, try like below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sum(Aggr(Sum(line_items_price), [order_id]))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 03:55:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-to-make-aggr-expression-work-with-Valuelist-using/m-p/1791272#M1210668</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-03-15T03:55:56Z</dc:date>
    </item>
  </channel>
</rss>

