<?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 to case conversion in Management &amp; Governance</title>
    <link>https://community.qlik.com/t5/Management-Governance/If-to-case-conversion/m-p/1242495#M17826</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can please convert the IF code to case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(columnA='RAV', If(columnC&amp;gt; 9, 'RAV After 7 Days', 'RAV Till 7 Days'),&lt;/P&gt;&lt;P&gt;If(columnA='TOT/ODv', If(columnB='OVD', If(columnC&amp;gt; 5,'OVD After 3 Days', 'OVD Till 3 Days')&lt;/P&gt;&lt;P&gt;,'TOT'), columnA)) AS New,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Apr 2021 07:37:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2021-04-02T07:37:49Z</dc:date>
    <item>
      <title>If to case conversion</title>
      <link>https://community.qlik.com/t5/Management-Governance/If-to-case-conversion/m-p/1242495#M17826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can please convert the IF code to case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(columnA='RAV', If(columnC&amp;gt; 9, 'RAV After 7 Days', 'RAV Till 7 Days'),&lt;/P&gt;&lt;P&gt;If(columnA='TOT/ODv', If(columnB='OVD', If(columnC&amp;gt; 5,'OVD After 3 Days', 'OVD Till 3 Days')&lt;/P&gt;&lt;P&gt;,'TOT'), columnA)) AS New,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Apr 2021 07:37:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/If-to-case-conversion/m-p/1242495#M17826</guid>
      <dc:creator />
      <dc:date>2021-04-02T07:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: If to case conversion</title>
      <link>https://community.qlik.com/t5/Management-Governance/If-to-case-conversion/m-p/1242496#M17827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The case statement in Qlik are control statements and thus can not be used in Load statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any specific reason why you want to go for Case Statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.qlikblog.at/546/qliktip-20-selectcase-qlikview-loadscripts/" title="http://www.qlikblog.at/546/qliktip-20-selectcase-qlikview-loadscripts/"&gt;http://www.qlikblog.at/546/qliktip-20-selectcase-qlikview-loadscripts/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 07:59:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/If-to-case-conversion/m-p/1242496#M17827</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-12-12T07:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: If to case conversion</title>
      <link>https://community.qlik.com/t5/Management-Governance/If-to-case-conversion/m-p/1242497#M17828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using it in Select statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 08:43:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/If-to-case-conversion/m-p/1242497#M17828</guid>
      <dc:creator />
      <dc:date>2016-12-12T08:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: If to case conversion</title>
      <link>https://community.qlik.com/t5/Management-Governance/If-to-case-conversion/m-p/1242498#M17829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend use of If statement then case statement.&lt;/P&gt;&lt;P&gt;So in your case instead of using the Case statement in Select statement, you should use the If statement in load statement like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(columnA='RAV', If(columnC&amp;gt; 9, 'RAV After 7 Days', 'RAV Till 7 Days'),&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(columnA='TOT/ODv', If(columnB='OVD', If(columnC&amp;gt; 5,'OVD After 3 Days', 'OVD Till 3 Days')&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,'TOT'), columnA)) AS New;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sql Select * from xyz;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 08:51:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/If-to-case-conversion/m-p/1242498#M17829</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-12-12T08:51:42Z</dc:date>
    </item>
  </channel>
</rss>

