<?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 Help with expression (if condition) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-expression-if-condition/m-p/341571#M493041</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;using set inside if condition wont work, try without using it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jun 2012 07:05:49 GMT</pubDate>
    <dc:creator>sivarajs</dc:creator>
    <dc:date>2012-06-07T07:05:49Z</dc:date>
    <item>
      <title>Help with expression (if condition)</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression-if-condition/m-p/341567#M493037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a 'calender' table having years from 1900 to 2999.&lt;/P&gt;&lt;P&gt;This calender table is joined with another table (Say A) by a key (Say A_key)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This table A is joined to my fact table (Say B) by a key (Say B_key) --so basically its a snow-flake kind of connection to calender table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table B contains information related to candidate responses to a set of questions, and main metrics is sum(candidate_response)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the requirement is, as a filter, we need to show the "Year"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i simply add a list box for year, it shows all the values from 1900 to 2999 &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;I dont want this. I want to show in the "Year" filter, only those values which have sum(candidate_response) &amp;gt;0 (or simply put..those Years which are relevant and has informative data associated with it)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression which i tried in "Year" listbox was this &lt;EM&gt;=if(sum({&amp;lt;Year&amp;gt;}candidate_response)&amp;gt;0,Year)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This did not work. Can any experienced guys help me here. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vishnu &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 04:33:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression-if-condition/m-p/341567#M493037</guid>
      <dc:creator />
      <dc:date>2012-06-07T04:33:26Z</dc:date>
    </item>
    <item>
      <title>Help with expression (if condition)</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression-if-condition/m-p/341568#M493038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi this seems to be a simple stuff. Just waiting for help from you&lt;/P&gt;&lt;P&gt;The expression &lt;EM&gt;=if(sum({&amp;lt;Year&amp;gt;}candidate_response)&amp;gt;0,Year) &lt;/EM&gt;is not working &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 05:27:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression-if-condition/m-p/341568#M493038</guid>
      <dc:creator />
      <dc:date>2012-06-07T05:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help with expression (if condition)</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression-if-condition/m-p/341569#M493039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishnu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just wrote inline use same name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This Attachment file is help for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by &lt;/P&gt;&lt;P&gt;Muni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 05:28:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression-if-condition/m-p/341569#M493039</guid>
      <dc:creator>muniyandi</dc:creator>
      <dc:date>2012-06-07T05:28:54Z</dc:date>
    </item>
    <item>
      <title>Help with expression (if condition)</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression-if-condition/m-p/341570#M493040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you need to have all those years in your Calender table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, filter the unwanted values as part of your script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do this, create the Calendar table from Table A, or use Where Exists on the Year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 05:29:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression-if-condition/m-p/341570#M493040</guid>
      <dc:creator />
      <dc:date>2012-06-07T05:29:54Z</dc:date>
    </item>
    <item>
      <title>Help with expression (if condition)</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression-if-condition/m-p/341571#M493041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;using set inside if condition wont work, try without using it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 07:05:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression-if-condition/m-p/341571#M493041</guid>
      <dc:creator>sivarajs</dc:creator>
      <dc:date>2012-06-07T07:05:49Z</dc:date>
    </item>
    <item>
      <title>Help with expression (if condition)</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression-if-condition/m-p/341572#M493042</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;&lt;EM&gt;if(sum({&amp;lt;Year=&amp;gt;}candidate_response)&amp;gt;0,Year)&amp;nbsp; try this Expression .if not working ,please upload sample file &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;for reference .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Perumal A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 08:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression-if-condition/m-p/341572#M493042</guid>
      <dc:creator>perumal_41</dc:creator>
      <dc:date>2012-06-07T08:48:18Z</dc:date>
    </item>
  </channel>
</rss>

