<?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: script from DB2 Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/script-from-DB2-Expression/m-p/525772#M196493</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Smiley,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if((RAM_GEO_INC_SEG ='L'or&amp;nbsp; RAM_GEO_INC_SEG ='M'),1,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;-RV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 24 Aug 2013 06:43:36 GMT</pubDate>
    <dc:creator>rajeshvaswani77</dc:creator>
    <dc:date>2013-08-24T06:43:36Z</dc:date>
    <item>
      <title>script from DB2 Expression</title>
      <link>https://community.qlik.com/t5/QlikView/script-from-DB2-Expression/m-p/525771#M196492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum((case when RAM_GEO_INC_SEG ='L'or&amp;nbsp; RAM_GEO_INC_SEG ='M' then 1 else 0 end) +(case when coalesce(BORROWER_SEG,RAM_GEO_BORROWER_INC_SEG) ='L' or&amp;nbsp; coalesce(BORROWER_SEG,RAM_GEO_BORROWER_INC_SEG) ='M'then 1 else 0 end) STB_CRA_CNT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any send me Script for this please...it's urgent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnaks in advncae!!!!&lt;BR /&gt;Smiley&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Aug 2013 06:33:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-from-DB2-Expression/m-p/525771#M196492</guid>
      <dc:creator>rathnam_qv</dc:creator>
      <dc:date>2013-08-24T06:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: script from DB2 Expression</title>
      <link>https://community.qlik.com/t5/QlikView/script-from-DB2-Expression/m-p/525772#M196493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Smiley,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if((RAM_GEO_INC_SEG ='L'or&amp;nbsp; RAM_GEO_INC_SEG ='M'),1,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;-RV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Aug 2013 06:43:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-from-DB2-Expression/m-p/525772#M196493</guid>
      <dc:creator>rajeshvaswani77</dc:creator>
      <dc:date>2013-08-24T06:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: script from DB2 Expression</title>
      <link>https://community.qlik.com/t5/QlikView/script-from-DB2-Expression/m-p/525773#M196494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur replay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i want script for all the sql which i have mentioned above&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Aug 2013 07:11:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-from-DB2-Expression/m-p/525773#M196494</guid>
      <dc:creator>rathnam_qv</dc:creator>
      <dc:date>2013-08-24T07:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: script from DB2 Expression</title>
      <link>https://community.qlik.com/t5/QlikView/script-from-DB2-Expression/m-p/525774#M196495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum(if((RAM_GEO_INC_SEG ='L'or&amp;nbsp; RAM_GEO_INC_SEG ='M'),1,0) + if(isnull(BORROWER_SEG),if(RAM_GEO_BORROWER_INC_SEG='L',1,0),if(BORROWER_SEG='L',1,0)) OR if(isnull(BORROWER_SEG),if(RAM_GEO_BORROWER_INC_SEG='M',1,0),if(BORROWER_SEG='M',1,0)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Aug 2013 07:27:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-from-DB2-Expression/m-p/525774#M196495</guid>
      <dc:creator>rajeshvaswani77</dc:creator>
      <dc:date>2013-08-24T07:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: script from DB2 Expression</title>
      <link>https://community.qlik.com/t5/QlikView/script-from-DB2-Expression/m-p/525775#M196496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To begin with if you have a working sql statement you can simply reuse that in Qlikview:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyTable:&lt;/P&gt;&lt;P&gt;SELECT xxx from yyy &lt;EM&gt;...etc&lt;/EM&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you don't have to convert the sql to Qlikview script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you really want or need to... try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(match(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;RAM_GEO_INC_SEG,'L','M'),1,0) &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(alt(match(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;BORROWER_SEG,'L','M'),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;match(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;RAM_GEO_BORROWER_INC_SEG&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,'L','M')&lt;/SPAN&gt;),1,0) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;) as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;STB_CRA_CNT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Aug 2013 11:59:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-from-DB2-Expression/m-p/525775#M196496</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-08-24T11:59:36Z</dc:date>
    </item>
  </channel>
</rss>

