<?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: [ASK] Create dynamic stock aging as selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ASK-Create-dynamic-stock-aging-as-selection/m-p/1274486#M400479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is there no solution for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Dec 2016 06:13:28 GMT</pubDate>
    <dc:creator>rendiyan</dc:creator>
    <dc:date>2016-12-04T06:13:28Z</dc:date>
    <item>
      <title>[ASK] Create dynamic stock aging as selection</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-Create-dynamic-stock-aging-as-selection/m-p/1274485#M400478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlik Master,&lt;/P&gt;&lt;P&gt;I have a requeirement to create stock aging that able to change dynamically, depend on date selection.&lt;/P&gt;&lt;P&gt;And that aging have to able to show as a list box for filter selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently i able to create this dynamic aging as an expression in a chart, but i can't take it out and make it as a list box selection.&lt;/P&gt;&lt;P&gt;So my chart to create dynamic aging is below :&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="145582" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/145582_Capture.PNG" style="height: 181px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Date, max date, aging, and aging group are expression.&lt;/P&gt;&lt;P&gt;Date column actually only a transaction date column for each stock transaction (in-out) from transaction table.&lt;/P&gt;&lt;P&gt;Max Date is an expression that show max date based on calendar dimension from dimension table..&lt;/P&gt;&lt;P&gt;Aging is an expression based on [Date]-[Max Date].&lt;/P&gt;&lt;P&gt;And Aging Group is a grouping based on [Aging]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for expression script :&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Expression Script&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Date&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;aggr(&lt;/P&gt;&lt;P&gt;only(&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&amp;lt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year={'$(=max(Year))'},&lt;/P&gt;&lt;P&gt;&amp;nbsp; MonthDay={'&amp;lt;=$(=max( {&amp;lt;Year={'$(=max(Year))'}&amp;gt;} MonthDay))'},&lt;/P&gt;&lt;P&gt;&amp;nbsp; Quarter=,Month=,Week=,Day=&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp; [MS Date]&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;,[MS Date],[Code Region],[Code Brance],[Wh ID],ITEMNO,[Wh Name],[Wh Type]&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Max Date&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;max(total&amp;lt;Year,Quarter,Month&amp;gt;&lt;/P&gt;&lt;P&gt;{1&amp;lt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year=P(Year),Quarter=P(Quarter),QuarterNum=P(QuarterNum),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month=P(Month),MonthNum=P(MonthNum),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Day=P(Day),DayNum=P(DayNum)&lt;/P&gt;&lt;P&gt;&amp;gt;}&lt;/P&gt;&lt;P&gt;DATE_DIM)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Aging&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;[Date] - [Max Date]&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As additional info, my date selection dimension columns are : Year, Quarter, Month, Day..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And my question is,&lt;/P&gt;&lt;P&gt;is it possible to create dynamic aging as a list box?&lt;/P&gt;&lt;P&gt;If it is yes, is there any way and solution for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've searched it and didn't found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thx,&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2016 18:18:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-Create-dynamic-stock-aging-as-selection/m-p/1274485#M400478</guid>
      <dc:creator>rendiyan</dc:creator>
      <dc:date>2016-12-03T18:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: [ASK] Create dynamic stock aging as selection</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-Create-dynamic-stock-aging-as-selection/m-p/1274486#M400479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is there no solution for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Dec 2016 06:13:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-Create-dynamic-stock-aging-as-selection/m-p/1274486#M400479</guid>
      <dc:creator>rendiyan</dc:creator>
      <dc:date>2016-12-04T06:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: [ASK] Create dynamic stock aging as selection</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-Create-dynamic-stock-aging-as-selection/m-p/1274487#M400480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;you can try something like this &lt;/P&gt;&lt;P&gt;put the below expression in a list box &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;aggr(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;only(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; {&amp;lt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Year={'$(=max(Year))'},&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; MonthDay={'&amp;lt;=$(=max( {&amp;lt;Year={'$(=max(Year))'}&amp;gt;} MonthDay))'},&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Quarter=,Month=,Week=,Day=&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; &amp;gt;}&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; [MS Date]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)-&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;max(total&amp;lt;Year,Quarter,Month&amp;gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{1&amp;lt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Year=P(Year),Quarter=P(Quarter),QuarterNum=P(QuarterNum),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Month=P(Month),MonthNum=P(MonthNum),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Day=P(Day),DayNum=P(DayNum)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;}&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DATE_DIM)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,[MS Date],[Code Region],[Code Brance],[Wh ID],ITEMNO,[Wh Name],[Wh Type]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Dec 2016 06:23:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-Create-dynamic-stock-aging-as-selection/m-p/1274487#M400480</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2016-12-04T06:23:45Z</dc:date>
    </item>
  </channel>
</rss>

