<?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: My way of writing CASE WHEN ELSE statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/My-way-of-writing-CASE-WHEN-ELSE-statement/m-p/1002883#M467214</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you close the thread? thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Dec 2015 18:07:49 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2015-12-01T18:07:49Z</dc:date>
    <item>
      <title>My way of writing CASE WHEN ELSE statement</title>
      <link>https://community.qlik.com/t5/QlikView/My-way-of-writing-CASE-WHEN-ELSE-statement/m-p/1002880#M467211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H2&gt;&lt;SPAN style="color: #575757;"&gt;Question:&lt;/SPAN&gt; How to write the following T-SQL statement in Qlik?&lt;/H2&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;SELECT&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;MyNumber,&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CASE&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;WHEN&lt;/SPAN&gt; MyNumber = 1 &lt;SPAN style="color: #0000ff;"&gt;THEN&lt;/SPAN&gt; 'One'&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;WHEN&lt;/SPAN&gt; MyNumber = 2 &lt;SPAN style="color: #0000ff;"&gt;THEN&lt;/SPAN&gt; 'Two'&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;ELSE&lt;/SPAN&gt; 'Three or more'&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;END AS&lt;/SPAN&gt; MyText&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Syntax:&lt;/H2&gt;&lt;P style="padding-left: 30px;"&gt;Using PICK and MATCH functions with a value of TRUE to compare with:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;PICK (MATCH&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; (&lt;SPAN style="color: #ff0000;"&gt;-1&lt;/SPAN&gt;, &lt;SPAN style="color: #008000;"&gt;Condition1, Condition 2, &lt;SPAN style="color: #993366;"&gt;-1&lt;/SPAN&gt;&lt;/SPAN&gt;), &lt;SPAN style="color: #ff6600;"&gt;Result1, Result2, Default Result&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Solution:&lt;/H2&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;MyNumber,&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;PICK ( MATCH (-1, MyNumber = 1, MyNumber = 2, -1), 'One', 'Two', 'Three or more') AS MyText&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt; ...&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;Please let me know your opinion about it, or if you have a better way for writing that.&lt;/P&gt;&lt;P&gt;If you want to check, just copy and paste the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;LOAD *, PICK ( MATCH (-1, MyNumber = 1, MyNumber = 2, -1), 'One','Two','Three or more') AS MyText;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;LOAD * INLINE [MyNumber&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;7&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;9&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Nov 2015 09:07:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-way-of-writing-CASE-WHEN-ELSE-statement/m-p/1002880#M467211</guid>
      <dc:creator />
      <dc:date>2015-11-29T09:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: My way of writing CASE WHEN ELSE statement</title>
      <link>https://community.qlik.com/t5/QlikView/My-way-of-writing-CASE-WHEN-ELSE-statement/m-p/1002881#M467212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PICK ( WILDMATCH (MyNumber, 1, 2, '*'), 'One','Two','Three or more') AS MyText&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Nov 2015 18:44:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-way-of-writing-CASE-WHEN-ELSE-statement/m-p/1002881#M467212</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-11-29T18:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: My way of writing CASE WHEN ELSE statement</title>
      <link>https://community.qlik.com/t5/QlikView/My-way-of-writing-CASE-WHEN-ELSE-statement/m-p/1002882#M467213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That makes it easier.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 15:31:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-way-of-writing-CASE-WHEN-ELSE-statement/m-p/1002882#M467213</guid>
      <dc:creator />
      <dc:date>2015-12-01T15:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: My way of writing CASE WHEN ELSE statement</title>
      <link>https://community.qlik.com/t5/QlikView/My-way-of-writing-CASE-WHEN-ELSE-statement/m-p/1002883#M467214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you close the thread? thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 18:07:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-way-of-writing-CASE-WHEN-ELSE-statement/m-p/1002883#M467214</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-12-01T18:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: My way of writing CASE WHEN ELSE statement</title>
      <link>https://community.qlik.com/t5/QlikView/My-way-of-writing-CASE-WHEN-ELSE-statement/m-p/1002884#M467215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I don't know how to close a thread. Please advise&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Dec 2015 06:35:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-way-of-writing-CASE-WHEN-ELSE-statement/m-p/1002884#M467215</guid>
      <dc:creator />
      <dc:date>2015-12-06T06:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: My way of writing CASE WHEN ELSE statement</title>
      <link>https://community.qlik.com/t5/QlikView/My-way-of-writing-CASE-WHEN-ELSE-statement/m-p/1002885#M467216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You do so by flagging the correct answer as "Correct Answer".&lt;/P&gt;&lt;P&gt;But for that to be an option, you need to start a question as a question to begin with; you started a discussion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have converted it to a question and you can now mark the Correct Answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Onno&lt;/P&gt;&lt;P&gt;Community Team member&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Dec 2015 12:26:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-way-of-writing-CASE-WHEN-ELSE-statement/m-p/1002885#M467216</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2015-12-06T12:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: My way of writing CASE WHEN ELSE statement</title>
      <link>https://community.qlik.com/t5/QlikView/My-way-of-writing-CASE-WHEN-ELSE-statement/m-p/1002886#M467217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ops, I didn't know this (Correct Answer only for question) difference; thanks for the explanation. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 07:23:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-way-of-writing-CASE-WHEN-ELSE-statement/m-p/1002886#M467217</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-12-07T07:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: My way of writing CASE WHEN ELSE statement</title>
      <link>https://community.qlik.com/t5/QlikView/My-way-of-writing-CASE-WHEN-ELSE-statement/m-p/1002887#M467218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Happy I could help and having the rare opportunity to learn a MVP something new &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, 07 Dec 2015 20:12:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-way-of-writing-CASE-WHEN-ELSE-statement/m-p/1002887#M467218</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2015-12-07T20:12:49Z</dc:date>
    </item>
  </channel>
</rss>

