<?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 write case statement with COALESCE in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-write-case-statement-with-COALESCE/m-p/1405680#M804274</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi P M,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your quick reply if I am using the above syntax I am getting only true values. I am not getting false values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chinnu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Nov 2017 06:22:02 GMT</pubDate>
    <dc:creator>chinnu123</dc:creator>
    <dc:date>2017-11-03T06:22:02Z</dc:date>
    <item>
      <title>how to write case statement with COALESCE</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-write-case-statement-with-COALESCE/m-p/1405677#M804268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one tell me how to write case statement with COALESCE in qlikview. please convert below below sql code in to qlik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN (COALESCE(INCIDENT.Incident_ID,0) &amp;gt; 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; THEN&amp;nbsp; 'TRUE'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ELSE 'FALSE'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; END AS FLAG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chinnu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-write-case-statement-with-COALESCE/m-p/1405677#M804268</guid>
      <dc:creator>chinnu123</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to write case statement with COALESCE</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-write-case-statement-with-COALESCE/m-p/1405678#M804269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; color: #000000;"&gt;&lt;EM&gt;=if(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;INCIDENT.Incident_ID &lt;/STRONG&gt;&lt;/SPAN&gt;&amp;gt; 0, 'Yes', 'No' )&lt;/EM&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-size: 13.3333px; font-style: inherit; font-weight: inherit;"&gt;For checking null there is the isnull() function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-size: 13.3333px; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN style="color: #000000; font-style: inherit; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where isnull(&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;Incident_ID&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;=0)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 06:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-write-case-statement-with-COALESCE/m-p/1405678#M804269</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2017-11-03T06:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to write case statement with COALESCE</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-write-case-statement-with-COALESCE/m-p/1405679#M804271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;u can write like this,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if( INCIDENT.Incident_ID &amp;gt;0 , 'TRUE','FALSE') &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;AS FLAG,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;COALESCE&amp;nbsp; mean not null values?&amp;nbsp; if so then try like below,&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( INCIDENT.Incident_ID &amp;gt;0 and &lt;STRONG&gt;len(INCIDENT.Incident_ID)&amp;gt;0&lt;/STRONG&gt; , 'TRUE','FALSE') &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;AS FLAG,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and also u can use below way for not null&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Not&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; IsNull(&lt;SPAN&gt;INCIDENT.Incident_ID&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Deva&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 06:03:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-write-case-statement-with-COALESCE/m-p/1405679#M804271</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2017-11-03T06:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to write case statement with COALESCE</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-write-case-statement-with-COALESCE/m-p/1405680#M804274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi P M,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your quick reply if I am using the above syntax I am getting only true values. I am not getting false values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chinnu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 06:22:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-write-case-statement-with-COALESCE/m-p/1405680#M804274</guid>
      <dc:creator>chinnu123</dc:creator>
      <dc:date>2017-11-03T06:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to write case statement with COALESCE</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-write-case-statement-with-COALESCE/m-p/1405681#M804276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For numerics, the equivalent function to SQL COALESCE in QV is Alt():&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;If(Alt(INCIDENT.Incident_ID, 0) &amp;gt; 0, 'TRUE', 'FALSE' )&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;Note that the QV is not totally the same as COALESCE because COALESCE works with non-numeric types as well, while the QV Alt() function only handles numerics.&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 06:38:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-write-case-statement-with-COALESCE/m-p/1405681#M804276</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-11-03T06:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to write case statement with COALESCE</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-write-case-statement-with-COALESCE/m-p/1405682#M804278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as @jonatham suggest &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;If(Alt(INCIDENT.Incident_ID, 0) &amp;gt; 0, 'TRUE', 'FALSE' ) &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 07:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-write-case-statement-with-COALESCE/m-p/1405682#M804278</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2017-11-03T07:12:57Z</dc:date>
    </item>
  </channel>
</rss>

