<?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: expression aggregate for supplier in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/expression-aggregate-for-supplier/m-p/454348#M484943</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CAN U ATTACH SMALL DEMO WHAT EXACT U WANT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 May 2013 06:30:54 GMT</pubDate>
    <dc:creator>vikasmahajan</dc:creator>
    <dc:date>2013-05-14T06:30:54Z</dc:date>
    <item>
      <title>expression aggregate for supplier</title>
      <link>https://community.qlik.com/t5/QlikView/expression-aggregate-for-supplier/m-p/454347#M484942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a very helpfull information from you. &lt;/P&gt;&lt;P&gt;I have an expression that show me the lead time of the supplier, using as a dimension the IdSupplier. &lt;/P&gt;&lt;P&gt;This expression is&amp;nbsp; =NUM(AVG(OrderArrivalDate-OrderDate),'#.##0')&lt;/P&gt;&lt;P&gt;I modified this expression, as suggested in this community, to have the &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;forecast of OrderArrivalDate using the&lt;/SPAN&gt;&lt;/SPAN&gt; avg in a chart with the ID Order as dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;alt(OrderArrivalDate, OrderDate + avg({&amp;lt;OrderDate&amp;gt;}total &amp;lt;[IdSupplier]&amp;gt; OrderArrivalDate-OrderDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression works quite well, but only if i select a specific Supplier.&lt;/P&gt;&lt;P&gt;I need that this expression shows the avg of each supllier, not the avg of all supllier with out any selection on the suppliers&lt;/P&gt;&lt;P&gt;I attach the chart for your perusal&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" src="https://community.qlik.com/" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Forecast Date should be different for each order's supplier. In red I highlight that the difference of two dates is always the same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you can help me, because it is very important for my schedules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 17:40:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-aggregate-for-supplier/m-p/454347#M484942</guid>
      <dc:creator>andyrebs</dc:creator>
      <dc:date>2013-05-13T17:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: expression aggregate for supplier</title>
      <link>https://community.qlik.com/t5/QlikView/expression-aggregate-for-supplier/m-p/454348#M484943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CAN U ATTACH SMALL DEMO WHAT EXACT U WANT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 06:30:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-aggregate-for-supplier/m-p/454348#M484943</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2013-05-14T06:30:54Z</dc:date>
    </item>
  </channel>
</rss>

