<?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 two columns into one in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Merging-two-columns-into-one/m-p/1300714#M828454</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Fer Fer but I don't want Patient A listed 9 times.&amp;nbsp; I want the data to layout like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Patient&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Metastatic Cancer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dementia&lt;/P&gt;&lt;P&gt;Patient A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will drop the code once I merge all the fields into the 9 columns.&amp;nbsp; I only want Patient A listed once.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jun 2017 19:41:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-29T19:41:34Z</dc:date>
    <item>
      <title>Merging two columns into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-two-columns-into-one/m-p/1300710#M828450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am fairly new to Qlikview and I am trying to manipulate data in the scripting, rather than creating expressions later on.&amp;nbsp; I have 15 columns that I need to place into 9 columns instead.&amp;nbsp; Also, if a patient has more than 1 code in a specific category there are multiple rows for that individual.&amp;nbsp; For instance a patient may have 2 rows under Metastatic Cancer with different dx codes.&amp;nbsp; Here is a potential example for a patient:&amp;nbsp; &lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 94px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1"&gt;Patient&lt;/TD&gt;&lt;TD colspan="1"&gt;Code&lt;/TD&gt;&lt;TD&gt;Metastatic Cancer&lt;/TD&gt;&lt;TD&gt;Acute Leukemia&lt;/TD&gt;&lt;TD colspan="1"&gt;Dementia&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="32" style="border: 0.5pt solid silver; border-image: none; background-color: white;" width="94"&gt;Patient A&lt;/TD&gt;&lt;TD height="32" style="border: 0.5pt solid silver; border-image: none; background-color: white;" width="94"&gt;&lt;SPAN style="color: #363636; font-family: Calibri;"&gt;ABC&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD height="32" style="border: 0.5pt solid silver; border-image: none; background-color: white;" width="94"&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD height="32" style="border: 0.5pt solid silver; border-image: none; background-color: white;" width="94"&gt;0&lt;/TD&gt;&lt;TD height="32" style="border: 0.5pt solid silver; border-image: none; background-color: white;" width="94"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="32" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #363636 silver silver; background-color: white;" width="94"&gt;Patient A&lt;/TD&gt;&lt;TD height="32" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #363636 silver silver; background-color: white;" width="94"&gt;&lt;SPAN style="color: #363636; font-family: Calibri;"&gt;CDE&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD height="32" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #363636 silver silver; background-color: white;" width="94"&gt;0&lt;/TD&gt;&lt;TD height="32" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #363636 silver silver; background-color: white;" width="94"&gt;0&lt;/TD&gt;&lt;TD height="32" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #363636 silver silver; background-color: white;" width="94"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Patient A&lt;/TD&gt;&lt;TD&gt;FGH&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to combine the Metastatic Cancer and Acute Leukemia columns into one.&amp;nbsp; Each column was given a 1 or 0 depending on whether or not the patient had a code that fell into that category.&amp;nbsp; Therefore, I would like to ensure I capture if that one patient&amp;nbsp; had 2 codes in the one bucket I create, if that is the case.&amp;nbsp;&amp;nbsp;&amp;nbsp; The patient could also have a code in an unrelated other bucket.&amp;nbsp; Can you please help me on the script formatting for this?&amp;nbsp;&amp;nbsp; I know once I group the columns I need to group by "Patient" but I am having a hard time combining the columns first.&amp;nbsp; Does this make sense? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-two-columns-into-one/m-p/1300710#M828450</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two columns into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-two-columns-into-one/m-p/1300711#M828451</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 style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;tmp:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;CrossTable&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;field&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Data&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,2)&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;LOAD&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; * &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[&lt;BR /&gt; Patient,Code,Metastatic Cancer,Acute Leukemia,Dementia,&lt;BR /&gt; Patient A,ABC,1,0,0,&lt;BR /&gt; Patient A,CDE,0,0,1,&lt;BR /&gt; Patient A,FGH,0,1,0,&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="pct.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/168612_pct.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 17:28:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-two-columns-into-one/m-p/1300711#M828451</guid>
      <dc:creator>el_aprendiz111</dc:creator>
      <dc:date>2017-06-29T17:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two columns into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-two-columns-into-one/m-p/1300712#M828452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also load it as an &amp;amp;&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; Patient&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Mestatic cancer &amp;amp; Acute Lukemia as whatever name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Dementia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ect&lt;/P&gt;&lt;P&gt;From ....;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 17:56:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-two-columns-into-one/m-p/1300712#M828452</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-29T17:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two columns into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-two-columns-into-one/m-p/1300713#M828453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you did want the cross table you can have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Crosstable(Cancer/Lukemia, Data, 3)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Patient,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Code,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Dementia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Mestastic Cancer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Lukemia,&lt;/P&gt;&lt;P&gt;From....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The crosstable will count all the ones that are not going to be pivoted first and the pivot everything after that number. So if you have other column I would list them first then you can combine the ones you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 18:01:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-two-columns-into-one/m-p/1300713#M828453</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-29T18:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two columns into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-two-columns-into-one/m-p/1300714#M828454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Fer Fer but I don't want Patient A listed 9 times.&amp;nbsp; I want the data to layout like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Patient&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Metastatic Cancer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dementia&lt;/P&gt;&lt;P&gt;Patient A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will drop the code once I merge all the fields into the 9 columns.&amp;nbsp; I only want Patient A listed once.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 19:41:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-two-columns-into-one/m-p/1300714#M828454</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-29T19:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two columns into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-two-columns-into-one/m-p/1300715#M828455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Kelly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With that load, I will need to add a sum function in the case as shown above the patient has more than 1 code for a specific category or should I put "Count(Metastatic Cancer &amp;amp; Acute Leukemia) as new_name? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 19:46:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-two-columns-into-one/m-p/1300715#M828455</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-29T19:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two columns into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-two-columns-into-one/m-p/1300716#M828456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm pretty sure the sum will work. Sum(MetastaticCancer + Acute Lukemia) as new_name is what I'm pretty sure is the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 19:58:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-two-columns-into-one/m-p/1300716#M828456</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-29T19:58:24Z</dc:date>
    </item>
  </channel>
</rss>

