<?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 Stock Age Simplify in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Stock-Age-Simplify/m-p/1045231#M351433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a way to simplify my expressions for the attached app. The aim of the app is to show how long stock are in warehouse that has not been sold assuming: first in first out (FIFO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Created 5 variables to hold the dates of 30, 60, 90 and 120 days ago.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;30Days = sum({&amp;lt;PoDate ={"&amp;gt;=$(=v30day)&amp;lt;$(=minAllDate)"}&amp;gt;} QtyReceived)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;60Days = sum({&amp;lt;PoDate ={"&amp;gt;=$(=v60day)&amp;lt;$(=&lt;SPAN style="font-size: 13.3333px;"&gt;v30day&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;)"}&amp;gt;} QtyReceived)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1. The user selects a date [openCloseSohDate] (end of month)&lt;/P&gt;&lt;P&gt;2. SOHNow =SUM(Aggr(sum(stockOnHandUnits),idProduct))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Note: I know it does not need to be aggregated, but anyway&lt;/P&gt;&lt;P&gt;3. 30Days = sum(aggr(If(SOHNow = 0, 0, if(SOHNow&amp;lt;30Days, &lt;SPAN style="font-size: 13.3333px;"&gt;SOHNow, &lt;SPAN style="font-size: 13.3333px;"&gt;30Days)),idProduct))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Note: I have to aggregate this, because the field is dependent on another and the dimension can switch between ProdTitle and Department.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;4. 60Days = &lt;SPAN style="font-size: 13.3333px;"&gt;sum(aggr(&lt;/SPAN&gt;if(&lt;SPAN style="font-size: 13.3333px;"&gt;SOHNow - &lt;SPAN style="font-size: 13.3333px;"&gt;30Days &amp;lt;= 0 or 60Days = 0, 0, if(&lt;SPAN style="font-size: 13.3333px;"&gt;SOHNow-30Days&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;60Days, &lt;SPAN style="font-size: 13.3333px;"&gt;SOHNow, &lt;SPAN style="font-size: 13.3333px;"&gt;60Days)), idProduct))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I cannot use the "column(1)-column(2)" for "&lt;SPAN style="font-size: 13.3333px;"&gt;SOHNow - &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;30Days", and have to replace it with the whole expression of &lt;SPAN style="font-size: 13.3333px;"&gt;SOHNow and &lt;/SPAN&gt;30Days this gets really big, really fast (see expression for 120+Days.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to simplify this? !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Feb 2016 08:26:23 GMT</pubDate>
    <dc:creator>erhardt_dekock</dc:creator>
    <dc:date>2016-02-04T08:26:23Z</dc:date>
    <item>
      <title>Stock Age Simplify</title>
      <link>https://community.qlik.com/t5/QlikView/Stock-Age-Simplify/m-p/1045231#M351433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a way to simplify my expressions for the attached app. The aim of the app is to show how long stock are in warehouse that has not been sold assuming: first in first out (FIFO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Created 5 variables to hold the dates of 30, 60, 90 and 120 days ago.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;30Days = sum({&amp;lt;PoDate ={"&amp;gt;=$(=v30day)&amp;lt;$(=minAllDate)"}&amp;gt;} QtyReceived)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;60Days = sum({&amp;lt;PoDate ={"&amp;gt;=$(=v60day)&amp;lt;$(=&lt;SPAN style="font-size: 13.3333px;"&gt;v30day&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;)"}&amp;gt;} QtyReceived)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1. The user selects a date [openCloseSohDate] (end of month)&lt;/P&gt;&lt;P&gt;2. SOHNow =SUM(Aggr(sum(stockOnHandUnits),idProduct))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Note: I know it does not need to be aggregated, but anyway&lt;/P&gt;&lt;P&gt;3. 30Days = sum(aggr(If(SOHNow = 0, 0, if(SOHNow&amp;lt;30Days, &lt;SPAN style="font-size: 13.3333px;"&gt;SOHNow, &lt;SPAN style="font-size: 13.3333px;"&gt;30Days)),idProduct))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Note: I have to aggregate this, because the field is dependent on another and the dimension can switch between ProdTitle and Department.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;4. 60Days = &lt;SPAN style="font-size: 13.3333px;"&gt;sum(aggr(&lt;/SPAN&gt;if(&lt;SPAN style="font-size: 13.3333px;"&gt;SOHNow - &lt;SPAN style="font-size: 13.3333px;"&gt;30Days &amp;lt;= 0 or 60Days = 0, 0, if(&lt;SPAN style="font-size: 13.3333px;"&gt;SOHNow-30Days&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;60Days, &lt;SPAN style="font-size: 13.3333px;"&gt;SOHNow, &lt;SPAN style="font-size: 13.3333px;"&gt;60Days)), idProduct))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I cannot use the "column(1)-column(2)" for "&lt;SPAN style="font-size: 13.3333px;"&gt;SOHNow - &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;30Days", and have to replace it with the whole expression of &lt;SPAN style="font-size: 13.3333px;"&gt;SOHNow and &lt;/SPAN&gt;30Days this gets really big, really fast (see expression for 120+Days.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to simplify this? !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 08:26:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stock-Age-Simplify/m-p/1045231#M351433</guid>
      <dc:creator>erhardt_dekock</dc:creator>
      <dc:date>2016-02-04T08:26:23Z</dc:date>
    </item>
  </channel>
</rss>

