<?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 for if-condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-expression-for-if-condition/m-p/657223#M239958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me know the format for &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sd_verify_max_date&lt;/SPAN&gt;, is it a date?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jul 2014 08:09:17 GMT</pubDate>
    <dc:creator>alexandros17</dc:creator>
    <dc:date>2014-07-11T08:09:17Z</dc:date>
    <item>
      <title>Set expression for if-condition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-for-if-condition/m-p/657218#M239953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to write a set expression for the following condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to count the distributor Id if the sd_verify_max_date is less than the currently selected month and year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If only(Year) &amp;gt; Year(sd_verify_max_date)) and if((only(Year) = Year(sd_verify_max_date) and only(Month) &amp;gt;= Month(sd_verify_max_date) then count of distributor Id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 07:37:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-for-if-condition/m-p/657218#M239953</guid>
      <dc:creator />
      <dc:date>2014-07-11T07:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression for if-condition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-for-if-condition/m-p/657219#M239954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Rahul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You would need to test but it would something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;sd_verify_max_data ={"&amp;lt;$(=Only(Year))"}&amp;gt;}distributor_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should work &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 07:49:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-for-if-condition/m-p/657219#M239954</guid>
      <dc:creator>Luis_Cortizo</dc:creator>
      <dc:date>2014-07-11T07:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression for if-condition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-for-if-condition/m-p/657220#M239955</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;"&gt;Count({$ &amp;lt;Year={'&amp;gt;=$(=Year(getfieldselection(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sd_verify_max_date&lt;/SPAN&gt;)))'}, Month&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;={'&amp;gt;=$(=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Month&lt;/SPAN&gt;(getfieldselection(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sd_verify_max_date&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;)))'}&lt;/SPAN&gt;&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;distributor_Id&lt;/SPAN&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;"&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;"&gt;Let me know&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 07:50:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-for-if-condition/m-p/657220#M239955</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-07-11T07:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression for if-condition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-for-if-condition/m-p/657221#M239956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sd_verify_max_date&lt;/SPAN&gt; is a date field (not strings) then something like this:&lt;/P&gt;&lt;P&gt;count({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sd_verify_max_date &lt;/SPAN&gt;={'&amp;lt;$(=makedate(max(Year),max(Month)))'}&amp;gt;} DistributorID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 07:56:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-for-if-condition/m-p/657221#M239956</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-07-11T07:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression for if-condition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-for-if-condition/m-p/657222#M239957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alessandro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression value is not changing for different selection of month and year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 08:06:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-for-if-condition/m-p/657222#M239957</guid>
      <dc:creator />
      <dc:date>2014-07-11T08:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression for if-condition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-for-if-condition/m-p/657223#M239958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me know the format for &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sd_verify_max_date&lt;/SPAN&gt;, is it a date?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 08:09:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-for-if-condition/m-p/657223#M239958</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-07-11T08:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression for if-condition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-for-if-condition/m-p/657224#M239959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes the sd_verify_max_date is in Date format. And one more issue is that the combination of Year and Month both needs to be considered else it is taking month separately, i.e. 2014 march&amp;nbsp; is considered &amp;gt;= only till 2013 march...months after that are not taken into consideration. So it should be like if selected year is greater than the year of sd_verify_date than only year should be considered and if selected year is equal to the year of sd_verify_date than both year and month should be considered.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 08:17:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-for-if-condition/m-p/657224#M239959</guid>
      <dc:creator />
      <dc:date>2014-07-11T08:17:48Z</dc:date>
    </item>
  </channel>
</rss>

