<?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: Combining fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Combining-fields/m-p/538379#M1134573</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;Try trim(Field) to trim your fields.&lt;/P&gt;&lt;P&gt;If that does not work, replace(Field,' ','')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Nov 2013 12:58:46 GMT</pubDate>
    <dc:creator>christian77</dc:creator>
    <dc:date>2013-11-18T12:58:46Z</dc:date>
    <item>
      <title>Combining fields</title>
      <link>https://community.qlik.com/t5/QlikView/Combining-fields/m-p/538378#M1134570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a new field which combines two fields that I already have using an expression. I have two sets of data from two different years with the same fieldname for one field [Crse/Course Title] and a new field in the second data set [Qualification Aim]. In the first year the data relating to the qualification aim (e.g. BSc, PhD) of a degree was combined with it's title. So for example 'BSc Psychology'. In the second year, the qualification aim was a separate field so the title would just be 'Psychology' and the 'BSc' recorded in the [Qualification Aim] field. What I want to do is to combine the data as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if([Qualification Aim]&amp;lt;&amp;gt;' ',[Qualification Aim]&amp;amp;' '&amp;amp;[Crse/Course Title],[Crse/Course Title])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also tried&lt;/P&gt;&lt;P&gt;=if([Qualification Aim]=' ',[Crse/Course Title],[Qualification Aim]&amp;amp;' '&amp;amp;[Crse/Course Title])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the same text in both fields after applying this calculation BUT I get a space before the Course Title for the records where the data is now a combination of Qualification Aim and Course title - like this :&lt;/P&gt;&lt;P&gt; BSc Pscyhology&lt;/P&gt;&lt;P&gt;BSc Psychology&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is reduce the number of records in the list box by half so when the 'BSc Psychology' selection is made I get data for both data sets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alison&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 12:54:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combining-fields/m-p/538378#M1134570</guid>
      <dc:creator>alisonpwallis</dc:creator>
      <dc:date>2013-11-18T12:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Combining fields</title>
      <link>https://community.qlik.com/t5/QlikView/Combining-fields/m-p/538379#M1134573</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;Try trim(Field) to trim your fields.&lt;/P&gt;&lt;P&gt;If that does not work, replace(Field,' ','')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 12:58:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combining-fields/m-p/538379#M1134573</guid>
      <dc:creator>christian77</dc:creator>
      <dc:date>2013-11-18T12:58:46Z</dc:date>
    </item>
  </channel>
</rss>

