<?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 use case when in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-use-case-when/m-p/1288969#M859282</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;You can use nested If&amp;nbsp; or Match function to achieve the CASE logic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jan 2017 17:34:43 GMT</pubDate>
    <dc:creator>krishnacbe</dc:creator>
    <dc:date>2017-01-20T17:34:43Z</dc:date>
    <item>
      <title>how to use case when</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-use-case-when/m-p/1288968#M859281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to use case when statement in Qliview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;krish&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-use-case-when/m-p/1288968#M859281</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to use case when</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-use-case-when/m-p/1288969#M859282</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;You can use nested If&amp;nbsp; or Match function to achieve the CASE logic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 17:34:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-use-case-when/m-p/1288969#M859282</guid>
      <dc:creator>krishnacbe</dc:creator>
      <dc:date>2017-01-20T17:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to use case when</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-use-case-when/m-p/1288970#M859283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you give me more clarity on this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with examples?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 17:55:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-use-case-when/m-p/1288970#M859283</guid>
      <dc:creator />
      <dc:date>2017-01-20T17:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to use case when</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-use-case-when/m-p/1288971#M859284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can define case statement as below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHEN value_1 THEN result_1&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHEN value_&lt;SPAN style="font-size: 13.3333px;"&gt;2&lt;/SPAN&gt; THEN result_2&lt;/P&gt;&lt;P&gt;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHEN value_&lt;SPAN style="font-size: 13.3333px;"&gt;2&lt;/SPAN&gt; THEN result_n&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ELSE result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END AS &lt;SPAN style="font-size: 13.3333px;"&gt;expression&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 17:56:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-use-case-when/m-p/1288971#M859284</guid>
      <dc:creator>alis2063</dc:creator>
      <dc:date>2017-01-20T17:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to use case when</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-use-case-when/m-p/1288972#M859285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me know where you want to use the case statement. Is it in Script or in UI?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 18:40:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-use-case-when/m-p/1288972#M859285</guid>
      <dc:creator>krishnacbe</dc:creator>
      <dc:date>2017-01-20T18:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to use case when</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-use-case-when/m-p/1288973#M859286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It really depends on what you're doing and where. As an expression in a chart, or to establish a field, you could use one of these approaches:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;if(Field='A','something',if(Field='B','something else',if(Field='C','and another thing')))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;pick(match(Field,'A','B','C'),'something','something else','and another thing')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you could add a field to your data model as a separate table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Something:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Field, Result&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;A, something&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;B, something else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;C, and another thing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you could build a mapping table, and apply it in a subsequent load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;SomethingMap:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Field, Result&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;A, something&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;B, something else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;C, and another thing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;applymap('SomethingMap',Field) as OtherField&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2017 00:38:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-use-case-when/m-p/1288973#M859286</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2017-01-21T00:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to use case when</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-use-case-when/m-p/1288974#M859287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Bro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2017 03:30:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-use-case-when/m-p/1288974#M859287</guid>
      <dc:creator />
      <dc:date>2017-01-21T03:30:26Z</dc:date>
    </item>
  </channel>
</rss>

