<?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: Re: Re: Pivot question: Alert when does the stock runout (AGGR?) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-question-Alert-when-does-the-stock-runout-AGGR/m-p/697376#M1080357</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect! Thanks again Gysbert!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jul 2014 08:56:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-07-03T08:56:41Z</dc:date>
    <item>
      <title>Pivot question: Alert when does the stock runout (AGGR?)</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-question-Alert-when-does-the-stock-runout-AGGR/m-p/697370#M1080351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear specialist,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got a pivot table with 3 dimensions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Product&lt;/P&gt;&lt;P&gt;Stock&lt;/P&gt;&lt;P&gt;Weeknumber (Year and Week)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For every Product I got an expression which calculates te stock need for every week, which results in this pivot:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Pivot.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/61572_Pivot.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like is a Pivot which shows me when my stocks runs out like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Result.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/61573_Result.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example product 001-0028 the current stock is 223, I got enough for 2014-24 and 2014-15, but not enough for the next week so from there it needs to become red.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What Expression should I use for the background colour to get this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dennis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 10:21:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-question-Alert-when-does-the-stock-runout-AGGR/m-p/697370#M1080351</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-02T10:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot question: Alert when does the stock runout (AGGR?)</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-question-Alert-when-does-the-stock-runout-AGGR/m-p/697371#M1080352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like =if(rangesum(before(total sum(WeekAmount),0,rowno(total)) &amp;gt; Stock, red())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 12:11:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-question-Alert-when-does-the-stock-runout-AGGR/m-p/697371#M1080352</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-07-02T12:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot question: Alert when does the stock runout (AGGR?)</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-question-Alert-when-does-the-stock-runout-AGGR/m-p/697372#M1080353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert, but I dont get it to work with that, the expression you suggested returns 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying now, I add a field Year_week_number, which I want to use in a set analyses in combination with AGGR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I got now is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AGGR(SUM({$&amp;lt;YEAR_WEEK_NUMBER={' &lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt; $(YEAR_WEEK_NUMBER)'}&amp;gt;}AMOUNTNEEDED), PRODUCT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way I am trying to get a sum of all the AMMOUNTNEEDED, of the product&amp;nbsp; of the weeks with a lower number then week in the pivot. From their I will try further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggustions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 13:31:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-question-Alert-when-does-the-stock-runout-AGGR/m-p/697372#M1080353</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-02T13:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot question: Alert when does the stock runout (AGGR?)</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-question-Alert-when-does-the-stock-runout-AGGR/m-p/697373#M1080354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think set analysis will work. The set is calculated at the chart level so you won't get a set per dimension value of YEAR_WEEK_NUMBER. Perhaps you can post a small example document with some data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 13:41:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-question-Alert-when-does-the-stock-runout-AGGR/m-p/697373#M1080354</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-07-02T13:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Pivot question: Alert when does the stock runout (AGGR?)</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-question-Alert-when-does-the-stock-runout-AGGR/m-p/697374#M1080355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank for explaining.&lt;/P&gt;&lt;P&gt;Here is an example document of how my charts looks like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 14:28:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-question-Alert-when-does-the-stock-runout-AGGR/m-p/697374#M1080355</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-02T14:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Pivot question: Alert when does the stock runout (AGGR?)</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-question-Alert-when-does-the-stock-runout-AGGR/m-p/697375#M1080356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this one:&lt;/P&gt;&lt;P&gt;if(rangesum(before(total sum(Needed)*sum(Totaal),0,ColumnNo(total)))&amp;gt;CurrentStock,rgb(250,125,125))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 08:13:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-question-Alert-when-does-the-stock-runout-AGGR/m-p/697375#M1080356</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-07-03T08:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Pivot question: Alert when does the stock runout (AGGR?)</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-question-Alert-when-does-the-stock-runout-AGGR/m-p/697376#M1080357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect! Thanks again Gysbert!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 08:56:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-question-Alert-when-does-the-stock-runout-AGGR/m-p/697376#M1080357</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-03T08:56:41Z</dc:date>
    </item>
  </channel>
</rss>

