<?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: condition error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/condition-error/m-p/747752#M266806</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi max ,&lt;/P&gt;&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt; After removing -ve data its not working.&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Feb 2015 07:17:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-02-05T07:17:41Z</dc:date>
    <item>
      <title>condition error</title>
      <link>https://community.qlik.com/t5/QlikView/condition-error/m-p/747747#M266801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; When i using following script it gives exectution error please help me,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load 'Repeat Callers' as desc,CallDate_Date as mon, num(count(DISTINCT CLI),'#,##0.00;(#,##0.00)') as measure&lt;/P&gt;&lt;P&gt;resident test&lt;/P&gt;&lt;P&gt;where count(CLI)&amp;gt;1&lt;/P&gt;&lt;P&gt;group by CallDate_Date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 06:52:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/condition-error/m-p/747747#M266801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-05T06:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: condition error</title>
      <link>https://community.qlik.com/t5/QlikView/condition-error/m-p/747748#M266802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remove '(' from format, and try:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '#,##0.00;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;SPAN style="color: #ff0000; text-decoration: line-through;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;#,##0.00)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 06:56:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/condition-error/m-p/747748#M266802</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-02-05T06:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: condition error</title>
      <link>https://community.qlik.com/t5/QlikView/condition-error/m-p/747749#M266803</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;Apply tresseco solution, It will work for you.&lt;/P&gt;&lt;P&gt;But I just want to know&lt;/P&gt;&lt;P&gt;how can your count goes on negative?&lt;/P&gt;&lt;P&gt;because in this #,##0.00;(#,##0.00) format the () format execute if value goes on -ve.&lt;/P&gt;&lt;P&gt;so if not required remove it from your formating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try like&lt;/P&gt;&lt;P&gt;num(count(DISTINCT CLI),'#,##0.00') as measure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 07:05:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/condition-error/m-p/747749#M266803</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-02-05T07:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: condition error</title>
      <link>https://community.qlik.com/t5/QlikView/condition-error/m-p/747750#M266804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tresesco,&lt;/P&gt;&lt;P&gt; Thanks for your reply.After removing of '( ' also its not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp; load 'Transfered' as desc,CallDate_Date as mon, num(count(CALLINFO_SESSIONID),'#,##0.00;(#,##0.00)') as measure&lt;/P&gt;&lt;P&gt;resident test&lt;/P&gt;&lt;P&gt;where DISPOSITION = 'XA'&lt;/P&gt;&lt;P&gt;group by CallDate_Date;&lt;/P&gt;&lt;P&gt; this script working fine&lt;/P&gt;&lt;P&gt;but followiing script its not working fine.I think its problem in where count(CLI)&amp;gt;1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;load 'Repeat Callers' as desc,CallDate_Date as mon, num(count(DISTINCT CLI),'#,##0.00;(#,##0.00)') as measure&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;resident test&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where count(CLI)&amp;gt;1&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;group by CallDate_Date;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Please help me,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 07:10:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/condition-error/m-p/747750#M266804</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-05T07:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: condition error</title>
      <link>https://community.qlik.com/t5/QlikView/condition-error/m-p/747751#M266805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes that's the issue. first get the count without where condition. Then use resident load with your condition this should work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 07:15:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/condition-error/m-p/747751#M266805</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-02-05T07:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: condition error</title>
      <link>https://community.qlik.com/t5/QlikView/condition-error/m-p/747752#M266806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi max ,&lt;/P&gt;&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt; After removing -ve data its not working.&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 07:17:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/condition-error/m-p/747752#M266806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-05T07:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: condition error</title>
      <link>https://community.qlik.com/t5/QlikView/condition-error/m-p/747753#M266807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;chandini c wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;but followiing script its not working fine.I think its problem in where count(CLI)&amp;gt;1&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Transfered' as desc,CallDate_Date as mon, num(count(CALLINFO_SESSIONID),'#,##0.00;(#,##0.00)') as&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; measure,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(CLI) as Flag&lt;/P&gt;&lt;P&gt;resident test where DISPOSITION = 'XA' group by CallDate_Date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; measure&lt;/P&gt;&lt;P&gt;Resident Temp where Flag&amp;gt;1;&lt;/P&gt;&lt;P&gt;Drop table Temp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 07:22:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/condition-error/m-p/747753#M266807</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-02-05T07:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: condition error</title>
      <link>https://community.qlik.com/t5/QlikView/condition-error/m-p/747754#M266808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Aggregation function cannot be used in where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;In Sql, Having clause can be used to give condition using aggregtion function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;In qlikview you can use preceding load as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Load desc,mon,num(measure,'#,##0.00;(#,##0.00)') as measure where measure &amp;gt; 1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;load 'Repeat Callers' as desc,CallDate_Date as mon, count(DISTINCT CLI) as measure&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;resident test&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;group by CallDate_Date;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 07:22:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/condition-error/m-p/747754#M266808</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-02-05T07:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: condition error</title>
      <link>https://community.qlik.com/t5/QlikView/condition-error/m-p/747755#M266809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi anbu,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks for your reply its working for me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 07:49:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/condition-error/m-p/747755#M266809</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-05T07:49:15Z</dc:date>
    </item>
  </channel>
</rss>

