<?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 How to compare a value from the selection to another value which is not selected. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-compare-a-value-from-the-selection-to-another-value-which/m-p/180912#M47147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bcuisiniere,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply, it does work but Im not sure I want the maximum date in the list. I want the maximum date less than selected statement date. Can you please also help me the label part. I want it to be&lt;/P&gt;&lt;P&gt;Previous Balance [Date]&lt;/P&gt;&lt;P&gt;where Date will be previous statement date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ta.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Nov 2010 16:55:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-11-10T16:55:19Z</dc:date>
    <item>
      <title>How to compare a value from the selection to another value which is not selected.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-a-value-from-the-selection-to-another-value-which/m-p/180910#M47145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I have a list box with dates.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-2803_sourceID:2803" /&gt;&lt;/P&gt;&lt;P&gt;I want to calculate a value based on the selected date and last date. E.g. If a user selects 01/11/2010, I have to calculate previous date's balance whcih is the balance on 15/10/2010.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-2804_sourceID:2804" /&gt;&lt;/P&gt;&lt;P&gt;I am not sure how to really do it.. any help would be great.&lt;/P&gt;&lt;P&gt;Much Appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 16:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-a-value-from-the-selection-to-another-value-which/m-p/180910#M47145</guid>
      <dc:creator />
      <dc:date>2010-11-10T16:05:25Z</dc:date>
    </item>
    <item>
      <title>How to compare a value from the selection to another value which is not selected.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-a-value-from-the-selection-to-another-value-which/m-p/180911#M47146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If your first expression is sum(SALES)&lt;/P&gt;&lt;P&gt;The second should be sum({&amp;lt;[Statement Date]={'$(=date(max({1}[Statement Date])))'}&amp;gt;} SALES)&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Benoît&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 16:35:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-a-value-from-the-selection-to-another-value-which/m-p/180911#M47146</guid>
      <dc:creator />
      <dc:date>2010-11-10T16:35:36Z</dc:date>
    </item>
    <item>
      <title>How to compare a value from the selection to another value which is not selected.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-a-value-from-the-selection-to-another-value-which/m-p/180912#M47147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bcuisiniere,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply, it does work but Im not sure I want the maximum date in the list. I want the maximum date less than selected statement date. Can you please also help me the label part. I want it to be&lt;/P&gt;&lt;P&gt;Previous Balance [Date]&lt;/P&gt;&lt;P&gt;where Date will be previous statement date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ta.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 16:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-a-value-from-the-selection-to-another-value-which/m-p/180912#M47147</guid>
      <dc:creator />
      <dc:date>2010-11-10T16:55:19Z</dc:date>
    </item>
    <item>
      <title>How to compare a value from the selection to another value which is not selected.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-a-value-from-the-selection-to-another-value-which/m-p/180913#M47148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I made a mistake between 15/12/2010 and 15/10/2010.&lt;/P&gt;&lt;P&gt;then try sum({&amp;lt;[Statement Date]={'$(=date(max({1&amp;lt;[Statement Date]={"&amp;lt;$(=date(only([Statement Date])))"}&amp;gt;}[Statement Date])))'}&amp;gt;} SALES)&lt;/P&gt;&lt;P&gt;and the label&lt;/P&gt;&lt;P&gt;='Previous Balance '&amp;amp; date(max({1&amp;lt;[Statement Date]={"&amp;lt;$(=date(only([Statement Date])))"}&amp;gt;}[Statement Date]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 17:22:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-a-value-from-the-selection-to-another-value-which/m-p/180913#M47148</guid>
      <dc:creator />
      <dc:date>2010-11-10T17:22:39Z</dc:date>
    </item>
    <item>
      <title>How to compare a value from the selection to another value which is not selected.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-a-value-from-the-selection-to-another-value-which/m-p/180914#M47149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mate,&lt;/P&gt;&lt;P&gt;Sorry was on holiday for a couple of days. It still doesn't seem to work. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 11:38:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-a-value-from-the-selection-to-another-value-which/m-p/180914#M47149</guid>
      <dc:creator />
      <dc:date>2010-11-16T11:38:27Z</dc:date>
    </item>
    <item>
      <title>How to compare a value from the selection to another value which is not selected.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-a-value-from-the-selection-to-another-value-which/m-p/180915#M47150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if it is a Correct approach but the attach application servers the purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 12:35:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-a-value-from-the-selection-to-another-value-which/m-p/180915#M47150</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2010-11-16T12:35:40Z</dc:date>
    </item>
    <item>
      <title>How to compare a value from the selection to another value which is not selected.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-a-value-from-the-selection-to-another-value-which/m-p/180916#M47151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use peek function in the script&lt;/P&gt;&lt;P&gt;make&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Date as currentdate,&lt;/P&gt;&lt;P&gt;peek(Date) as previousdate&lt;/P&gt;&lt;P&gt;From xxx.qvd;&lt;/P&gt;&lt;P&gt;And use priviousdate in the chart to caculate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 12:59:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-a-value-from-the-selection-to-another-value-which/m-p/180916#M47151</guid>
      <dc:creator />
      <dc:date>2010-11-16T12:59:31Z</dc:date>
    </item>
    <item>
      <title>How to compare a value from the selection to another value which is not selected.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-a-value-from-the-selection-to-another-value-which/m-p/180917#M47152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rishi,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I implemented the peak function and it corrects returns the previous statement.&lt;/P&gt;&lt;P&gt;However, I am unable to use it in my expression.&lt;/P&gt;&lt;P&gt;I am using:&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;StatementDate={$(=PreviousStatementDate)}&amp;gt;} Balance)&lt;/P&gt;&lt;P&gt;Please let me know if I am missing something.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;WB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 15:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-a-value-from-the-selection-to-another-value-which/m-p/180917#M47152</guid>
      <dc:creator />
      <dc:date>2010-11-16T15:05:12Z</dc:date>
    </item>
    <item>
      <title>How to compare a value from the selection to another value which is not selected.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-a-value-from-the-selection-to-another-value-which/m-p/180918#M47153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can explain in more detail if needed, but this is probably the fifth time today I've suggested an AsOf table to solve similar problems, and I'm wearing out. &lt;IMG alt="Wink" src="http://community.qlik.com/emoticons/emotion-5.gif" /&gt; See attached solution. Hopefully it's what you're looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 01:21:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-a-value-from-the-selection-to-another-value-which/m-p/180918#M47153</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-11-17T01:21:00Z</dc:date>
    </item>
  </channel>
</rss>

