<?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: Coalesce statement in Qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Coalesce-statement-in-Qlikview/m-p/1089179#M931425</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. No brackets are not the issue here. I'm attaching a sample data set whenever you get a chance.&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/116911_Capture.PNG" style="height: 81px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more question Bill is the following the right syntax for null. I've to write an where clause where the id is null&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; font-size: 10pt;"&gt;where len(trim(id=0)) would this be enough??&lt;/STRONG&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>Thu, 03 Mar 2016 23:00:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-03-03T23:00:09Z</dc:date>
    <item>
      <title>Coalesce statement in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Coalesce-statement-in-Qlikview/m-p/1089177#M931423</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;&lt;SPAN style="color: #500050; font-family: arial, sans-serif; font-size: 12.8px;"&gt;select distinct d2.clientid, d1c.clientname, &lt;STRONG style="font-size: 14pt;"&gt;coalesce(statusname,d2.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #500050; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;STRONG style="font-size: 14pt;"&gt;recordedstatus)&lt;/STRONG&gt; as status, case when activeusercount is not null and activeusercount &amp;gt; 2 then 'yes' else 'no' end as "More than 2 users in 30 days", d1.testaccountflag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #500050; font-family: arial, sans-serif; font-size: 12.8px;"&gt;where d2.fkdimrbcapplication &amp;lt; 15&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #500050; font-family: arial, sans-serif; font-size: 12.8px;"&gt;and usethisinstance = 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #500050; font-family: arial, sans-serif; font-size: 12.8px;"&gt;and netsuiteid is null&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #500050; font-family: arial, sans-serif; font-size: 12.8px;"&gt;order by 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #500050; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #500050; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Can someone please instruct me if we have a Coalesce (postgreSQL)&amp;nbsp; statement substitute in Qlikview?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #500050; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #500050; font-family: arial, sans-serif; font-size: 12.8px;"&gt;And I'm trying to write a if formula for the below but when I get to as it shows an error.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #500050; font-size: 12.8px; font-family: arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #500050; font-size: 12.8px; font-family: arial, sans-serif;"&gt;case when activeusercount is not null and activeusercount &amp;gt; 2 then 'yes' else 'no' end as "More than 2 users in 30 days".....&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt;=if(Active.activeusercount &amp;lt;&amp;gt; 0 and Active.activeusercount &amp;gt; 2, 'Yes', 'No' &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM style="color: #ff0000; text-decoration: underline;"&gt;as&lt;/EM&gt;&lt;/SPAN&gt; "More than 2 users in 30 days")&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #500050; font-size: 10pt; font-family: arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #500050; font-size: 14pt; font-family: arial, sans-serif;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks in Advance,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&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/Coalesce-statement-in-Qlikview/m-p/1089177#M931423</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Coalesce statement in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Coalesce-statement-in-Qlikview/m-p/1089178#M931424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your closing bracket misplaced ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =if(Active.activeusercount &amp;lt;&amp;gt; 0 and Active.activeusercount &amp;gt; 2, 'Yes', 'No' &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style=": ; color: #ff0000; font-size: 12pt;"&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt; as "More than 2 users in 30 days"&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 22:50:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coalesce-statement-in-Qlikview/m-p/1089178#M931424</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-03T22:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Coalesce statement in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Coalesce-statement-in-Qlikview/m-p/1089179#M931425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. No brackets are not the issue here. I'm attaching a sample data set whenever you get a chance.&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/116911_Capture.PNG" style="height: 81px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more question Bill is the following the right syntax for null. I've to write an where clause where the id is null&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; font-size: 10pt;"&gt;where len(trim(id=0)) would this be enough??&lt;/STRONG&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>Thu, 03 Mar 2016 23:00:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coalesce-statement-in-Qlikview/m-p/1089179#M931425</guid>
      <dc:creator />
      <dc:date>2016-03-03T23:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Coalesce statement in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Coalesce-statement-in-Qlikview/m-p/1089180#M931426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this an expression in a chart ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so ditch the as .......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt; =if(Active.activeusercount &amp;lt;&amp;gt; 0 and Active.activeusercount &amp;gt; 2, 'Yes', 'No' )&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For checking null there is the isnull() function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where isnull(id=0)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 23:08:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coalesce-statement-in-Qlikview/m-p/1089180#M931426</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-03T23:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Coalesce statement in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Coalesce-statement-in-Qlikview/m-p/1089181#M931427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Keeping a logical path in a discussion is a bit difficult if you post many questions in the same thread. I'll start with your first question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Alt() function is a QlikView alternative for the SQL Coalesce() function, &lt;EM&gt;but only for numerical values&lt;/EM&gt;. If you want to check mixed data, you'll have to use nested IF() functions because QlikView has no LOAD equivalent for the SQL CASE WHEN construct. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 23:15:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coalesce-statement-in-Qlikview/m-p/1089181#M931427</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-03-03T23:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Coalesce statement in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Coalesce-statement-in-Qlikview/m-p/1089182#M931428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys for all your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Mar 2016 03:02:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coalesce-statement-in-Qlikview/m-p/1089182#M931428</guid>
      <dc:creator />
      <dc:date>2016-03-05T03:02:20Z</dc:date>
    </item>
  </channel>
</rss>

