<?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: CASE in Qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/CASE-in-Qlikview/m-p/1098262#M364710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no CASE statement to use within a LOAD statement in QlikView, but you can use other conditional functions like pick() &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick(Type+1, 'SA','SE','IL','ST')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or nested if() .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jun 2016 09:24:44 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-06-13T09:24:44Z</dc:date>
    <item>
      <title>CASE in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/CASE-in-Qlikview/m-p/1098261#M364709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to write below CASE statement into Qlikview&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;SELECT DISTINCT TOP 4 [Type]&lt;/P&gt;&lt;P&gt;, 'FGType_Name' = &lt;/P&gt;&lt;P&gt;CASE &lt;/P&gt;&lt;P&gt; WHEN [Type] = 0 THEN 'SA'&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHEN [Type] = 1 THEN 'SE'&lt;/P&gt;&lt;P&gt; WHEN [Type] = 2 THEN 'IL'&lt;/P&gt;&lt;P&gt; WHEN [Type] = 3 THEN 'ST'&lt;/P&gt;&lt;P&gt;END&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;CASE &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; WHEN left([No_],1) IN (3,4) THEN 'PL'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; END AS [BSP]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE WHEN No_ LIKE 'CE%' THEN '1' ELSE '0' END AS &lt;PRE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;FROM TEMP a&lt;/P&gt;&lt;P&gt;WHERE a.No_ IS NOT NULL AND a.No_ &amp;lt;&amp;gt; '';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 09:19:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CASE-in-Qlikview/m-p/1098261#M364709</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2016-06-13T09:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: CASE in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/CASE-in-Qlikview/m-p/1098262#M364710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no CASE statement to use within a LOAD statement in QlikView, but you can use other conditional functions like pick() &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick(Type+1, 'SA','SE','IL','ST')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or nested if() .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 09:24:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CASE-in-Qlikview/m-p/1098262#M364710</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-13T09:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: CASE in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/CASE-in-Qlikview/m-p/1098263#M364711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use pick &amp;amp; match&amp;nbsp; like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=pick(alt(match(Only(_DemandDays), 30, 60, 90, 180, 360, 365) , 0)+1,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'Mixed Demand',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'Demand 30 Days',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'Demand 60 Days',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'Demand 90 Days',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'Demand 180 Days',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'Demand 365 Days',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'Demand 365 Days')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 09:31:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CASE-in-Qlikview/m-p/1098263#M364711</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2016-06-13T09:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: CASE in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/CASE-in-Qlikview/m-p/1098264#M364712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The other 2 cases can be done like this:&lt;/P&gt;&lt;P&gt;2) If(Match(Left([No_], 1), '3', '4'), 'PL') as [BSP]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) If([No_] like 'CE*', 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Len(Trim(&lt;SPAN style="font-size: 13.3333px;"&gt;[No_]))&amp;gt;0, 0) as &lt;PRE&gt; //To check it has value and it's not an empty value (if it's not in the Where clause)&lt;/PRE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 09:31:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CASE-in-Qlikview/m-p/1098264#M364712</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-06-13T09:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: CASE in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/CASE-in-Qlikview/m-p/1098265#M364713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Case Statement is not available in qlikview instead of this we need to use PICK &amp;amp; MATCH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 09:32:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CASE-in-Qlikview/m-p/1098265#M364713</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2016-06-13T09:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: CASE in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/CASE-in-Qlikview/m-p/1098266#M364714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps the use of a mapping table and the applymap function could be looked at? Alternatively, use if statements in your script...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 09:37:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CASE-in-Qlikview/m-p/1098266#M364714</guid>
      <dc:creator />
      <dc:date>2016-06-13T09:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: CASE in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/CASE-in-Qlikview/m-p/1098267#M364715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i use TOP function for &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Pick(Type+1, 'SA','SE','IL','ST') in this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this table we have many records that for I used &lt;STRONG&gt;first &lt;/STRONG&gt;function also but using that I am unable to achieve result &lt;/P&gt;&lt;P&gt;for this (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Pick(Type+1, 'SA','SE','IL','ST'))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 11:30:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CASE-in-Qlikview/m-p/1098267#M364715</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2016-06-13T11:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: CASE in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/CASE-in-Qlikview/m-p/1098268#M364716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm not sure to understand your issue, I think it should work, you tried something like?:&lt;/P&gt;&lt;P&gt;First 4&lt;/P&gt;&lt;P&gt;LOAD Pick....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 12:44:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CASE-in-Qlikview/m-p/1098268#M364716</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-06-13T12:44:10Z</dc:date>
    </item>
  </channel>
</rss>

