<?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: Populate existing field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Populate-existing-field/m-p/733595#M1085087</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Len(trim(Trade_Type))&amp;gt;0, If(Passive&amp;lt;&amp;gt;Aggressive, 'Hybrid', Passive)) as Trade_Type&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jun 2014 08:29:43 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2014-06-24T08:29:43Z</dc:date>
    <item>
      <title>Populate existing field</title>
      <link>https://community.qlik.com/t5/QlikView/Populate-existing-field/m-p/733594#M1085086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to populate an existing field Trade_Type with one of the following values&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Electronic&lt;/LI&gt;&lt;LI&gt;Voice&lt;/LI&gt;&lt;LI&gt;Hybrid&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two of the fields in my data are called PassiveTradeType and AggressorTradeType and i need to use the following table of logic to overwrite the Trade_Type field, which has some blank values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="124" style="border: 1px solid rgb(0, 0, 0); width: 272px; height: 125px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Passive&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Aggressive&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Trade_Type Outcome&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Voice&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Voice&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Voice&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Electronic&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Electronic&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Electronic&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Voice&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Electronic&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Hybrid&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Electronic&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Voice&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Hybrid&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE - The PassiveTradeType and AggressorTradeType fields in my data are sometime blank and I do NOT want the data in the Trade_Type field over-written in this instance, as there will be data already present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached some simplified sample data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 08:23:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Populate-existing-field/m-p/733594#M1085086</guid>
      <dc:creator />
      <dc:date>2014-06-24T08:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Populate existing field</title>
      <link>https://community.qlik.com/t5/QlikView/Populate-existing-field/m-p/733595#M1085087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Len(trim(Trade_Type))&amp;gt;0, If(Passive&amp;lt;&amp;gt;Aggressive, 'Hybrid', Passive)) as Trade_Type&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 08:29:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Populate-existing-field/m-p/733595#M1085087</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-24T08:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Populate existing field</title>
      <link>https://community.qlik.com/t5/QlikView/Populate-existing-field/m-p/733596#M1085088</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;Something like below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Len(AggressorTradeType)&amp;gt;0 And Len(PassiveTradeType)&amp;gt;0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(AggressorTradeType&amp;lt;&amp;gt;PassiveTradeType, 'Hybrid', PassiveTradeType), Trade_Type) as Trade_Type&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 08:36:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Populate-existing-field/m-p/733596#M1085088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-24T08:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Populate existing field</title>
      <link>https://community.qlik.com/t5/QlikView/Populate-existing-field/m-p/733597#M1085089</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;Look at the attached application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 08:49:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Populate-existing-field/m-p/733597#M1085089</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-06-24T08:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Populate existing field</title>
      <link>https://community.qlik.com/t5/QlikView/Populate-existing-field/m-p/733598#M1085090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="1" class="jiveBorder" height="124" style="border: 1px solid #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;TBODY style="font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Voice&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Voice&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Voice&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Electronic&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Electronic&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Electronic&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Voice&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Electronic&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Hybrid&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Electronic&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Voice&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Hybrid&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(passive='&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Voice&lt;/SPAN&gt;' and Aggresive='&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Voice&lt;/SPAN&gt;','&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Voice&lt;/SPAN&gt;',&lt;/P&gt;&lt;P&gt;if(passive='&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Electronic&lt;/SPAN&gt;' and Aggresive='&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Electronic&lt;/SPAN&gt;','&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Electronic&lt;/SPAN&gt;',&lt;/P&gt;&lt;P&gt;if(passive='&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Voice&lt;/SPAN&gt;' and Aggresive='&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Electronic&lt;/SPAN&gt;','&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hybrid&lt;/SPAN&gt;',&lt;/P&gt;&lt;P&gt;if(passive='&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Electronic&lt;/SPAN&gt;' and Aggresive='&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Voice&lt;/SPAN&gt;','&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hybrid&lt;/SPAN&gt;'))))&amp;nbsp; as fieldName&amp;nbsp;&amp;nbsp; in script &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or in dimesion &lt;/P&gt;&lt;P&gt;if(passive='&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Voice&lt;/SPAN&gt;' and Aggresive='&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Voice&lt;/SPAN&gt;','&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Voice&lt;/SPAN&gt;',&lt;/P&gt;&lt;P&gt;if(passive='&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Electronic&lt;/SPAN&gt;' and Aggresive='&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Electronic&lt;/SPAN&gt;','&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Electronic&lt;/SPAN&gt;',&lt;/P&gt;&lt;P&gt;if(passive='&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Voice&lt;/SPAN&gt;' and Aggresive='&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Electronic&lt;/SPAN&gt;','&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hybrid&lt;/SPAN&gt;',&lt;/P&gt;&lt;P&gt;if(passive='&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Electronic&lt;/SPAN&gt;' and Aggresive='&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Voice&lt;/SPAN&gt;','&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hybrid&lt;/SPAN&gt;'))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check supress null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 08:58:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Populate-existing-field/m-p/733598#M1085090</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-06-24T08:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Populate existing field</title>
      <link>https://community.qlik.com/t5/QlikView/Populate-existing-field/m-p/733599#M1085091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Satyadev.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do i need to append this with the table I'm loading my data from? The table is called TRADES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;If(Len(AggressorTradeType)&amp;gt;0 And Len(PassiveTradeType)&amp;gt;0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(AggressorTradeType&amp;lt;&amp;gt;PassiveTradeType, 'Hybrid', PassiveTradeType), Trade_Type) as Trade_Type&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM TRADES;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 10:12:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Populate-existing-field/m-p/733599#M1085091</guid>
      <dc:creator />
      <dc:date>2014-06-24T10:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Populate existing field</title>
      <link>https://community.qlik.com/t5/QlikView/Populate-existing-field/m-p/733600#M1085092</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;Yes, you have to replace your old &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Trade_Type&lt;/SPAN&gt; field to this newly created field in your existing LOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 10:25:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Populate-existing-field/m-p/733600#M1085092</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-24T10:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Populate existing field</title>
      <link>https://community.qlik.com/t5/QlikView/Populate-existing-field/m-p/733601#M1085093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attachment!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 10:28:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Populate-existing-field/m-p/733601#M1085093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-24T10:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Populate existing field</title>
      <link>https://community.qlik.com/t5/QlikView/Populate-existing-field/m-p/733602#M1085094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have looked at your file, but my script differs in that the data is not loaded from a csv, but a binary load from another qvw. Therefore I've tried doing a resident load of the existing TRADES table, this doesn't work though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;If(Len(AggressorTradeType)&amp;gt;0 And Len(PassiveTradeType)&amp;gt;0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(AggressorTradeType&amp;lt;&amp;gt;PassiveTradeType, 'Hybrid', PassiveTradeType), Trade_Type) as Trade_Type2&lt;/P&gt;&lt;P&gt;Resident TRADES;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It just seems to have assigned each Trade Type to each row of data, thus duplicating all the rows several times.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 13:58:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Populate-existing-field/m-p/733602#M1085094</guid>
      <dc:creator />
      <dc:date>2014-06-24T13:58:18Z</dc:date>
    </item>
  </channel>
</rss>

