<?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: Help with if expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-if-expression/m-p/1018246#M942764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks ok to me. If you're using this expression in a load script then make sure to add every field that is not used in an aggregation function, like min(), to the Group By clause of that load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jan 2016 18:02:00 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-01-18T18:02:00Z</dc:date>
    <item>
      <title>Help with if expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-if-expression/m-p/1018245#M942763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My expression:&lt;/P&gt;&lt;P&gt; IF(Min(MONTHYEAR) &amp;gt; Min(MONTHYEAR2) and isnull(FIELD1),FIELD1B,if(Min(MONTHYEAR) &amp;gt; Min(MONTHYEAR2) and len(FIELD1)&amp;gt;0,FIELD1)) as Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need this:&lt;/P&gt;&lt;P&gt;1.-if(&lt;SPAN style="font-size: 13.3333px;"&gt;Min(MONTHYEAR) &amp;gt; Min(MONTHYEAR2) and isnull(FIELD1) output FIELD1B&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2.-&lt;SPAN style="font-size: 13.3333px;"&gt;if(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Min(MONTHYEAR) &amp;gt; Min(MONTHYEAR2) and isnotnull(FIELD1) output FIELD1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am doing wrong? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 13:36:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-if-expression/m-p/1018245#M942763</guid>
      <dc:creator />
      <dc:date>2016-01-18T13:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help with if expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-if-expression/m-p/1018246#M942764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks ok to me. If you're using this expression in a load script then make sure to add every field that is not used in an aggregation function, like min(), to the Group By clause of that load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 18:02:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-if-expression/m-p/1018246#M942764</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-01-18T18:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help with if expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-if-expression/m-p/1018247#M942765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&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;&lt;STRONG&gt;If(Min(MONTHYEAR) &amp;gt; Min(MONTHYEAR2), &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;If(Len(Trim(FIELD1)) = 0, FIELD1B, &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;FIELD1)) as Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But note that you will get null when Min(MONTHYEAR) &amp;lt;= Min(MONTHYEAR2). If that's what you want then above should work for the two conditions you have give above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 18:02:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-if-expression/m-p/1018247#M942765</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-18T18:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help with if expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-if-expression/m-p/1018248#M942766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I put it all the information here: &lt;A href="https://community.qlik.com/thread/200415"&gt;Problem with if expression&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 08:46:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-if-expression/m-p/1018248#M942766</guid>
      <dc:creator />
      <dc:date>2016-01-19T08:46:25Z</dc:date>
    </item>
  </channel>
</rss>

