<?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: set expression is not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-expression-is-not-working/m-p/1165082#M379372</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that your YearPopulation is read as text and not Year field. I would suggest converting it to Year in the script like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Year(Date#(YearPopulation, 'YYYY')) as YearPopulation&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then you can try this:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Sum({&amp;lt;YearPopulation={"$(=Min(YearPopulation))"}&amp;gt;} Population)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case making modification in the script isn't possible, you can try &lt;STRONG&gt;MinString&lt;/STRONG&gt; which will find the Min of Text String:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;=Sum({&amp;lt;YearPopulation={"$(=MinString(YearPopulation))"}&amp;gt;} Population)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jul 2016 01:43:27 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-07-04T01:43:27Z</dc:date>
    <item>
      <title>set expression is not working</title>
      <link>https://community.qlik.com/t5/QlikView/set-expression-is-not-working/m-p/1165077#M379367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to calculate the "Population" of a "Country" at "minimum Year".&lt;/P&gt;&lt;P&gt;PFA - screenshot suggest the min year is 1960. So, I want to calculate sum of population at 1960 of a country. please note that country is selected from a list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using this expression and it is not working:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;YearPopulation={"=(min(num#(YearPopulation)))"}&amp;gt;}Population)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I put =(min(num#(YearPopulation))) in a text box it returns 1960. I am not sure what I am doing wrong in Set Analysis expression. Can you please help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jul 2016 18:23:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-expression-is-not-working/m-p/1165077#M379367</guid>
      <dc:creator />
      <dc:date>2016-07-03T18:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: set expression is not working</title>
      <link>https://community.qlik.com/t5/QlikView/set-expression-is-not-working/m-p/1165078#M379368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you share a sample and what is the expected output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jul 2016 18:32:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-expression-is-not-working/m-p/1165078#M379368</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2016-07-03T18:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: set expression is not working</title>
      <link>https://community.qlik.com/t5/QlikView/set-expression-is-not-working/m-p/1165079#M379369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum({$ &amp;lt;YearPopulation={$(=min(YearPopulation))}&amp;gt;} Population)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jul 2016 18:35:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-expression-is-not-working/m-p/1165079#M379369</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-07-03T18:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: set expression is not working</title>
      <link>https://community.qlik.com/t5/QlikView/set-expression-is-not-working/m-p/1165080#M379370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&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;=sum({&amp;lt;YearPopulation={&lt;STRONG&gt;'$(=(min(num#(YearPopulation))))'&lt;/STRONG&gt;}&amp;gt;}Population)&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;&lt;BR /&gt;&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;i.e. a dollar sign expansion to evaluate the min() function.&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;&lt;BR /&gt;&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;It would also be good to transform the YearPopulation field from text to number in the script.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jul 2016 18:36:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-expression-is-not-working/m-p/1165080#M379370</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-07-03T18:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: set expression is not working</title>
      <link>https://community.qlik.com/t5/QlikView/set-expression-is-not-working/m-p/1165081#M379371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Give a try on the below expression:&lt;BR /&gt;&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;&lt;BR /&gt;&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;=sum({&amp;lt;YearPopulation={"$(=min(num#(YearPopulation)))"}&amp;gt;}Population)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jul 2016 18:36:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-expression-is-not-working/m-p/1165081#M379371</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-07-03T18:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: set expression is not working</title>
      <link>https://community.qlik.com/t5/QlikView/set-expression-is-not-working/m-p/1165082#M379372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that your YearPopulation is read as text and not Year field. I would suggest converting it to Year in the script like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Year(Date#(YearPopulation, 'YYYY')) as YearPopulation&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then you can try this:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Sum({&amp;lt;YearPopulation={"$(=Min(YearPopulation))"}&amp;gt;} Population)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case making modification in the script isn't possible, you can try &lt;STRONG&gt;MinString&lt;/STRONG&gt; which will find the Min of Text String:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;=Sum({&amp;lt;YearPopulation={"$(=MinString(YearPopulation))"}&amp;gt;} Population)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 01:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-expression-is-not-working/m-p/1165082#M379372</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-04T01:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: set expression is not working</title>
      <link>https://community.qlik.com/t5/QlikView/set-expression-is-not-working/m-p/1165083#M379373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 07:00:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-expression-is-not-working/m-p/1165083#M379373</guid>
      <dc:creator />
      <dc:date>2016-07-04T07:00:02Z</dc:date>
    </item>
  </channel>
</rss>

