<?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: Adding calculated column to concatenated tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-calculated-column-to-concatenated-tables/m-p/532600#M1141822</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could do it in the script but it would be faster to use a straight table instead of a table box.&amp;nbsp; Make your dimension category and you expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Sum({$&amp;lt;Month={'A'}&amp;gt;}Spend)&lt;/P&gt;&lt;P&gt;2. Sum({$&amp;lt;Month={'B'}&amp;gt;}Spend)&lt;/P&gt;&lt;P&gt;3. Sum({$&amp;lt;Month={'A'}&amp;gt;}Spend) - Sum({$&amp;lt;Month={'B'}&amp;gt;}Spend)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will create the table you are looking for&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Aug 2013 18:25:47 GMT</pubDate>
    <dc:creator>jpapador</dc:creator>
    <dc:date>2013-08-26T18:25:47Z</dc:date>
    <item>
      <title>Adding calculated column to concatenated tables</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-calculated-column-to-concatenated-tables/m-p/532599#M1141821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, all.&lt;/P&gt;&lt;P&gt;I am struggling with how to add columns to concatenated tables in order to calculate deltas between columns.&lt;/P&gt;&lt;P&gt;So here is a simplified example of what I want:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table A has Category and Spend for Month A&lt;BR /&gt;Table B has Category and Spend for Month B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is to create a table box object with the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Category, Spend for Month A, Spend for Month B, Delta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have everything but the Delta part using the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month1:&lt;/P&gt;&lt;P&gt;sql select category, month_a_spend&lt;BR /&gt;from month_a_table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month2:&lt;/P&gt;&lt;P&gt;sql select category, month_b_spend&lt;BR /&gt;from month_b_table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives me everything but the Detla column.&amp;nbsp; In SQL, i would do this by joining Month1 and Month2 and adding calculations as columns.&amp;nbsp; And I tried to achieve this with QlikView but couldn't and none of the examples I found work.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help, please.&amp;nbsp; Many thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 18:17:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-calculated-column-to-concatenated-tables/m-p/532599#M1141821</guid>
      <dc:creator />
      <dc:date>2013-08-26T18:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding calculated column to concatenated tables</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-calculated-column-to-concatenated-tables/m-p/532600#M1141822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could do it in the script but it would be faster to use a straight table instead of a table box.&amp;nbsp; Make your dimension category and you expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Sum({$&amp;lt;Month={'A'}&amp;gt;}Spend)&lt;/P&gt;&lt;P&gt;2. Sum({$&amp;lt;Month={'B'}&amp;gt;}Spend)&lt;/P&gt;&lt;P&gt;3. Sum({$&amp;lt;Month={'A'}&amp;gt;}Spend) - Sum({$&amp;lt;Month={'B'}&amp;gt;}Spend)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will create the table you are looking for&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 18:25:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-calculated-column-to-concatenated-tables/m-p/532600#M1141822</guid>
      <dc:creator>jpapador</dc:creator>
      <dc:date>2013-08-26T18:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Adding calculated column to concatenated tables</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-calculated-column-to-concatenated-tables/m-p/532601#M1141823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&amp;nbsp; That did it!!&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 18:40:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-calculated-column-to-concatenated-tables/m-p/532601#M1141823</guid>
      <dc:creator />
      <dc:date>2013-08-26T18:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Adding calculated column to concatenated tables</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-calculated-column-to-concatenated-tables/m-p/1660569#M1141824</link>
      <description>&lt;UL&gt;&lt;LI&gt;THANKS.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;may I know where I should put the calculated script?&lt;/LI&gt;&lt;LI&gt;Load&lt;/LI&gt;&lt;LI&gt;A. As t1.a&lt;/LI&gt;&lt;LI&gt;From t1&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Load&lt;/LI&gt;&lt;LI&gt;A as t1.a&lt;/LI&gt;&lt;LI&gt;From t2&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 25 Dec 2019 05:14:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-calculated-column-to-concatenated-tables/m-p/1660569#M1141824</guid>
      <dc:creator>43918084</dc:creator>
      <dc:date>2019-12-25T05:14:24Z</dc:date>
    </item>
  </channel>
</rss>

