<?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 Union tables. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Union-tables/m-p/162904#M36248</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your sample didn't include any records like that. You have different names in one record in that table? If so, you'll need to load each column separately. You may be able to use a cross table, but creating three tables would also work.&lt;/P&gt;&lt;P&gt;Here's a load that should work:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;NamesTemp:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Motorista_1,Motorista_2,Motorista_3&lt;BR /&gt;Jose,NewGuy,Jose&lt;BR /&gt;Joao,Joao,Joao&lt;BR /&gt;,Marcos,&lt;BR /&gt;];&lt;BR /&gt;ValuesTemp:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Valor_1,Valor_2,Valor_3&lt;BR /&gt;10,30,50&lt;BR /&gt;20,40,60&lt;BR /&gt;,10,&lt;BR /&gt;];&lt;BR /&gt;Comb1:&lt;BR /&gt;LOAD RowNo() As FakeKey, Motorista_1 As Motorista&lt;BR /&gt;RESIDENT NamesTemp&lt;BR /&gt;WHERE Len(Motorista_1) &amp;gt; 0;&lt;BR /&gt;JOIN LOAD RowNo() As FakeKey, Valor_1&lt;BR /&gt;RESIDENT ValuesTemp&lt;BR /&gt;WHERE Valor_1 &amp;gt; 0;&lt;BR /&gt;Comb2:&lt;BR /&gt;LOAD RowNo() As FakeKey, Motorista_2 As Motorista&lt;BR /&gt;RESIDENT NamesTemp&lt;BR /&gt;WHERE Len(Motorista_2) &amp;gt; 0;&lt;BR /&gt;JOIN LOAD RowNo() As FakeKey, Valor_2&lt;BR /&gt;RESIDENT ValuesTemp&lt;BR /&gt;WHERE Valor_2 &amp;gt; 0;&lt;BR /&gt;Comb3:&lt;BR /&gt;LOAD RowNo() As FakeKey, Motorista_3 As Motorista&lt;BR /&gt;RESIDENT NamesTemp&lt;BR /&gt;WHERE Len(Motorista_3) &amp;gt; 0;&lt;BR /&gt;JOIN LOAD RowNo() As FakeKey, Valor_3&lt;BR /&gt;RESIDENT ValuesTemp&lt;BR /&gt;WHERE Valor_3 &amp;gt; 0;&lt;BR /&gt;DROP TABLE NamesTemp;&lt;BR /&gt;DROP TABLE ValuesTemp;&lt;BR /&gt;DROP FIELD FakeKey;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Aug 2010 15:39:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-08-17T15:39:58Z</dc:date>
    <item>
      <title>Union tables.</title>
      <link>https://community.qlik.com/t5/QlikView/Union-tables/m-p/162901#M36245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am not able to present these 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: 375pt; border-collapse: collapse;" width="499"&gt;&lt;COLGROUP&gt;&lt;COL span="3" style="width: 61pt; mso-width-source: userset; mso-width-alt: 2962;" width="81" /&gt;&lt;COL span="4" style="width: 48pt;" width="64" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl66" height="20" style="width: 61pt; height: 15pt; background-color: transparent; border: windowtext 0.5pt solid;" width="81"&gt;&lt;STRONG&gt;Motorista_1&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; border-left: windowtext; width: 61pt; border-bottom: windowtext 0.5pt solid; background-color: transparent;" width="81"&gt;&lt;STRONG&gt;Motorista_2&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; border-left: windowtext; width: 61pt; border-bottom: windowtext 0.5pt solid; background-color: transparent;" width="81"&gt;&lt;STRONG&gt;Motorista_3&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="width: 48pt; background-color: transparent; border: #f0f0f0;" width="64"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="width: 48pt; background-color: transparent; border: windowtext 0.5pt solid;" width="64"&gt;&lt;STRONG&gt;Valor_1&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; border-left: windowtext; width: 48pt; border-bottom: windowtext 0.5pt solid; background-color: transparent;" width="64"&gt;&lt;STRONG&gt;Valor_2&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; border-left: windowtext; width: 48pt; border-bottom: windowtext 0.5pt solid; background-color: transparent;" width="64"&gt;&lt;STRONG&gt;Valor_3&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid; height: 15pt; background-color: transparent;"&gt;Jose&lt;/TD&gt;&lt;TD class="xl65" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;Jose&lt;/TD&gt;&lt;TD class="xl65" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;Jose&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;30&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid; height: 15pt; background-color: transparent;"&gt;Joao&lt;/TD&gt;&lt;TD class="xl65" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;Joao&lt;/TD&gt;&lt;TD class="xl65" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;Joao&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;40&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid; height: 15pt; background-color: transparent;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;Marcos&lt;/TD&gt;&lt;TD class="xl65" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;10&lt;/TD&gt;&lt;TD class="xl65" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;as follows:&lt;/P&gt;&lt;P&gt;&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: 231pt; border-collapse: collapse;" width="307"&gt;&lt;COLGROUP&gt;&lt;COL span="3" style="width: 61pt; mso-width-source: userset; mso-width-alt: 2962;" width="81" /&gt;&lt;COL style="width: 48pt;" width="64" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl66" height="20" style="width: 61pt; height: 15pt; background-color: transparent; border: windowtext 0.5pt solid;" width="81"&gt;&lt;STRONG&gt;Motorista&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; border-left: windowtext; width: 61pt; border-bottom: windowtext 0.5pt solid; background-color: transparent;" width="81"&gt;&lt;STRONG&gt;Valor_1&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; border-left: windowtext; width: 61pt; border-bottom: windowtext 0.5pt solid; background-color: transparent;" width="81"&gt;&lt;STRONG&gt;Valor_2&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; border-left: windowtext; width: 48pt; border-bottom: windowtext 0.5pt solid; background-color: transparent;" width="64"&gt;&lt;STRONG&gt;Valor_3&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid; height: 15pt; background-color: transparent;"&gt;Jose&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;30&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid; height: 15pt; background-color: transparent;"&gt;Joao&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;40&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid; height: 15pt; background-color: transparent;"&gt;Marcos&lt;/TD&gt;&lt;TD class="xl65" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;10&lt;/TD&gt;&lt;TD class="xl65" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone help?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 21:06:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Union-tables/m-p/162901#M36245</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-16T21:06:37Z</dc:date>
    </item>
    <item>
      <title>Union tables.</title>
      <link>https://community.qlik.com/t5/QlikView/Union-tables/m-p/162902#M36246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That does not look like a fun data set, very un-Kimball. Depending on how much more complicated the real data is than the sample, something like this may work:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;NamesTemp:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Motorista_1,Motorista_2,Motorista_3&lt;BR /&gt;Jose,Jose,Jose&lt;BR /&gt;Joao,Joao,Joao&lt;BR /&gt;,Marcos,&lt;BR /&gt;];&lt;BR /&gt;ValuesTemp:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Valor_1,Valor_2,Valor_3&lt;BR /&gt;10,30,50&lt;BR /&gt;20,40,60&lt;BR /&gt;,10,&lt;BR /&gt;];&lt;BR /&gt;FullTable:&lt;BR /&gt;LOAD RowNo() As FakeKey,&lt;BR /&gt; If(Len(Motorista_1)&amp;gt;0, Motorista_1,&lt;BR /&gt; If(Len(Motorista_2)&amp;gt;0, Motorista_2, Motorista_3)) As Motorista&lt;BR /&gt;RESIDENT NamesTemp;&lt;BR /&gt;JOIN LOAD RowNo() As FakeKey, *&lt;BR /&gt;RESIDENT ValuesTemp;&lt;BR /&gt;DROP TABLE NamesTemp;&lt;BR /&gt;DROP TABLE ValuesTemp;&lt;BR /&gt;DROP FIELD FakeKey;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 22:36:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Union-tables/m-p/162902#M36246</guid>
      <dc:creator />
      <dc:date>2010-08-16T22:36:35Z</dc:date>
    </item>
    <item>
      <title>Union tables.</title>
      <link>https://community.qlik.com/t5/QlikView/Union-tables/m-p/162903#M36247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply, but failed. If you add two different names in the first two fields of the table NamesTemp he considers only the first field the other name of the second field does not return.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 12:57:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Union-tables/m-p/162903#M36247</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-17T12:57:11Z</dc:date>
    </item>
    <item>
      <title>Union tables.</title>
      <link>https://community.qlik.com/t5/QlikView/Union-tables/m-p/162904#M36248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your sample didn't include any records like that. You have different names in one record in that table? If so, you'll need to load each column separately. You may be able to use a cross table, but creating three tables would also work.&lt;/P&gt;&lt;P&gt;Here's a load that should work:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;NamesTemp:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Motorista_1,Motorista_2,Motorista_3&lt;BR /&gt;Jose,NewGuy,Jose&lt;BR /&gt;Joao,Joao,Joao&lt;BR /&gt;,Marcos,&lt;BR /&gt;];&lt;BR /&gt;ValuesTemp:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Valor_1,Valor_2,Valor_3&lt;BR /&gt;10,30,50&lt;BR /&gt;20,40,60&lt;BR /&gt;,10,&lt;BR /&gt;];&lt;BR /&gt;Comb1:&lt;BR /&gt;LOAD RowNo() As FakeKey, Motorista_1 As Motorista&lt;BR /&gt;RESIDENT NamesTemp&lt;BR /&gt;WHERE Len(Motorista_1) &amp;gt; 0;&lt;BR /&gt;JOIN LOAD RowNo() As FakeKey, Valor_1&lt;BR /&gt;RESIDENT ValuesTemp&lt;BR /&gt;WHERE Valor_1 &amp;gt; 0;&lt;BR /&gt;Comb2:&lt;BR /&gt;LOAD RowNo() As FakeKey, Motorista_2 As Motorista&lt;BR /&gt;RESIDENT NamesTemp&lt;BR /&gt;WHERE Len(Motorista_2) &amp;gt; 0;&lt;BR /&gt;JOIN LOAD RowNo() As FakeKey, Valor_2&lt;BR /&gt;RESIDENT ValuesTemp&lt;BR /&gt;WHERE Valor_2 &amp;gt; 0;&lt;BR /&gt;Comb3:&lt;BR /&gt;LOAD RowNo() As FakeKey, Motorista_3 As Motorista&lt;BR /&gt;RESIDENT NamesTemp&lt;BR /&gt;WHERE Len(Motorista_3) &amp;gt; 0;&lt;BR /&gt;JOIN LOAD RowNo() As FakeKey, Valor_3&lt;BR /&gt;RESIDENT ValuesTemp&lt;BR /&gt;WHERE Valor_3 &amp;gt; 0;&lt;BR /&gt;DROP TABLE NamesTemp;&lt;BR /&gt;DROP TABLE ValuesTemp;&lt;BR /&gt;DROP FIELD FakeKey;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 15:39:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Union-tables/m-p/162904#M36248</guid>
      <dc:creator />
      <dc:date>2010-08-17T15:39:58Z</dc:date>
    </item>
  </channel>
</rss>

