<?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 previous non-consistent value? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Find-previous-non-consistent-value/m-p/120164#M8379</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you first select the Blue and confirm it and then afterwards select the Red and then confirm it ... it should work. It has always worked for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jul 2018 14:23:15 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2018-07-24T14:23:15Z</dc:date>
    <item>
      <title>Find previous non-consistent value?</title>
      <link>https://community.qlik.com/t5/App-Development/Find-previous-non-consistent-value/m-p/120161#M8376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a filter for 'lothistoryid'. When i select a value (Red) is it possible to show previous value (Blue)&lt;/P&gt;&lt;P&gt;As you can see these do not run in a sequential order.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/208663_Capture.PNG" style="height: 329px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 13:05:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Find-previous-non-consistent-value/m-p/120161#M8376</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-24T13:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Find previous non-consistent value?</title>
      <link>https://community.qlik.com/t5/App-Development/Find-previous-non-consistent-value/m-p/120162#M8377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it is. You can use a set expression with the $1 set identifier which is used for the previous selection:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 20.8px;"&gt;your existing expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 20.8px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 20.8px;"&gt;Sum( [Stock Value])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 20.8px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 20.8px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 20.8px;"&gt;summing over the previous expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 20.8px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 20.8px;"&gt;Sum( {$1} [Stock Value])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 13:47:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Find-previous-non-consistent-value/m-p/120162#M8377</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-07-24T13:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Find previous non-consistent value?</title>
      <link>https://community.qlik.com/t5/App-Development/Find-previous-non-consistent-value/m-p/120163#M8378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This does not work. Say if i select 521 (Red) i want the previous expression to select 252 (Blue) but it doesn't.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 13:50:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Find-previous-non-consistent-value/m-p/120163#M8378</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-24T13:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Find previous non-consistent value?</title>
      <link>https://community.qlik.com/t5/App-Development/Find-previous-non-consistent-value/m-p/120164#M8379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you first select the Blue and confirm it and then afterwards select the Red and then confirm it ... it should work. It has always worked for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 14:23:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Find-previous-non-consistent-value/m-p/120164#M8379</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-07-24T14:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Find previous non-consistent value?</title>
      <link>https://community.qlik.com/t5/App-Development/Find-previous-non-consistent-value/m-p/120165#M8380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe I misunderstood what you meant by "when I select a value"... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean that the previous value should always be the next lower lothistoryid? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 14:33:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Find-previous-non-consistent-value/m-p/120165#M8380</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-07-24T14:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Find previous non-consistent value?</title>
      <link>https://community.qlik.com/t5/App-Development/Find-previous-non-consistent-value/m-p/120166#M8381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Exactly. Is that possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 15:54:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Find-previous-non-consistent-value/m-p/120166#M8381</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-24T15:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Find previous non-consistent value?</title>
      <link>https://community.qlik.com/t5/App-Development/Find-previous-non-consistent-value/m-p/120167#M8382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Yes it is possible. This is a quick hack but it works independent of any load script changes and as long as there is not a huge amount of lothistoryids....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Create a variable named &lt;STRONG&gt;vLHid&lt;/STRONG&gt; with the expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; =Concat({1} DISTINCT lothistoryid,',',lothistoryid)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Create a variable named &lt;STRONG&gt;vPrev&lt;/STRONG&gt; with the expression:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 12pt; font-family: 'courier new', courier;"&gt; =Alt(Pick(Match(Max(lothistoryid),$(vLHid))&lt;STRONG&gt;-1&lt;/STRONG&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'courier new', courier;"&gt;$(vLHid)),0)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression for the chart should then be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; Sum( {1&amp;lt;lothistoryid={$(vPrev)}&amp;gt;} [Stock Value])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Lastly i&lt;SPAN style="font-size: 13.3333px;"&gt;n on the "previous" chart &lt;/SPAN&gt;put in&lt;STRONG&gt; Add-Ons / Data handling / Calculating Condition&lt;/STRONG&gt; the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vPrev&amp;gt;0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;STRONG&gt;Displayed message&lt;/STRONG&gt;:&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; There is no lothistoryid before the selected one&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 17:06:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Find-previous-non-consistent-value/m-p/120167#M8382</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-07-24T17:06:45Z</dc:date>
    </item>
  </channel>
</rss>

