<?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: Limiting rows in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Limiting-rows/m-p/2104240#M90191</link>
    <description>&lt;P&gt;Hi Christian - Thanks for your reply. I think in step 2 you're missing a second value for the mapping table. Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2023 21:04:32 GMT</pubDate>
    <dc:creator>Gator</dc:creator>
    <dc:date>2023-08-09T21:04:32Z</dc:date>
    <item>
      <title>Limiting rows</title>
      <link>https://community.qlik.com/t5/App-Development/Limiting-rows/m-p/2103747#M90156</link>
      <description>&lt;P&gt;I have two tables, Table_A&amp;nbsp; which has 1,000 rows and Table_B which has 10,000 rows. I want to restrict the number of rows I load in Table_B based on a value in a field in Table_A which corresponds to a value in a field in Table_B so that if the values are identical, I want to load that row into Table_B, otherwise not.&amp;nbsp;The end result will be the same number of rows in both tables.&amp;nbsp;The field names in the two table are completely different.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 22:30:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Limiting-rows/m-p/2103747#M90156</guid>
      <dc:creator>Gator</dc:creator>
      <dc:date>2023-08-08T22:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting rows</title>
      <link>https://community.qlik.com/t5/App-Development/Limiting-rows/m-p/2103750#M90157</link>
      <description>&lt;P&gt;Hello, here I am sending you a referential code with the case you are requesting:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1.-&amp;nbsp;Create the Inline Data for Table_A and Table_B&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Table_A:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Field_A&lt;BR /&gt;Value1&lt;BR /&gt;Value2&lt;BR /&gt;Value3&lt;BR /&gt;// ... up to 1,000 rows&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Table_B:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Field_B&lt;BR /&gt;ValueX&lt;BR /&gt;ValueY&lt;BR /&gt;Value1&lt;BR /&gt;Value3&lt;BR /&gt;// ... up to 10,000 rows&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2.-&amp;nbsp;Create a Mapping Table Using the Values from Table_A&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;MappingTable:&lt;BR /&gt;MAPPING LOAD&lt;BR /&gt;Field_A&lt;BR /&gt;RESIDENT Table_A;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;3.-&amp;nbsp;Apply the Mapping to Table_B Using the Map Function&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;NewTable_B:&lt;BR /&gt;LOAD&lt;BR /&gt;Field_B,&lt;BR /&gt;ApplyMap('MappingTable', Field_B, 'No Match') as MatchedField&lt;BR /&gt;RESIDENT Table_B;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;4.-&amp;nbsp;Filter Table_B Based on the Mapping Result&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;FinalTable_B:&lt;BR /&gt;LOAD *&lt;BR /&gt;RESIDENT NewTable_B&lt;BR /&gt;WHERE MatchedField &amp;lt;&amp;gt; 'No Match';&lt;/P&gt;
&lt;P&gt;DROP TABLE NewTable_B;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ApplyMap function is used to map the values of Field_B in Table_B to the values in Field_A in Table_A using the mapping table. Rows with no matching value will have 'No Match', and you can filter these out in the final table.&lt;/P&gt;
&lt;P&gt;The resulting FinalTable_B will have the same number of rows as Table_A, based on the matching values.&lt;/P&gt;
&lt;P&gt;Make sure to adjust the field names and values according to your actual data and scenario.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarts.&lt;/P&gt;
&lt;P&gt;Cristian R.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 23:05:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Limiting-rows/m-p/2103750#M90157</guid>
      <dc:creator>cristianj23a</dc:creator>
      <dc:date>2023-08-08T23:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting rows</title>
      <link>https://community.qlik.com/t5/App-Development/Limiting-rows/m-p/2103757#M90158</link>
      <description>&lt;P&gt;Hi, as below using Exists()&lt;/P&gt;
&lt;P&gt;Table_A:&lt;BR /&gt;LOAD Value_A,&lt;BR /&gt;&lt;BR /&gt;FROM ...;&lt;/P&gt;
&lt;P&gt;Table_B:&lt;BR /&gt;LOAD Value_B&lt;/P&gt;
&lt;P&gt;FROM ...&lt;BR /&gt;Where Exists(Value_A,Value_B);&lt;/P&gt;
&lt;P&gt;DROP Table Table_A;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 00:44:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Limiting-rows/m-p/2103757#M90158</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2023-08-09T00:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting rows</title>
      <link>https://community.qlik.com/t5/App-Development/Limiting-rows/m-p/2104170#M90184</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;There is two ways to resolve this problem.&lt;/P&gt;
&lt;P&gt;1. Apply Map - You can create a Mapping Load of First Table&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then use this in Second table then in the preceding load u can use where condition to keep only the records which you got from applymap&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. You can also use Where exist function.&lt;/P&gt;
&lt;P&gt;Hope this will help....&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 16:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Limiting-rows/m-p/2104170#M90184</guid>
      <dc:creator>Tanish</dc:creator>
      <dc:date>2023-08-09T16:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting rows</title>
      <link>https://community.qlik.com/t5/App-Development/Limiting-rows/m-p/2104240#M90191</link>
      <description>&lt;P&gt;Hi Christian - Thanks for your reply. I think in step 2 you're missing a second value for the mapping table. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 21:04:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Limiting-rows/m-p/2104240#M90191</guid>
      <dc:creator>Gator</dc:creator>
      <dc:date>2023-08-09T21:04:32Z</dc:date>
    </item>
  </channel>
</rss>

