<?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: Find last string and show value, if string not found show value 0 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-last-string-and-show-value-if-string-not-found-show-value-0/m-p/940894#M975936</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure to disable the Suppress Zero-Values option on the Presentation tab,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Aug 2015 18:13:16 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-08-31T18:13:16Z</dc:date>
    <item>
      <title>Find last string and show value, if string not found show value 0</title>
      <link>https://community.qlik.com/t5/QlikView/Find-last-string-and-show-value-if-string-not-found-show-value-0/m-p/940891#M975933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Experts, im generating a inventory overview where in a chart the historical figures are shown and another chart is showing the actual stocks, the actual stock should show just the last stock figures (29.08.15)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" height="582" src="https://community.qlik.com/legacyfs/online/97449_pastedImage_0.png" style="width: 530px; height: 582.145px;" width="530" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The inventory history is working fine, no issue... But im struggling a bit wo show the actual stocks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Defintion how the sql server is loaded with the our stock.&lt;/P&gt;&lt;P&gt;1. Normally with a daily frequency (sometimes just after 2 or 3 days, thats teh reason im showing the stock date on the actual stock information)&lt;/P&gt;&lt;P&gt;2. If a stock value is 0, no data will be written to the database&lt;/P&gt;&lt;P&gt;3. History, is stored once a month (later once a week9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My idea was to look generally after the last inventory file update (string) and check whether on that specific date, the item has recorded some stock. If nothing is found the value 0 should be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To find the last string i made this expresion, which gives me the correct date information back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MaxString ({1&amp;lt;#InventoryOnHand+={1}&amp;gt;}Date) &lt;/P&gt;&lt;P&gt;value is 29.08.2015&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i like to do now is, if a item hast stock information at the 29.08.15, i would like to display that value, if no information are found on the item, the value should be zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody help me out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 14:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-last-string-and-show-value-if-string-not-found-show-value-0/m-p/940891#M975933</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-31T14:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Find last string and show value, if string not found show value 0</title>
      <link>https://community.qlik.com/t5/QlikView/Find-last-string-and-show-value-if-string-not-found-show-value-0/m-p/940892#M975934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Create a variabel vMaxDate: =&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MaxString ({1&amp;lt;#InventoryOnHand+={1}&amp;gt;}Date)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;And an expression that uses that variable &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; alt(sum({&amp;lt;Date={'$(vMaxDate)'}&amp;gt;}InventoryOnHand),0)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 14:41:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-last-string-and-show-value-if-string-not-found-show-value-0/m-p/940892#M975934</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-08-31T14:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Find last string and show value, if string not found show value 0</title>
      <link>https://community.qlik.com/t5/QlikView/Find-last-string-and-show-value-if-string-not-found-show-value-0/m-p/940893#M975935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for support &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did try your solution, just have a problem that zero stock items arent displayed. Lets say i have an assortment over 100 items, if 20 items have no stock, im going to show just 80 items in total. Target ist that i show 100 items, 20 of it with value zero. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another problem is, if any filter is set on the date, the items are going to disapear as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 17:59:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-last-string-and-show-value-if-string-not-found-show-value-0/m-p/940893#M975935</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-31T17:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Find last string and show value, if string not found show value 0</title>
      <link>https://community.qlik.com/t5/QlikView/Find-last-string-and-show-value-if-string-not-found-show-value-0/m-p/940894#M975936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure to disable the Suppress Zero-Values option on the Presentation tab,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 18:13:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-last-string-and-show-value-if-string-not-found-show-value-0/m-p/940894#M975936</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-08-31T18:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Find last string and show value, if string not found show value 0</title>
      <link>https://community.qlik.com/t5/QlikView/Find-last-string-and-show-value-if-string-not-found-show-value-0/m-p/940895#M975938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Full assortment is diplayed&lt;/P&gt;&lt;P&gt;Date selection hast no influence on the actual stock overview&lt;/P&gt;&lt;P&gt;No double counts on items&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks, just great your support &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 18:34:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-last-string-and-show-value-if-string-not-found-show-value-0/m-p/940895#M975938</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-31T18:34:35Z</dc:date>
    </item>
  </channel>
</rss>

