<?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 Switch and Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Switch-and-Load/m-p/149534#M27704</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create an Excel File with two fields as no_forcod and Formule.&lt;/P&gt;&lt;P&gt;Fill the Data with Values&lt;/P&gt;&lt;P&gt;1,a&lt;/P&gt;&lt;P&gt;2,b&lt;/P&gt;&lt;P&gt;a.s.o&lt;/P&gt;&lt;P&gt;Import this excel file into QlikView connecting no_forcod field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jul 2009 21:18:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-07-16T21:18:42Z</dc:date>
    <item>
      <title>Switch and Load</title>
      <link>https://community.qlik.com/t5/QlikView/Switch-and-Load/m-p/149533#M27703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Below I put some code.&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;faktuurkop_main:&lt;BR /&gt;join LOAD&lt;BR /&gt; no_ordernr as Verkooporder,&lt;BR /&gt; no_forcod as Formule,&lt;BR /&gt; left('0' &amp;amp; no_refnr,3) as BronMain,&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;I would like to use the switch to give the field no_forcod a specific value depending on the loaded value.&lt;/P&gt;&lt;P&gt;f.e. if no_forcod = 2 then it should be loaded as a.&lt;/P&gt;&lt;P&gt;if no_forcod = 3 then is it should be loaded as b&lt;/P&gt;&lt;P&gt;if no_forcod = 4 then it should be loaded as c&lt;/P&gt;&lt;P&gt;a.s.o.&lt;/P&gt;&lt;P&gt;But I don't know how to solve this.&lt;/P&gt;&lt;P&gt;Maybe someone can help me.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;greinier&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 21:04:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switch-and-Load/m-p/149533#M27703</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-16T21:04:41Z</dc:date>
    </item>
    <item>
      <title>Switch and Load</title>
      <link>https://community.qlik.com/t5/QlikView/Switch-and-Load/m-p/149534#M27704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create an Excel File with two fields as no_forcod and Formule.&lt;/P&gt;&lt;P&gt;Fill the Data with Values&lt;/P&gt;&lt;P&gt;1,a&lt;/P&gt;&lt;P&gt;2,b&lt;/P&gt;&lt;P&gt;a.s.o&lt;/P&gt;&lt;P&gt;Import this excel file into QlikView connecting no_forcod field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 21:18:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switch-and-Load/m-p/149534#M27704</guid>
      <dc:creator />
      <dc:date>2009-07-16T21:18:42Z</dc:date>
    </item>
    <item>
      <title>Switch and Load</title>
      <link>https://community.qlik.com/t5/QlikView/Switch-and-Load/m-p/149535#M27705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But can this be solved by the switch statement. Or is that not possible ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 21:25:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switch-and-Load/m-p/149535#M27705</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-16T21:25:49Z</dc:date>
    </item>
    <item>
      <title>Switch and Load</title>
      <link>https://community.qlik.com/t5/QlikView/Switch-and-Load/m-p/149536#M27706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(no_forcod= 2,'a'&lt;BR /&gt;,if(no_forcod= 3,'b'&lt;BR /&gt;,if(no_forcod= 4,'c'&lt;BR /&gt;...&lt;BR /&gt;,if(no_forcod=27,'z'&lt;BR /&gt; ,'other')))...) as Formule&lt;/P&gt;&lt;P&gt;Or this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;pick(match(no_forcod,2,3,4...27) + 1,'other','a','b','c'...'z') as Formule&lt;/P&gt;&lt;P&gt;Or this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(no_forcod&amp;gt;=2 and no_forcod&amp;lt;=27,mid('abcdefghijklmnopqrstuvwxyz',no_forcod - 1,1),'other') as Formule&lt;/P&gt;&lt;P&gt;Or this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(no_forcod&amp;gt;=2 and no_forcod&amp;lt;=27,chr(ord('a') + no_forcod - 2),'other') as Formule&lt;/P&gt;&lt;P&gt;Or this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;maxstring(mid('abcdefghijklmnopqrstuvwxyz',no_forcod - 1,1),'other') as Formule&lt;/P&gt;&lt;P&gt;Lots of ways to do things in the expression. Other ways to do it with mapping loads, another table, or whatever if the real problem is more complicated than the one presented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2009 02:54:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switch-and-Load/m-p/149536#M27706</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-07-17T02:54:07Z</dc:date>
    </item>
    <item>
      <title>Switch and Load</title>
      <link>https://community.qlik.com/t5/QlikView/Switch-and-Load/m-p/149537#M27707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thx John, this is the information I needed.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Greinier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2009 13:19:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switch-and-Load/m-p/149537#M27707</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-17T13:19:14Z</dc:date>
    </item>
  </channel>
</rss>

