<?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 Error on writing if condition to filter multiple fields using &amp;quot;and&amp;quot; operator in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-on-writing-if-condition-to-filter-multiple-fields-using/m-p/1266826#M399001</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(country='A'&amp;nbsp; and state='B' and city='C' , sum(sales)/ count(&lt;SPAN style="font-size: 13.3333px;"&gt;city='C'&lt;/SPAN&gt;), &lt;SPAN style="font-size: 13.3333px;"&gt;sum(sales)&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Feb 2017 04:33:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-02-14T04:33:58Z</dc:date>
    <item>
      <title>Error on writing if condition to filter multiple fields using "and" operator in script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-on-writing-if-condition-to-filter-multiple-fields-using/m-p/1266826#M399001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(country='A'&amp;nbsp; and state='B' and city='C' , sum(sales)/ count(&lt;SPAN style="font-size: 13.3333px;"&gt;city='C'&lt;/SPAN&gt;), &lt;SPAN style="font-size: 13.3333px;"&gt;sum(sales)&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2017 04:33:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-on-writing-if-condition-to-filter-multiple-fields-using/m-p/1266826#M399001</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-14T04:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error on writing if condition to filter multiple fields using "and" operator in script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-on-writing-if-condition-to-filter-multiple-fields-using/m-p/1266827#M399002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its working for me&lt;/P&gt;&lt;P&gt;&lt;IMG alt="if.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/153033_if.PNG" style="height: 120px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2017 10:32:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-on-writing-if-condition-to-filter-multiple-fields-using/m-p/1266827#M399002</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2017-02-14T10:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error on writing if condition to filter multiple fields using "and" operator in script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-on-writing-if-condition-to-filter-multiple-fields-using/m-p/1266828#M399003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using this in the script? I don't see anything wrong with the if statement, but if you are using this in the script, you might need a group by statement in your table load. May be provide more information to help you better&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2017 10:33:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-on-writing-if-condition-to-filter-multiple-fields-using/m-p/1266828#M399003</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-14T10:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error on writing if condition to filter multiple fields using "and" operator in script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-on-writing-if-condition-to-filter-multiple-fields-using/m-p/1266829#M399004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes i am using this in the script , tried using group by too. correct me if i am wrong in writing the statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&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;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; font-size: 13px;"&gt;if(country='A'&amp;nbsp; and state='B' and city='C' , sum(sales)/ count(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;city='C'&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(sales)&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;) as A sales&lt;/SPAN&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;resident table&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; font-size: 13px;"&gt;group by Country;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2017 16:24:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-on-writing-if-condition-to-filter-multiple-fields-using/m-p/1266829#M399004</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-14T16:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error on writing if condition to filter multiple fields using "and" operator in script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-on-writing-if-condition-to-filter-multiple-fields-using/m-p/1266830#M399005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yeah its working for me too in the front end but not in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2017 16:27:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-on-writing-if-condition-to-filter-multiple-fields-using/m-p/1266830#M399005</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-14T16:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error on writing if condition to filter multiple fields using "and" operator in script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-on-writing-if-condition-to-filter-multiple-fields-using/m-p/1266831#M399006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what all dimensions you have, but you at least need country, state and city because they are not aggregated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;if(country='A'&amp;nbsp; and state='B' and city='C' , sum(sales)/ count(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;city='C'&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(sales)&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;) as A sales&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;resident table&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;group by Country, state, city;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2017 16:39:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-on-writing-if-condition-to-filter-multiple-fields-using/m-p/1266831#M399006</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-14T16:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error on writing if condition to filter multiple fields using "and" operator in script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-on-writing-if-condition-to-filter-multiple-fields-using/m-p/1266832#M399007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot sunny, its working now with &lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;group by Country, state, city&lt;/STRONG&gt;.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2017 16:54:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-on-writing-if-condition-to-filter-multiple-fields-using/m-p/1266832#M399007</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-14T16:54:13Z</dc:date>
    </item>
  </channel>
</rss>

