<?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 tables vertically in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Merging-two-tables-vertically/m-p/455117#M169792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After commenting out the drop table command, I rand the report again. The result is same- my final table (PZData) doesnt have the data for last week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I opened the DataMaster, I saw that the data is there and is accurate too! What is happening here, my head is spinning badly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you need any other details. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 May 2013 22:21:55 GMT</pubDate>
    <dc:creator>hibhardwaj</dc:creator>
    <dc:date>2013-05-13T22:21:55Z</dc:date>
    <item>
      <title>Merging two tables vertically</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-two-tables-vertically/m-p/455111#M169786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two tables: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 448px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" colspan="3" height="19" style="text-align: center;" width="192"&gt;TableA&lt;/TD&gt;&lt;TD width="64"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl64" colspan="3" style="text-align: center;" width="192"&gt;TableB&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="19" style="border-top: none;"&gt;Field A&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Field B&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Field C&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;Field A&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Field B&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Field C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;abc&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;njn&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;nam&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;asl&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;nka&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;nmd&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;afj&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;adt&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;ada&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;mbm&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none;"&gt;6&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;fba&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;geh&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The columns in the two tables are identical, but the actual entries in the rows may or may not be same. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do with these two tables is just to concatenate TableA with TableB. The result should look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 192px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" colspan="3" height="19" style="text-align: center;" width="192"&gt;TableC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="19" style="border-top: none;"&gt;Field A&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Field B&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Field C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="19" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;abc&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;njn&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="19" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;nka&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;nmd&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="19" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;ada&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;mbm&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="19" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;nam&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;asl&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="19" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;afj&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;adt&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="19" style="border-top: none;"&gt;6&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;fba&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;geh&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; To me this looks real simple, but I am not able to do it.&amp;nbsp; Please let me know if you need any further clarification on what I want to accomplish. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 21:38:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-two-tables-vertically/m-p/455111#M169786</guid>
      <dc:creator>hibhardwaj</dc:creator>
      <dc:date>2013-05-13T21:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two tables vertically</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-two-tables-vertically/m-p/455112#M169787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ConsolidateTable:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FieldA,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FieldB,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FiledC&lt;/P&gt;&lt;P&gt;From TableA;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FieldA,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FieldB,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FiledC&lt;/P&gt;&lt;P&gt;From TableB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Field names and # of fields are same then QV automatically concatenates with the first loaded table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 21:51:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-two-tables-vertically/m-p/455112#M169787</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-05-13T21:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two tables vertically</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-two-tables-vertically/m-p/455113#M169788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks CA for you reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried doing that, but the data from the second table is still missing in the final table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case, the first table is pulled from a qvd file and the second table is coming from a resident table with some 'where' conditions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont know what should I do to make it show the entries from both tables. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 21:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-two-tables-vertically/m-p/455113#M169788</guid>
      <dc:creator>hibhardwaj</dc:creator>
      <dc:date>2013-05-13T21:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two tables vertically</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-two-tables-vertically/m-p/455114#M169789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post the Script used from your end?&lt;/P&gt;&lt;P&gt;And also check your table viewer, Is that both tables loaded separately?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 22:01:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-two-tables-vertically/m-p/455114#M169789</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-05-13T22:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two tables vertically</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-two-tables-vertically/m-p/455115#M169790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure! The table that is coming from the QVD file gives the data for everything but the last week. And I am using ODBC connection + the resident load to get the data for the last week. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want a master table that has past data + last week's data. Thanks again for you time sir! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ThousandSep=',';&lt;/P&gt;&lt;P&gt;SET DecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyThousandSep=',';&lt;/P&gt;&lt;P&gt;SET MoneyDecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyFormat='$#,##0.00;($#,##0.00)';&lt;/P&gt;&lt;P&gt;SET TimeFormat='h:mm:ss TT';&lt;/P&gt;&lt;P&gt;SET DateFormat='M/D/YYYY';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='M/D/YYYY h:mm:ss[.fff] TT';&lt;/P&gt;&lt;P&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;/P&gt;&lt;P&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/P&gt;&lt;P&gt;LET CarriedDate= (Purgechar(Date((today()-1),'YYYY.MM.DD' ),'.'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC CONNECT32 TO XYZ2 (XUserId is cSPcVYRNJbaMXUVMXDZA, XPassword is GbYRZWBORDbSWVROFbYQWYQI);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataMaster:&lt;/P&gt;&lt;P&gt; SELECT "PHPICK00"."PHWHSE","PHPICK00"."PHPCTL", "PDPICK00"."PDPIQT", "STSTYL00"."STSC10", "PDPICK00"."PDSTYL", "PDPICK00"."PDSSFX", "STSTYL00"."STSTYD", "STSTYL00"."STPRC", "STSTYL00"."STRPRC", "PHPICK00"."PHSHDT", &lt;/P&gt;&lt;P&gt; "PDPICK00"."PDPDTP",&amp;nbsp; "PHPICK00"."PHCO"&lt;/P&gt;&lt;P&gt; FROM&amp;nbsp;&amp;nbsp; ("MEMPHIS2"."PKMANH221D"."PHPICK00" "PHPICK00" INNER JOIN "MEMPHIS2"."PKMANH221D"."PDPICK00" "PDPICK00" ON (("PHPICK00"."PHCO"="PDPICK00"."PDCO") AND ("PHPICK00"."PHDIV"="PDPICK00"."PDDIV")) AND ("PHPICK00"."PHPCTL"="PDPICK00"."PDPCTL")) INNER JOIN "MEMPHIS2"."PKMANH221D"."STSTYL00" "STSTYL00" ON (("PDPICK00"."PDCO"="STSTYL00"."STCO") AND ("PDPICK00"."PDSTYL"="STSTYL00"."STSTYL")) AND ("PDPICK00"."PDSSFX"="STSTYL00"."STSSFX")&lt;/P&gt;&lt;P&gt; WHERE&amp;nbsp; "PHPICK00"."PHASLC"='Y' AND "PDPICK00"."PDPDTP"='VAS' AND "PDPICK00"."PDPIQT"&amp;gt;0 AND ("PHPICK00"."PHWHSE"='OB2' OR "PHPICK00"."PHWHSE"='SCC') and "STSTYL00"."STSC10"&amp;lt;&amp;gt;''&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; and "PHPICK00"."PHSHDT"&amp;gt;=20130506 &lt;/P&gt;&lt;P&gt; and "PHPICK00"."PHSHDT"&amp;lt;=20130512&lt;/P&gt;&lt;P&gt; ORDER BY "STSTYL00"."STSC10", "PDPICK00"."PDSTYL", "PDPICK00"."PDPCTL";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PZData:&lt;/P&gt;&lt;P&gt;LOAD [PZ Indicator], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Brand, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TotalSum, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date#( RangeDate, 'YYYYMMDD') as Date&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;PZData.qvd&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;STSC10 as [PZ Indicator],&lt;/P&gt;&lt;P&gt;STSTYD as Description,&lt;/P&gt;&lt;P&gt;PDSSFX as [Brand],&lt;/P&gt;&lt;P&gt;PDPIQT as TotalSum,&lt;/P&gt;&lt;P&gt;PHSHDT as Date&lt;/P&gt;&lt;P&gt;Resident DataMaster;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table DataMaster;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 22:09:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-two-tables-vertically/m-p/455115#M169790</guid>
      <dc:creator>hibhardwaj</dc:creator>
      <dc:date>2013-05-13T22:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two tables vertically</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-two-tables-vertically/m-p/455116#M169791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you do a simple test.&lt;/P&gt;&lt;P&gt;Capture a table viewer by without dropping the DataMaster table and check whether it has any data?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Also Is all tables loaded separately?(In your case After commenting out the&amp;nbsp; Drop table table statement there will be 3 tables )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 22:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-two-tables-vertically/m-p/455116#M169791</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-05-13T22:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two tables vertically</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-two-tables-vertically/m-p/455117#M169792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After commenting out the drop table command, I rand the report again. The result is same- my final table (PZData) doesnt have the data for last week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I opened the DataMaster, I saw that the data is there and is accurate too! What is happening here, my head is spinning badly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you need any other details. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 22:21:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-two-tables-vertically/m-p/455117#M169792</guid>
      <dc:creator>hibhardwaj</dc:creator>
      <dc:date>2013-05-13T22:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two tables vertically</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-two-tables-vertically/m-p/455118#M169793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually I ran it without dropping the table and it started showing the result in the table. I changed the format a little bit and the numbers are right there! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for investing time in this problem CA.... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 22:35:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-two-tables-vertically/m-p/455118#M169793</guid>
      <dc:creator>hibhardwaj</dc:creator>
      <dc:date>2013-05-13T22:35:44Z</dc:date>
    </item>
  </channel>
</rss>

