<?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 Load a field into different fields conditional on another field value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-a-field-into-different-fields-conditional-on-another-field/m-p/172897#M42287</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't use a conditional for the fieldname. Every row will have both an out1 and an out2. Your conditional will be for the value of those fields.&lt;/P&gt;&lt;P&gt;if( match(c1, '1', '2'), f1, '') as out1,&lt;/P&gt;&lt;P&gt;if( match(c1, '1', '3', '4'), f1, '') as out2&lt;/P&gt;&lt;P&gt;I think that's the right idea.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Aug 2010 00:58:53 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2010-08-25T00:58:53Z</dc:date>
    <item>
      <title>Load a field into different fields conditional on another field value</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-field-into-different-fields-conditional-on-another-field/m-p/172895#M42285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 1 field to load into 2 possible fields based on the value of another field. Source field is f1, output fields are out1, out2, conditional field is c1. Here's what I'd like to happen:&lt;/P&gt;&lt;P&gt;If c1 = 1, load f1 as out1, load f1 as out2&lt;/P&gt;&lt;P&gt;if c1 = 2, load f1 as out1&lt;/P&gt;&lt;P&gt;if c1 = 3, load f1 as out2&lt;/P&gt;&lt;P&gt;if c1 =4, load f1 as out2&lt;/P&gt;&lt;P&gt;I tried using a pick statement like this:&lt;/P&gt;&lt;P&gt;if(c1=1,f1) as out1,&lt;/P&gt;&lt;P&gt;[f1] as pick(c1, 'out1','out1','out2','out2')&lt;/P&gt;&lt;P&gt;but the pick statement breaks.&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;MB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 00:41:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-field-into-different-fields-conditional-on-another-field/m-p/172895#M42285</guid>
      <dc:creator />
      <dc:date>2010-08-25T00:41:44Z</dc:date>
    </item>
    <item>
      <title>Load a field into different fields conditional on another field value</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-field-into-different-fields-conditional-on-another-field/m-p/172896#M42286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if(match(c1,1,2),f1) as out1,&lt;BR /&gt;if(match(c1,1,3,4),f1) as out2,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 00:55:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-field-into-different-fields-conditional-on-another-field/m-p/172896#M42286</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-08-25T00:55:31Z</dc:date>
    </item>
    <item>
      <title>Load a field into different fields conditional on another field value</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-field-into-different-fields-conditional-on-another-field/m-p/172897#M42287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't use a conditional for the fieldname. Every row will have both an out1 and an out2. Your conditional will be for the value of those fields.&lt;/P&gt;&lt;P&gt;if( match(c1, '1', '2'), f1, '') as out1,&lt;/P&gt;&lt;P&gt;if( match(c1, '1', '3', '4'), f1, '') as out2&lt;/P&gt;&lt;P&gt;I think that's the right idea.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 00:58:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-field-into-different-fields-conditional-on-another-field/m-p/172897#M42287</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2010-08-25T00:58:53Z</dc:date>
    </item>
    <item>
      <title>Load a field into different fields conditional on another field value</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-field-into-different-fields-conditional-on-another-field/m-p/172898#M42288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx - works perfectly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 18:22:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-field-into-different-fields-conditional-on-another-field/m-p/172898#M42288</guid>
      <dc:creator />
      <dc:date>2010-08-25T18:22:37Z</dc:date>
    </item>
  </channel>
</rss>

