<?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 Scanning a data table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Scanning-a-data-table/m-p/236387#M87583</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I've found the answer. All the fields in the new table are the same name. If I add a new dummy field it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jul 2010 17:39:31 GMT</pubDate>
    <dc:creator>markmccoid</dc:creator>
    <dc:date>2010-07-12T17:39:31Z</dc:date>
    <item>
      <title>Scanning a data table</title>
      <link>https://community.qlik.com/t5/QlikView/Scanning-a-data-table/m-p/236381#M87577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;Is it possible to scan and replace values in a table?&lt;/P&gt;&lt;P&gt;Something like this...&lt;/P&gt;&lt;P&gt;load * from table&lt;/P&gt;&lt;P&gt;for each record&lt;/P&gt;&lt;P&gt;replace record.field with 123&lt;/P&gt;&lt;P&gt;end for&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;DerekJ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 13:39:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scanning-a-data-table/m-p/236381#M87577</guid>
      <dc:creator />
      <dc:date>2010-05-10T13:39:55Z</dc:date>
    </item>
    <item>
      <title>Scanning a data table</title>
      <link>https://community.qlik.com/t5/QlikView/Scanning-a-data-table/m-p/236382#M87578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not quite sure what you mean - are you just trying to set a specific value to a field regardless of its actual value? if so this will do it&lt;/P&gt;&lt;P&gt;Load fielda,&lt;/P&gt;&lt;P&gt;fieldb,&lt;/P&gt;&lt;P&gt;123 as fieldc&lt;/P&gt;&lt;P&gt;from...&lt;/P&gt;&lt;P&gt;If you want to replace various values with others, take a look at 'map'&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 14:00:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scanning-a-data-table/m-p/236382#M87578</guid>
      <dc:creator />
      <dc:date>2010-05-10T14:00:05Z</dc:date>
    </item>
    <item>
      <title>Scanning a data table</title>
      <link>https://community.qlik.com/t5/QlikView/Scanning-a-data-table/m-p/236383#M87579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you simply reload the table using resident load, and use any expression you want for the target field. If the table existed before, you'll need to reload it into a different name, then drop the "old" table, then rename from new to old, to preserve the original name. Something like this:&lt;/P&gt;&lt;P&gt;NewTable:&lt;/P&gt;&lt;P&gt;load A, B. '123' as C resident OldTable;&lt;/P&gt;&lt;P&gt;drop table OldTable;&lt;/P&gt;&lt;P&gt;rename table NewTable to OldTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 14:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scanning-a-data-table/m-p/236383#M87579</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-05-10T14:01:08Z</dc:date>
    </item>
    <item>
      <title>Scanning a data table</title>
      <link>https://community.qlik.com/t5/QlikView/Scanning-a-data-table/m-p/236384#M87580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;Thanks for the quick replies. I'd like to do something like this......&lt;/P&gt;&lt;P&gt;If I have a simple table like this&lt;/P&gt;&lt;P&gt;MyTable:-&lt;/P&gt;&lt;P&gt;Field1&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;I can :-&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;SQL&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;FROM MyTable;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives&lt;/P&gt;&lt;B&gt;SELECT&lt;/B&gt; field1, 0.0 as field2 &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Field1 Field2&lt;/P&gt;&lt;P&gt;1 0.0&lt;/P&gt;&lt;P&gt;2 0.0&lt;/P&gt;&lt;P&gt;3 0.0&lt;/P&gt;&lt;P&gt;Then, in memory, I want to change the table to look like this&lt;/P&gt;&lt;P&gt;Field1 Field2&lt;/P&gt;&lt;P&gt;1 2&lt;/P&gt;&lt;P&gt;2 4&lt;/P&gt;&lt;P&gt;3 6&lt;/P&gt;&lt;P&gt;where the value of Field2 comes from some calculation that can't be done in the SQL Select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;DerekJ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 14:54:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scanning-a-data-table/m-p/236384#M87580</guid>
      <dc:creator />
      <dc:date>2010-05-10T14:54:48Z</dc:date>
    </item>
    <item>
      <title>Scanning a data table</title>
      <link>https://community.qlik.com/t5/QlikView/Scanning-a-data-table/m-p/236385#M87581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Darek,&lt;/P&gt;&lt;P&gt;I think I have a solution for your post. here you should use Precedent Load. to get more info on it go to reference manual.&lt;/P&gt;&lt;P&gt;a:&lt;/P&gt;&lt;P&gt;Load Field1,&lt;/P&gt;&lt;P&gt;sum(Field2) as Field 2; //some calculation you want to make here&lt;/P&gt;&lt;P&gt;SQL Select Field1,&lt;/P&gt;&lt;P&gt;0.0 as Field2&lt;/P&gt;&lt;P&gt;from xyz;&lt;/P&gt;&lt;P&gt;The first load without any from statement is the Precedent load. Hope this helps you....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Joseph......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 15:07:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scanning-a-data-table/m-p/236385#M87581</guid>
      <dc:creator />
      <dc:date>2010-05-10T15:07:05Z</dc:date>
    </item>
    <item>
      <title>Scanning a data table</title>
      <link>https://community.qlik.com/t5/QlikView/Scanning-a-data-table/m-p/236386#M87582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oleg,&lt;/P&gt;&lt;P&gt;When I try the above both of my tables disappear?!&lt;/P&gt;&lt;P&gt;Here is the code I'm using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NewProductTable:&lt;BR /&gt;Load&lt;BR /&gt; ADPRODUCT_ID,&lt;BR /&gt; PlacementName,&lt;BR /&gt; SuperProduct_ID,&lt;BR /&gt; AdSubType,&lt;BR /&gt; AdTypeCombo,&lt;BR /&gt; Edition,&lt;BR /&gt; If(IsNull(BreakoutProduct), ProductName,BreakoutProduct) as ProductName,&lt;BR /&gt;RESIDENT AdProduct;&lt;/P&gt;&lt;P&gt;drop table AdProduct;&lt;/P&gt;&lt;P&gt;Rename table NewProductTable to AdProduct;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Is there anything that I could be doing wrong that would cause this?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 17:22:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scanning-a-data-table/m-p/236386#M87582</guid>
      <dc:creator>markmccoid</dc:creator>
      <dc:date>2010-07-12T17:22:59Z</dc:date>
    </item>
    <item>
      <title>Scanning a data table</title>
      <link>https://community.qlik.com/t5/QlikView/Scanning-a-data-table/m-p/236387#M87583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I've found the answer. All the fields in the new table are the same name. If I add a new dummy field it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 17:39:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scanning-a-data-table/m-p/236387#M87583</guid>
      <dc:creator>markmccoid</dc:creator>
      <dc:date>2010-07-12T17:39:31Z</dc:date>
    </item>
  </channel>
</rss>

