<?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 else statement in direct discovery in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-else-statement-in-direct-discovery/m-p/644114#M678404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we apply any if else statement or case when condition inside direct query?&lt;/P&gt;&lt;P&gt;I realized if we apply if else statement in front end expression,we need to add dimension use in the expression.&lt;/P&gt;&lt;P&gt;For example &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;if(Counter='A',count(Ticket),0), &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;in order to create a chart show no of ticket by Month, we need to add Counter in Dimension tab which is not suppose to.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 May 2014 01:31:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-23T01:31:36Z</dc:date>
    <item>
      <title>If else statement in direct discovery</title>
      <link>https://community.qlik.com/t5/QlikView/If-else-statement-in-direct-discovery/m-p/644114#M678404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we apply any if else statement or case when condition inside direct query?&lt;/P&gt;&lt;P&gt;I realized if we apply if else statement in front end expression,we need to add dimension use in the expression.&lt;/P&gt;&lt;P&gt;For example &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;if(Counter='A',count(Ticket),0), &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;in order to create a chart show no of ticket by Month, we need to add Counter in Dimension tab which is not suppose to.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 01:31:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-else-statement-in-direct-discovery/m-p/644114#M678404</guid>
      <dc:creator />
      <dc:date>2014-05-23T01:31:36Z</dc:date>
    </item>
  </channel>
</rss>

