<?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: Create column based on multiple conditions WITHOUT nested if in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-column-based-on-multiple-conditions-WITHOUT-nested-if/m-p/1750986#M455375</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/127447"&gt;@NataliaD&lt;/a&gt;&amp;nbsp; May be this help :&lt;/P&gt;&lt;P&gt;Dimension: A,B,C&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;=pick(Match(left(A&amp;amp;B&amp;amp;C,1),'','a','b','c'),'w','a','b','c')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 596px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41973iE8A8F7B6AAA7AF8E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Oct 2020 09:58:22 GMT</pubDate>
    <dc:creator>Taoufiq_Zarra</dc:creator>
    <dc:date>2020-10-09T09:58:22Z</dc:date>
    <item>
      <title>Create column based on multiple conditions WITHOUT nested if</title>
      <link>https://community.qlik.com/t5/QlikView/Create-column-based-on-multiple-conditions-WITHOUT-nested-if/m-p/1750976#M455374</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I want to create a column named Status having Character Values in a straight table&amp;nbsp;based on other fields, i.e.&lt;/P&gt;&lt;P&gt;if column A = 'a' return Status = 'a',&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if not then check column B, if column B = 'b' return Status = 'b',&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if not then check column C, if column C = 'c' return Status = 'c',&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if not return Status = 'w'&lt;/P&gt;&lt;P&gt;I've also attached an image explaining this.&lt;/P&gt;&lt;P&gt;The problem is that I do NOT want to use nested If, because it takes too long to execute, so I try to find a way using Set Analysis, but I cannot understand how.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 09:29:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-column-based-on-multiple-conditions-WITHOUT-nested-if/m-p/1750976#M455374</guid>
      <dc:creator>NataliaD</dc:creator>
      <dc:date>2020-10-09T09:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create column based on multiple conditions WITHOUT nested if</title>
      <link>https://community.qlik.com/t5/QlikView/Create-column-based-on-multiple-conditions-WITHOUT-nested-if/m-p/1750986#M455375</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/127447"&gt;@NataliaD&lt;/a&gt;&amp;nbsp; May be this help :&lt;/P&gt;&lt;P&gt;Dimension: A,B,C&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;=pick(Match(left(A&amp;amp;B&amp;amp;C,1),'','a','b','c'),'w','a','b','c')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 596px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41973iE8A8F7B6AAA7AF8E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 09:58:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-column-based-on-multiple-conditions-WITHOUT-nested-if/m-p/1750986#M455375</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-10-09T09:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create column based on multiple conditions WITHOUT nested if</title>
      <link>https://community.qlik.com/t5/QlikView/Create-column-based-on-multiple-conditions-WITHOUT-nested-if/m-p/1751025#M455376</link>
      <description>&lt;P&gt;Thank you, I'll try it! But I have another problem that I forgot to mention. Column C has two values so how can I write them both ? because you wrote 'c' but there are two values I want to check..&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 11:17:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-column-based-on-multiple-conditions-WITHOUT-nested-if/m-p/1751025#M455376</guid>
      <dc:creator>NataliaD</dc:creator>
      <dc:date>2020-10-09T11:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create column based on multiple conditions WITHOUT nested if</title>
      <link>https://community.qlik.com/t5/QlikView/Create-column-based-on-multiple-conditions-WITHOUT-nested-if/m-p/1751031#M455377</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/127447"&gt;@NataliaD&lt;/a&gt;&amp;nbsp; try below. Where a,b and c are your 3 fieldnames&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if(len(trim(subfield(a&amp;amp;'_'&amp;amp;b&amp;amp;'_'&amp;amp;c,'_',1)))&amp;gt;0,subfield(a&amp;amp;'_'&amp;amp;b&amp;amp;'_'&amp;amp;c,'_',1),
if(len(trim(subfield(a&amp;amp;'_'&amp;amp;b&amp;amp;'_'&amp;amp;c,'_',2)))&amp;gt;0,subfield(a&amp;amp;'_'&amp;amp;b&amp;amp;'_'&amp;amp;c,'_',2),
if(len(trim(subfield(a&amp;amp;'_'&amp;amp;b&amp;amp;'_'&amp;amp;c,'_',3)))&amp;gt;0,subfield(a&amp;amp;'_'&amp;amp;b&amp;amp;'_'&amp;amp;c,'_',3),'W'))) as TEST&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 11:35:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-column-based-on-multiple-conditions-WITHOUT-nested-if/m-p/1751031#M455377</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-10-09T11:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create column based on multiple conditions WITHOUT nested if</title>
      <link>https://community.qlik.com/t5/QlikView/Create-column-based-on-multiple-conditions-WITHOUT-nested-if/m-p/1756254#M455378</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/127447"&gt;@NataliaD&lt;/a&gt;&amp;nbsp; be sure to remember to return to the thread to close things out if one of the two suggestions helped by using the Accept as Solution button on the post(s) that helped, you can mark more than one post, just FYI.&amp;nbsp; If you did something different, you can post what you did and then mark that post too.&amp;nbsp; It will be greatly appreciated if you can close the thread if you have figured out a solution.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 13:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-column-based-on-multiple-conditions-WITHOUT-nested-if/m-p/1756254#M455378</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-10-27T13:31:16Z</dc:date>
    </item>
  </channel>
</rss>

