<?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: How to compare a user selection and a value? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-compare-a-user-selection-and-a-value/m-p/1263568#M398294</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see a reason for this not working.... Can you share a sample or snapshot to show what exactly do you get and explain as to what you are looking to get?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jan 2017 12:16:06 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-01-31T12:16:06Z</dc:date>
    <item>
      <title>How to compare a user selection and a value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-a-user-selection-and-a-value/m-p/1263567#M398293</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;The user wants to compare revenue growth for two years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose a user selects 2 values of field YEAR. I need the sum of VALUES for min(YEAR) in a column and the sum of VALUES for max(YEAR) in a second column so I can compute the growth between the 2 selected years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying (using set analysis) this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;YEAR = {"$(=min(YEAR))"} VALUE)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;and&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;YEAR = {"$(=max(YEAR))"} VALUE)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this does not work. Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 11:06:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-a-user-selection-and-a-value/m-p/1263567#M398293</guid>
      <dc:creator>renzedegraaf</dc:creator>
      <dc:date>2017-01-31T11:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare a user selection and a value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-a-user-selection-and-a-value/m-p/1263568#M398294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see a reason for this not working.... Can you share a sample or snapshot to show what exactly do you get and explain as to what you are looking to get?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 12:16:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-a-user-selection-and-a-value/m-p/1263568#M398294</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-31T12:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare a user selection and a value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-a-user-selection-and-a-value/m-p/1263569#M398295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how to upload my sample qvw, so here some screenshots.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sample1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/151417_sample1.png" style="height: 285px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sample2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/151418_sample2.png" style="height: 547px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 13:04:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-a-user-selection-and-a-value/m-p/1263569#M398295</guid>
      <dc:creator>renzedegraaf</dc:creator>
      <dc:date>2017-01-31T13:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare a user selection and a value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-a-user-selection-and-a-value/m-p/1263570#M398296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look here to see how a sample can be uploaded&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-16454"&gt;Uploading a Sample&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 13:31:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-a-user-selection-and-a-value/m-p/1263570#M398296</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-31T13:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare a user selection and a value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-a-user-selection-and-a-value/m-p/1263571#M398297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are using two variation of Year (Year and YEAR).... QlikView is case sensitive and you need to make sure you are using the correct casing...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum({&amp;lt;&lt;SPAN style="color: #ff0000;"&gt;Year&lt;/SPAN&gt; = {"$(=min(&lt;SPAN style="color: #ff0000;"&gt;Year&lt;/SPAN&gt;))"} VALUE)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum({&amp;lt;&lt;SPAN style="color: #99cc00;"&gt;YEAR&lt;/SPAN&gt; = {"$(=min(&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #99cc00;"&gt;YEAR&lt;/STRONG&gt;&lt;/SPAN&gt;))"} VALUE)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 13:33:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-a-user-selection-and-a-value/m-p/1263571#M398297</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-31T13:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare a user selection and a value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-a-user-selection-and-a-value/m-p/1263572#M398298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I uploaded a sample app to explain my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 14:28:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-a-user-selection-and-a-value/m-p/1263572#M398298</guid>
      <dc:creator>renzedegraaf</dc:creator>
      <dc:date>2017-01-31T14:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare a user selection and a value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-a-user-selection-and-a-value/m-p/1263573#M398299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You missed the closing set analysis syntax (&lt;STRONG&gt;&amp;gt;}&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are working now:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;Year = {"$(=Min(&lt;SPAN style="color: #ff0000;"&gt;Year&lt;/SPAN&gt;))"}&lt;SPAN style="color: #ff0000;"&gt;&amp;gt;}&lt;/SPAN&gt; Revenue)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;Year = {"$(=Max(&lt;SPAN style="color: #ff0000;"&gt;Year&lt;/SPAN&gt;))"}&lt;SPAN style="color: #ff0000;"&gt;&amp;gt;}&lt;/SPAN&gt; Revenue)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/151441_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 14:51:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-a-user-selection-and-a-value/m-p/1263573#M398299</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-31T14:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare a user selection and a value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-a-user-selection-and-a-value/m-p/1263574#M398300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 08:15:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-a-user-selection-and-a-value/m-p/1263574#M398300</guid>
      <dc:creator>renzedegraaf</dc:creator>
      <dc:date>2017-02-01T08:15:59Z</dc:date>
    </item>
  </channel>
</rss>

