<?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: Aging on the selected day in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aging-on-the-selected-day/m-p/1773480#M506326</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have managed to do that what I wanted but performance is far far from good (one click on stock date causing 110 sec recalculating on bar chart)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;StockDate is from island Table generated from min/max of dates stored in stock table .&lt;/P&gt;&lt;P&gt;Agebucket dimension&amp;nbsp; is also taken from island so I could use pick() function to address the right count into the right bucket frame.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AgeBuckets.JPG" style="width: 713px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46778i52095DDFF697F413/image-dimensions/713x426?v=v2" width="713" height="426" role="button" title="AgeBuckets.JPG" alt="AgeBuckets.JPG" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I know the expression is nasty but only this came to my mind and it works for all possible dates. Now the only way to increase speed is&amp;nbsp; to prepare on backend some table with pre calculated age for some possible dates. But it is only workaround as I cant image do this for all 365 days&amp;nbsp; and it is only one year.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PICK.JPG" style="width: 998px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46780i02C8F488FCE29343/image-size/large?v=v2&amp;amp;px=999" role="button" title="PICK.JPG" alt="PICK.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can you advice any other approach?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jan 2021 21:20:27 GMT</pubDate>
    <dc:creator>waszcma1</dc:creator>
    <dc:date>2021-01-11T21:20:27Z</dc:date>
    <item>
      <title>Aging on the selected day</title>
      <link>https://community.qlik.com/t5/QlikView/Aging-on-the-selected-day/m-p/1773005#M506324</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have stuck and need some help how to handled this topic?&amp;nbsp; The aim of the task is start showing distribution age of item on the stock.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graph.jpg" style="width: 666px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46682i9E859D6DBC8C48BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="graph.jpg" alt="graph.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Master data table contains 12+ mln records with all movement recorded.&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Table.jpg" style="width: 536px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46680i554BFCA0A7DDEDCE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Table.jpg" alt="Table.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="code.jpg" style="width: 769px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46687i04E768D0F3283FC5/image-size/large?v=v2&amp;amp;px=999" role="button" title="code.jpg" alt="code.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So far is ok&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I can use DaysinStock to calculate agebucket&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ageBucket.jpg" style="width: 609px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46685i6F0C5D970E6060FA/image-size/large?v=v2&amp;amp;px=999" role="button" title="ageBucket.jpg" alt="ageBucket.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output is ok but works only for snapshot for actual day (I mean today())&lt;/P&gt;&lt;P&gt;how can I achieve dynamic graph so when I select "2020-11-05" then the item from the example should be automatically placed in age bucket&amp;nbsp; '&amp;lt;10 days' (age = '2020-11-06' - '2020-10-30' it should be 6 days)&amp;nbsp; but with my current code is still in '61 - 90'&amp;nbsp;&amp;nbsp; (age = '2021-01-08' - '2020-10-30' so&amp;nbsp; 70 days.&lt;/P&gt;&lt;P&gt;the expression which I use works fine only for actual day. When I change [Check stock date] it is not working fully ok&lt;/P&gt;&lt;P&gt;count(distinct{&amp;lt; FirstTimeIN={"&amp;lt;=$(=only([Check stock date]))"}&amp;nbsp;&amp;gt;} %KEY_ACTUAL)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 21:15:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aging-on-the-selected-day/m-p/1773005#M506324</guid>
      <dc:creator>waszcma1</dc:creator>
      <dc:date>2021-01-08T21:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Aging on the selected day</title>
      <link>https://community.qlik.com/t5/QlikView/Aging-on-the-selected-day/m-p/1773100#M506325</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/42737"&gt;@waszcma1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want dynamic o/p, you need to calculate the Daysinstock / aging in front end instead of script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of Today, you can use max(&lt;SPAN&gt;&amp;nbsp;[Check stock date]&lt;/SPAN&gt;) in front end.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;use variable, for easy approach.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jan 2021 02:09:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aging-on-the-selected-day/m-p/1773100#M506325</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-01-10T02:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Aging on the selected day</title>
      <link>https://community.qlik.com/t5/QlikView/Aging-on-the-selected-day/m-p/1773480#M506326</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have managed to do that what I wanted but performance is far far from good (one click on stock date causing 110 sec recalculating on bar chart)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;StockDate is from island Table generated from min/max of dates stored in stock table .&lt;/P&gt;&lt;P&gt;Agebucket dimension&amp;nbsp; is also taken from island so I could use pick() function to address the right count into the right bucket frame.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AgeBuckets.JPG" style="width: 713px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46778i52095DDFF697F413/image-dimensions/713x426?v=v2" width="713" height="426" role="button" title="AgeBuckets.JPG" alt="AgeBuckets.JPG" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I know the expression is nasty but only this came to my mind and it works for all possible dates. Now the only way to increase speed is&amp;nbsp; to prepare on backend some table with pre calculated age for some possible dates. But it is only workaround as I cant image do this for all 365 days&amp;nbsp; and it is only one year.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PICK.JPG" style="width: 998px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46780i02C8F488FCE29343/image-size/large?v=v2&amp;amp;px=999" role="button" title="PICK.JPG" alt="PICK.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can you advice any other approach?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 21:20:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aging-on-the-selected-day/m-p/1773480#M506326</guid>
      <dc:creator>waszcma1</dc:creator>
      <dc:date>2021-01-11T21:20:27Z</dc:date>
    </item>
  </channel>
</rss>

