<?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: Merging multiple fields into one in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Merging-multiple-fields-into-one/m-p/1006916#M646879</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much. A quite elegant solution, didn't thought about using cross tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Nov 2015 07:01:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-11-03T07:01:58Z</dc:date>
    <item>
      <title>Merging multiple fields into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-multiple-fields-into-one/m-p/1006909#M646871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table in which there is the same information in two different representations. The two fields can be ether both filled, or one of the fields is filled. I'd like to make one extra field, where the information is gathered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One example:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;brand&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;model&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;HP&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;kW&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Ford&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Mustang&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;304&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;224&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Ford&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Mustang GT350&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;392&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;BMW&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;M3 GTS&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;444&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;BMW&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;M5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;560&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;412&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need a new field "Power". That field contains ether the kW value, the cenvrted HP value (HP/1,36) or both. The result would be:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;brand&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;model&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Power&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Ford&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Mustang&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;224&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Ford&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Mustang&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;223.529&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Ford&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Mustang GT350&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;392&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;BMW&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;M3 GTS&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;326.470&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;BMW&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;M5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;412&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;BMW&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;M5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;411.764&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help, I'm a little bit lost here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: I've changed the decimal seperator from , to . for clarification.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 11:31:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-multiple-fields-into-one/m-p/1006909#M646871</guid>
      <dc:creator />
      <dc:date>2015-11-02T11:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Merging multiple fields into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-multiple-fields-into-one/m-p/1006910#M646872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For me, both are two different fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If both are same then For Ford 304 &amp;amp; 224, should be same?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 11:38:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-multiple-fields-into-one/m-p/1006910#M646872</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-02T11:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Merging multiple fields into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-multiple-fields-into-one/m-p/1006911#M646873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Markus, you can use '&amp;amp;' to concatenate strings:&lt;/P&gt;&lt;P&gt;LOAD brand, model, HP &amp;amp; If(Not IsNull(HP) and not IsNull(kW), ',') &amp;amp; kW; //Only adds the comma when both fields have values.&lt;/P&gt;&lt;P&gt;LOAD brand, model, HP, kW&lt;/P&gt;&lt;P&gt;FROM ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 11:40:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-multiple-fields-into-one/m-p/1006911#M646873</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-11-02T11:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Merging multiple fields into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-multiple-fields-into-one/m-p/1006912#M646874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I'm sorry. I used the wrong decimal seperator, resulting in the wrong interpretation. I changed the decimal point from comma to point. (Here in Germany we write 100,00 instead of 100.00)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I don't want to concatenate the string representation of the two values. I want the values of the field HP and kW into a new field.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;In the second table, the first row is the value of the kW field of the first table, first row.&lt;BR /&gt;In the second table, the second row is the value of HP field of the first table, first row. (diveded by 1.36 for conversation from horsepower to kilowatts)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I'm sorry I can't phrase it any better, my vocabulary is letting my down on this one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 11:57:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-multiple-fields-into-one/m-p/1006912#M646874</guid>
      <dc:creator />
      <dc:date>2015-11-02T11:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Merging multiple fields into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-multiple-fields-into-one/m-p/1006913#M646875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TABLE2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;brand,&lt;/P&gt;&lt;P&gt;model,&lt;/P&gt;&lt;P&gt;kW as Power&lt;/P&gt;&lt;P&gt;resident TABLE1&lt;/P&gt;&lt;P&gt;where not IsNull(kW);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;brand,&lt;/P&gt;&lt;P&gt;model,&lt;/P&gt;&lt;P&gt;HP/1.36 as Power&lt;/P&gt;&lt;P&gt;resident TABLE1&lt;/P&gt;&lt;P&gt;where not IsNull(HP);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table TABEL1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 18:58:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-multiple-fields-into-one/m-p/1006913#M646875</guid>
      <dc:creator>cwolf</dc:creator>
      <dc:date>2015-11-02T18:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Merging multiple fields into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-multiple-fields-into-one/m-p/1006914#M646876</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;one solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_189940_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/103751_QlikCommunity_Thread_189940_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14465073092328404" jivemacro_uid="_14465073092328404"&gt;
&lt;P&gt;tabCars:&lt;/P&gt;
&lt;P&gt;CrossTable ([Source Unit],PowerTemp,2)&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;LOAD * FROM [&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2061" data-containertype="14" data-objectid="189940" data-objecttype="1" href="https://community.qlik.com/thread/189940"&gt;https://community.qlik.com/thread/189940&lt;/A&gt;&lt;SPAN&gt;] (html, codepage is 1252, embedded labels, table is @1);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Right Join (tabCars)&lt;/P&gt;
&lt;P&gt;LOAD Distinct&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PowerTemp,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Source Unit],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([Source Unit]='HP',Num(PowerTemp/1.36,'0.###'),PowerTemp) as "Power [kW]"&lt;/P&gt;
&lt;P&gt;Resident tabCars&lt;/P&gt;
&lt;P&gt;Where Len(PowerTemp);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Field PowerTemp;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 23:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-multiple-fields-into-one/m-p/1006914#M646876</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-11-02T23:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Merging multiple fields into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-multiple-fields-into-one/m-p/1006915#M646878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much. Your solution works fine. But I'm going with &lt;A href="https://community.qlik.com/qlik-users/61824"&gt;MarcoWedel&lt;/A&gt;‌s solution. It better fits my needs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 07:01:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-multiple-fields-into-one/m-p/1006915#M646878</guid>
      <dc:creator />
      <dc:date>2015-11-03T07:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Merging multiple fields into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-multiple-fields-into-one/m-p/1006916#M646879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much. A quite elegant solution, didn't thought about using cross tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 07:01:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-multiple-fields-into-one/m-p/1006916#M646879</guid>
      <dc:creator />
      <dc:date>2015-11-03T07:01:58Z</dc:date>
    </item>
  </channel>
</rss>

