<?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 if function not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if-function-not-working/m-p/230632#M82444</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried that but when i reload the script is get a error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Aggregation expressions not allowed in GROUP BY clause"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jul 2010 14:34:18 GMT</pubDate>
    <dc:creator>timmy</dc:creator>
    <dc:date>2010-07-22T14:34:18Z</dc:date>
    <item>
      <title>if function not working</title>
      <link>https://community.qlik.com/t5/QlikView/if-function-not-working/m-p/230626#M82438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;i have a problem with the function underneed!!&lt;/P&gt;&lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;B&gt;Count&lt;/B&gt; (&lt;B&gt;Distinct&lt;/B&gt; ( &lt;B&gt;If&lt;/B&gt; ( (&lt;B&gt;ShipDate&lt;/B&gt; - &lt;B&gt;DueDate&lt;/B&gt;) &amp;lt;= 0, &lt;B&gt;if&lt;/B&gt;((&lt;B&gt;Fiscal_Year&lt;/B&gt;=&lt;B&gt;&lt;I&gt;max(Year)&lt;/I&gt;&lt;/B&gt;,&lt;B&gt;SalesOrderID&lt;/B&gt; ))) )&lt;/P&gt;&lt;P&gt;when i try instead of the max(year) just 2009 everything works fine but with the formula is shows nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tnx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 14:13:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-function-not-working/m-p/230626#M82438</guid>
      <dc:creator>timmy</dc:creator>
      <dc:date>2010-07-22T14:13:50Z</dc:date>
    </item>
    <item>
      <title>AW:if function not working</title>
      <link>https://community.qlik.com/t5/QlikView/if-function-not-working/m-p/230627#M82439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;it can not work if number of brackets are wrong:&lt;B&gt;Count&lt;/B&gt;(&lt;B&gt;Distinct&lt;/B&gt; (&lt;B&gt;If&lt;/B&gt;(ShipDate - DueDate) &amp;lt;= 0, &lt;B&gt;if&lt;/B&gt;(Fiscal_Year=&lt;B&gt;max&lt;/B&gt;(Year),SalesOrderID )))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 14:17:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-function-not-working/m-p/230627#M82439</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2010-07-22T14:17:38Z</dc:date>
    </item>
    <item>
      <title>if function not working</title>
      <link>https://community.qlik.com/t5/QlikView/if-function-not-working/m-p/230628#M82440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Create a variabile&lt;/P&gt;&lt;P&gt;Let vMaxYear = max(Year)&lt;/P&gt;&lt;P&gt;and use this:&lt;/P&gt;&lt;P&gt;&lt;B&gt;Count&lt;/B&gt; (&lt;B&gt;Distinct&lt;/B&gt; ( &lt;B&gt;If&lt;/B&gt; ( (&lt;B&gt;ShipDate&lt;/B&gt; - &lt;B&gt;DueDate&lt;/B&gt;) &amp;lt;= 0, &lt;B&gt;if&lt;/B&gt;((&lt;B&gt;Fiscal_Year&lt;/B&gt;=&lt;B&gt;&lt;I&gt;$(vMaxYear)&lt;/I&gt;&lt;/B&gt;,&lt;B&gt;SalesOrderID&lt;/B&gt; ))) )&lt;/P&gt;&lt;P&gt;Mihai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 14:18:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-function-not-working/m-p/230628#M82440</guid>
      <dc:creator>mihaiturturica</dc:creator>
      <dc:date>2010-07-22T14:18:13Z</dc:date>
    </item>
    <item>
      <title>if function not working</title>
      <link>https://community.qlik.com/t5/QlikView/if-function-not-working/m-p/230629#M82441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its your second if command you have an extra set of brackets that arent neccessary. so your if statement has only 1 parameter instead of 2.&lt;/P&gt;&lt;P&gt;try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt; (&lt;B&gt;Distinct&lt;/B&gt; ( &lt;B&gt;If&lt;/B&gt; ( (&lt;B&gt;ShipDate&lt;/B&gt; - &lt;B&gt;DueDate&lt;/B&gt;) &amp;lt;= 0, &lt;B&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;&lt;/B&gt;( &lt;B&gt;Fiscal_Year&lt;/B&gt;=&lt;B&gt;&lt;I&gt;max(Year)&lt;/I&gt;&lt;/B&gt;,&lt;B&gt;SalesOrderID&lt;/B&gt; ) &lt;B&gt;))&lt;/B&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 14:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-function-not-working/m-p/230629#M82441</guid>
      <dc:creator />
      <dc:date>2010-07-22T14:23:31Z</dc:date>
    </item>
    <item>
      <title>if function not working</title>
      <link>https://community.qlik.com/t5/QlikView/if-function-not-working/m-p/230630#M82442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried all the solutions but nothing is working.&lt;/P&gt;&lt;P&gt;tnx for the replies...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 14:29:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-function-not-working/m-p/230630#M82442</guid>
      <dc:creator>timmy</dc:creator>
      <dc:date>2010-07-22T14:29:33Z</dc:date>
    </item>
    <item>
      <title>if function not working</title>
      <link>https://community.qlik.com/t5/QlikView/if-function-not-working/m-p/230631#M82443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try a variable instead of the fieldname like $(vMaxYear)&lt;/P&gt;&lt;P&gt;where vMaxYear = max(Year)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 14:30:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-function-not-working/m-p/230631#M82443</guid>
      <dc:creator>tabletuner</dc:creator>
      <dc:date>2010-07-22T14:30:24Z</dc:date>
    </item>
    <item>
      <title>if function not working</title>
      <link>https://community.qlik.com/t5/QlikView/if-function-not-working/m-p/230632#M82444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried that but when i reload the script is get a error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Aggregation expressions not allowed in GROUP BY clause"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 14:34:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-function-not-working/m-p/230632#M82444</guid>
      <dc:creator>timmy</dc:creator>
      <dc:date>2010-07-22T14:34:18Z</dc:date>
    </item>
    <item>
      <title>if function not working</title>
      <link>https://community.qlik.com/t5/QlikView/if-function-not-working/m-p/230633#M82445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you attach an example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 14:45:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-function-not-working/m-p/230633#M82445</guid>
      <dc:creator />
      <dc:date>2010-07-22T14:45:17Z</dc:date>
    </item>
    <item>
      <title>if function not working</title>
      <link>https://community.qlik.com/t5/QlikView/if-function-not-working/m-p/230634#M82446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Define the variable in the variable overview ( i believe in the settings menu).&lt;/P&gt;&lt;P&gt;Dont define it in the script because the variable must be dynamically defined during runtime.&lt;/P&gt;&lt;P&gt;good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 14:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-function-not-working/m-p/230634#M82446</guid>
      <dc:creator>tabletuner</dc:creator>
      <dc:date>2010-07-22T14:46:12Z</dc:date>
    </item>
  </channel>
</rss>

