<?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 How to apply KEEP on a Cross table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-apply-KEEP-on-a-Cross-table/m-p/1787164#M1210175</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I am stuck here and need some help on this.&lt;/P&gt;&lt;P&gt;I have two tables Table1 and Table2 and I am trying to apply a LEFT KEEP keeping in mind that I want to keep the complete Table1 and only the common fields in Table2.&amp;nbsp; But the thing is that Table2 is a cross table. So when I apply keep before Table2, it throws me an error. The thing is I cant even take resident or make a qvd of Table2 because Table2 has tens of thousands of columns and that puts unnecessary load on my server. So how to go about things here?&lt;/P&gt;&lt;P&gt;The script I am using is something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table1:&lt;BR /&gt;LOAD MachineID,&lt;BR /&gt;TagID,&lt;BR /&gt;TagName&lt;BR /&gt;FROM&lt;BR /&gt;[Scenario.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;left keep&lt;BR /&gt;Table2:&lt;BR /&gt;CrossTable(TagName, Data)&lt;BR /&gt;LOAD timestamp,&lt;BR /&gt;Alpha,&lt;BR /&gt;Beta,&lt;BR /&gt;Gamma,&lt;BR /&gt;x,&lt;BR /&gt;y,&lt;BR /&gt;z&lt;BR /&gt;FROM&lt;BR /&gt;[Scenario.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet2);&lt;/P&gt;&lt;P&gt;exit script;&lt;/P&gt;&lt;P&gt;Note: Table2 has tens of thousands of columns so aplha,beta, gamma, x,y and z are just an example hence I can not take a resident or make a qvd because of too much load on the server. And I want the complete Table1 and only the common columns from Table2 like alpha,beta and gamma in this case. So is there any way via which I can apply KEEP with CrossTable?&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Mar 2021 17:26:03 GMT</pubDate>
    <dc:creator>ritvik4BI</dc:creator>
    <dc:date>2021-03-01T17:26:03Z</dc:date>
    <item>
      <title>How to apply KEEP on a Cross table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-apply-KEEP-on-a-Cross-table/m-p/1787164#M1210175</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I am stuck here and need some help on this.&lt;/P&gt;&lt;P&gt;I have two tables Table1 and Table2 and I am trying to apply a LEFT KEEP keeping in mind that I want to keep the complete Table1 and only the common fields in Table2.&amp;nbsp; But the thing is that Table2 is a cross table. So when I apply keep before Table2, it throws me an error. The thing is I cant even take resident or make a qvd of Table2 because Table2 has tens of thousands of columns and that puts unnecessary load on my server. So how to go about things here?&lt;/P&gt;&lt;P&gt;The script I am using is something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table1:&lt;BR /&gt;LOAD MachineID,&lt;BR /&gt;TagID,&lt;BR /&gt;TagName&lt;BR /&gt;FROM&lt;BR /&gt;[Scenario.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;left keep&lt;BR /&gt;Table2:&lt;BR /&gt;CrossTable(TagName, Data)&lt;BR /&gt;LOAD timestamp,&lt;BR /&gt;Alpha,&lt;BR /&gt;Beta,&lt;BR /&gt;Gamma,&lt;BR /&gt;x,&lt;BR /&gt;y,&lt;BR /&gt;z&lt;BR /&gt;FROM&lt;BR /&gt;[Scenario.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet2);&lt;/P&gt;&lt;P&gt;exit script;&lt;/P&gt;&lt;P&gt;Note: Table2 has tens of thousands of columns so aplha,beta, gamma, x,y and z are just an example hence I can not take a resident or make a qvd because of too much load on the server. And I want the complete Table1 and only the common columns from Table2 like alpha,beta and gamma in this case. So is there any way via which I can apply KEEP with CrossTable?&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 17:26:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-apply-KEEP-on-a-Cross-table/m-p/1787164#M1210175</guid>
      <dc:creator>ritvik4BI</dc:creator>
      <dc:date>2021-03-01T17:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply KEEP on a Cross table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-apply-KEEP-on-a-Cross-table/m-p/1787172#M1210176</link>
      <description>&lt;P&gt;you cant apparently CANT apply a keep and a cross at the same time.&amp;nbsp; you may have to create a 3rd table:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;table1:.....
table2: crosstable .....

noconctenate Table3: left keep (table1) load * table2;
drop table table2;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 17:58:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-apply-KEEP-on-a-Cross-table/m-p/1787172#M1210176</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-03-01T17:58:36Z</dc:date>
    </item>
  </channel>
</rss>

