<?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 Column problem - splitting column ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Column-problem-splitting-column/m-p/180520#M46922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, gotcha. Then MY example has the sign backwards. Sorry to have "corrected" you in error. &lt;IMG alt="Embarrassed" src="http://community.qlik.com/emoticons/emotion-10.gif" /&gt;&lt;/P&gt;&lt;P&gt;And "my" solution was simply to demonstrate that YOUR solution worked. I think the only change I made, other than screwing up the sign, was to add CONCATENATE([Split]). I agree that this line isn't necessary, as that is exactly what QlikView will do by default. However, I like to say it explicitly. I think it is more clear to less experienced developers reading the code, and it also allows me to insert a different load in the middle without breaking anything. I've seen developers do exactly that, and then ask me why their data was all messed up. So it's just a safety measure. Definitely overkill here, but just something I've made a habit of.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Sep 2009 00:11:34 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2009-09-11T00:11:34Z</dc:date>
    <item>
      <title>Column problem - splitting column ?</title>
      <link>https://community.qlik.com/t5/QlikView/Column-problem-splitting-column/m-p/180513#M46915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a problem with a table which contains financial information (debit and credit). Whereas there is a single column for debit account number and one for credit account number, there is only one column for amount and they are all positive amounts. I need to calculate in pivot or straight table the positive amount for the debit account and negative amount for the credit account. My problem is that all amounts have account numbers in both debit and credit (ofcourse any finance people would say) and they are never the same for one transaction. But some of the account numbers are to be found both in debit and credit but not on the same transaction.&lt;/P&gt;&lt;P&gt;[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/7331.Account.doc:550:0]&lt;/P&gt;&lt;P&gt;In the enclosed you can see table structure from column H to K and how it shall look in pivot or straight table in column M to O.&lt;/P&gt;&lt;P&gt;Any ideas ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 17:34:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Column-problem-splitting-column/m-p/180513#M46915</guid>
      <dc:creator />
      <dc:date>2009-09-09T17:34:08Z</dc:date>
    </item>
    <item>
      <title>Column problem - splitting column ?</title>
      <link>https://community.qlik.com/t5/QlikView/Column-problem-splitting-column/m-p/180514#M46916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just load data twice as follows;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transactions:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;DEBIT_ACCNT as Account,&lt;/P&gt;&lt;P&gt;AMOUNT as Debit,&lt;/P&gt;&lt;P&gt;0 as Credit&lt;/P&gt;&lt;P&gt;from Table A;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;CREDIT_ACCNT as Account,&lt;/P&gt;&lt;P&gt;0 as Debit,&lt;/P&gt;&lt;P&gt;AMOUNT * -1 as Credit&lt;/P&gt;&lt;P&gt;from Table A;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 19:51:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Column-problem-splitting-column/m-p/180514#M46916</guid>
      <dc:creator>bismart</dc:creator>
      <dc:date>2009-09-09T19:51:14Z</dc:date>
    </item>
    <item>
      <title>Column problem - splitting column ?</title>
      <link>https://community.qlik.com/t5/QlikView/Column-problem-splitting-column/m-p/180515#M46917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately that dosen't do it. In order to avoid having syntethic keys I have to name the "0 as Credit/0 as Debit" to something else otherwise Credit and Debit exists in both tables and are trying to link.&lt;/P&gt;&lt;P&gt;Furthermore, I only get data where both Accounts are equal - not the ones where there is only credit account or debit account. In addition the figures are wrong (sum).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 21:20:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Column-problem-splitting-column/m-p/180515#M46917</guid>
      <dc:creator />
      <dc:date>2009-09-09T21:20:17Z</dc:date>
    </item>
    <item>
      <title>Column problem - splitting column ?</title>
      <link>https://community.qlik.com/t5/QlikView/Column-problem-splitting-column/m-p/180516#M46918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The second load statement loads the records into the same table 'Transactions' , once the column names are the same in bothload statements.&lt;/P&gt;&lt;P&gt;Tiy should only have 1 table in your application after using suggested code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 21:54:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Column-problem-splitting-column/m-p/180516#M46918</guid>
      <dc:creator>bismart</dc:creator>
      <dc:date>2009-09-09T21:54:08Z</dc:date>
    </item>
    <item>
      <title>Column problem - splitting column ?</title>
      <link>https://community.qlik.com/t5/QlikView/Column-problem-splitting-column/m-p/180517#M46919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sign was wrong on the amounts. Looked like the only problem to me. And while not necessary, I prefer to explicitly say which table I'm concatenating to. See attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 06:39:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Column-problem-splitting-column/m-p/180517#M46919</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-09-10T06:39:21Z</dc:date>
    </item>
    <item>
      <title>Column problem - splitting column ?</title>
      <link>https://community.qlik.com/t5/QlikView/Column-problem-splitting-column/m-p/180518#M46920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you ever so much both of you !!&lt;/P&gt;&lt;P&gt;With at few ajustments so it fitted my database I got it to work with correct figures and everything. You have just saved me days of headache.&lt;/P&gt;&lt;P&gt;John Witherspoon - your enclosed example was very helpfull and put me in the right direction and way of thinking. A special thanks to you for always providing good example qvw's.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 14:08:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Column-problem-splitting-column/m-p/180518#M46920</guid>
      <dc:creator />
      <dc:date>2009-09-10T14:08:20Z</dc:date>
    </item>
    <item>
      <title>Column problem - splitting column ?</title>
      <link>https://community.qlik.com/t5/QlikView/Column-problem-splitting-column/m-p/180519#M46921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't see a problem with my amounts... Credit accounts hold negative values as per original document.&lt;/P&gt;&lt;P&gt;Maybe I'm going a bit daft and still think my solution is cleaner and easier... but hey ho , more than one way to skin a cat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 15:11:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Column-problem-splitting-column/m-p/180519#M46921</guid>
      <dc:creator>bismart</dc:creator>
      <dc:date>2009-09-10T15:11:15Z</dc:date>
    </item>
    <item>
      <title>Column problem - splitting column ?</title>
      <link>https://community.qlik.com/t5/QlikView/Column-problem-splitting-column/m-p/180520#M46922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, gotcha. Then MY example has the sign backwards. Sorry to have "corrected" you in error. &lt;IMG alt="Embarrassed" src="http://community.qlik.com/emoticons/emotion-10.gif" /&gt;&lt;/P&gt;&lt;P&gt;And "my" solution was simply to demonstrate that YOUR solution worked. I think the only change I made, other than screwing up the sign, was to add CONCATENATE([Split]). I agree that this line isn't necessary, as that is exactly what QlikView will do by default. However, I like to say it explicitly. I think it is more clear to less experienced developers reading the code, and it also allows me to insert a different load in the middle without breaking anything. I've seen developers do exactly that, and then ask me why their data was all messed up. So it's just a safety measure. Definitely overkill here, but just something I've made a habit of.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 00:11:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Column-problem-splitting-column/m-p/180520#M46922</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-09-11T00:11:34Z</dc:date>
    </item>
    <item>
      <title>Column problem - splitting column ?</title>
      <link>https://community.qlik.com/t5/QlikView/Column-problem-splitting-column/m-p/180521#M46923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you sir... you're a gentleman.&lt;/P&gt;&lt;P&gt;Wasn't being awkward... just thought I was going a bit mad for a moment&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 14:58:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Column-problem-splitting-column/m-p/180521#M46923</guid>
      <dc:creator>bismart</dc:creator>
      <dc:date>2009-09-11T14:58:48Z</dc:date>
    </item>
  </channel>
</rss>

