<?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 fix this IF condition? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-fix-this-IF-condition/m-p/538550#M201236</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;for min color id&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&amp;nbsp; aggr( min (Color_id),&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;ProductMaterial&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;or try this way&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;ONLY({&amp;lt;Color_id&amp;nbsp; = {"=min (Color_id)"}&amp;gt;}&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;ProductMaterial&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;sum({&amp;lt;UF={'EX'},Color_id={"=MIN(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Color_id&lt;/SPAN&gt;)"}&amp;gt;}&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;costmat&lt;/SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jul 2013 09:59:15 GMT</pubDate>
    <dc:creator>er_mohit</dc:creator>
    <dc:date>2013-07-30T09:59:15Z</dc:date>
    <item>
      <title>How to fix this IF condition?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-fix-this-IF-condition/m-p/538549#M201235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, how to fix the expression below?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;if (UF = 'EX' and ProductMaterial = min(Color_id), sum (costmat))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;ProductMaterial&amp;nbsp; = min (Color_id)&amp;nbsp; is not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;I need to pick up just the first color number from each material and from each product.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Product&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Color_id&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;ProductMaterial&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Cost&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;UF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Thanks.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 09:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-fix-this-IF-condition/m-p/538549#M201235</guid>
      <dc:creator />
      <dc:date>2013-07-30T09:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix this IF condition?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-fix-this-IF-condition/m-p/538550#M201236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;for min color id&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&amp;nbsp; aggr( min (Color_id),&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;ProductMaterial&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;or try this way&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;ONLY({&amp;lt;Color_id&amp;nbsp; = {"=min (Color_id)"}&amp;gt;}&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;ProductMaterial&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;sum({&amp;lt;UF={'EX'},Color_id={"=MIN(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Color_id&lt;/SPAN&gt;)"}&amp;gt;}&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;costmat&lt;/SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 09:59:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-fix-this-IF-condition/m-p/538550#M201236</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-07-30T09:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix this IF condition?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-fix-this-IF-condition/m-p/538551#M201237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;if (UF = 'EX' and &lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Color_id&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt; = Aggr(min(Color_id),&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;ProductMaterial&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;), sum (costmat))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;or try this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;if (UF = 'EX' and &lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Color_id&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt; = min(Color_id)&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;, sum (costmat))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 09:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-fix-this-IF-condition/m-p/538551#M201237</guid>
      <dc:creator />
      <dc:date>2013-07-30T09:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix this IF condition?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-fix-this-IF-condition/m-p/538552#M201238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in script--&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;min(Color_id) as min&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;from table group by &lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;ProductMaterial;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;the try your syntax&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 10:07:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-fix-this-IF-condition/m-p/538552#M201238</guid>
      <dc:creator />
      <dc:date>2013-07-30T10:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix this IF condition?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-fix-this-IF-condition/m-p/538553#M201239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much for everyone!... the expression below fits well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;if (UF = 'EX' and &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Color_id&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt; = Aggr(min(Color_id),&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;ProductMaterial&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;), sum (costmat))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 13:03:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-fix-this-IF-condition/m-p/538553#M201239</guid>
      <dc:creator />
      <dc:date>2013-07-30T13:03:02Z</dc:date>
    </item>
  </channel>
</rss>

