<?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: Create only missing values in a table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Create-only-missing-values-in-a-table/m-p/2489636#M101835</link>
    <description>&lt;P&gt;Thanks, Qrishna. This works for the example table that I provided.&lt;SPAN&gt;The sample table is a simplified one where I tried to explain the situation without complicated structures.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;My bad, I was not clear enough. While I included the word “create” at this question’s title, I was not specific in telling these relevant topics:&lt;/P&gt;
&lt;P&gt;1. I may get a table with hundreds of rows and the field Code may be A000 to A999.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. I won’t know which rows are missing.&amp;nbsp;&lt;BR /&gt;3. Due to 1 &amp;nbsp;&amp;amp; 2, it is impossible to input manually a table with the missing rows.&amp;nbsp;&lt;BR /&gt;4. Thus, I need to create &lt;EM&gt;automatically&lt;/EM&gt; at load script the table to be appended. That table should have the missing rows.&lt;/P&gt;
&lt;P&gt;Hope this is clear. And hopefully you can help me further.&lt;/P&gt;
&lt;P&gt;Thanks again!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2024 10:02:34 GMT</pubDate>
    <dc:creator>DEMONIO_AZUL</dc:creator>
    <dc:date>2024-10-29T10:02:34Z</dc:date>
    <item>
      <title>Create only missing values in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Create-only-missing-values-in-a-table/m-p/2489522#M101821</link>
      <description>&lt;P&gt;Hello there!&lt;BR /&gt;&lt;BR /&gt;Is there a way to load a table with a load script and then append the missing values using another script section that creates them?&lt;/P&gt;
&lt;P&gt;This is what I mean:&lt;/P&gt;
&lt;P&gt;The original table is something like this:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%" height="24px"&gt;Location&lt;/TD&gt;
&lt;TD width="50%" height="24px"&gt;Code&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="24px"&gt;Madrid&lt;/TD&gt;
&lt;TD width="50%" height="24px"&gt;A0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="24px"&gt;
&lt;P&gt;Barcelona&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="50%" height="24px"&gt;A1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="24px"&gt;Toledo&lt;/TD&gt;
&lt;TD width="50%" height="24px"&gt;A2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;London&lt;/TD&gt;
&lt;TD&gt;B3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="24px"&gt;Paris&lt;/TD&gt;
&lt;TD width="50%" height="24px"&gt;C2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Osaka&lt;/TD&gt;
&lt;TD&gt;D5&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I need to append to the table above all values that are missing, namely:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;for letter A, from A3 to A9;&lt;/LI&gt;
&lt;LI&gt;for letter B, from B0 to B2 and from B4 to B9;&lt;/LI&gt;
&lt;LI&gt;for letter C, from C0 to C1 and from C3 to C9;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;for letter D, from D0 to D4 and from D6 to D9; and&lt;/LI&gt;
&lt;LI&gt;for letter E, from E0 to E9 (because it is still not used).&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;For all appended Codes, the location may be filled with a blank or "not used".&lt;/P&gt;
&lt;P&gt;Thanks in advance for all your help.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 22:03:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-only-missing-values-in-a-table/m-p/2489522#M101821</guid>
      <dc:creator>DEMONIO_AZUL</dc:creator>
      <dc:date>2024-10-28T22:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create only missing values in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Create-only-missing-values-in-a-table/m-p/2489584#M101827</link>
      <description>&lt;P&gt;As long as your both tables' field names and number of fields match, the latter table automatically gets appended to the former table: try below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ExistingData:&lt;BR /&gt;load * inline [&lt;BR /&gt;Location, Code&lt;BR /&gt;Madrid, A0&lt;BR /&gt;Barcelona,A1&lt;BR /&gt;Toledo, A2&lt;BR /&gt;London, B3&lt;BR /&gt;Paris, C2&lt;BR /&gt;Osaka, D5&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;AppendData:&lt;BR /&gt;Load * inline [&lt;BR /&gt;Location, Code&lt;BR /&gt;,A3&lt;BR /&gt;,A4&lt;BR /&gt;,A5&lt;BR /&gt;,A6&lt;BR /&gt;,A7&lt;BR /&gt;,A8&lt;BR /&gt;,A9&lt;BR /&gt;,B4&lt;BR /&gt;,B5&lt;BR /&gt;,C3&lt;BR /&gt;,C4&lt;BR /&gt;,D6&lt;BR /&gt;,D7&lt;BR /&gt;,E0&lt;BR /&gt;,E1&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;before:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2489522 - Create only missing values in a table - Concatenate in script - Before.PNG" style="width: 143px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173497i9E0A87094B84C6DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="2489522 - Create only missing values in a table - Concatenate in script - Before.PNG" alt="2489522 - Create only missing values in a table - Concatenate in script - Before.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2489522 - Create only missing values in a table - Concatenate in script - After.PNG" style="width: 179px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173498iD475E6EB40908E7C/image-size/large?v=v2&amp;amp;px=999" role="button" title="2489522 - Create only missing values in a table - Concatenate in script - After.PNG" alt="2489522 - Create only missing values in a table - Concatenate in script - After.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 07:16:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-only-missing-values-in-a-table/m-p/2489584#M101827</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2024-10-29T07:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create only missing values in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Create-only-missing-values-in-a-table/m-p/2489636#M101835</link>
      <description>&lt;P&gt;Thanks, Qrishna. This works for the example table that I provided.&lt;SPAN&gt;The sample table is a simplified one where I tried to explain the situation without complicated structures.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;My bad, I was not clear enough. While I included the word “create” at this question’s title, I was not specific in telling these relevant topics:&lt;/P&gt;
&lt;P&gt;1. I may get a table with hundreds of rows and the field Code may be A000 to A999.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. I won’t know which rows are missing.&amp;nbsp;&lt;BR /&gt;3. Due to 1 &amp;nbsp;&amp;amp; 2, it is impossible to input manually a table with the missing rows.&amp;nbsp;&lt;BR /&gt;4. Thus, I need to create &lt;EM&gt;automatically&lt;/EM&gt; at load script the table to be appended. That table should have the missing rows.&lt;/P&gt;
&lt;P&gt;Hope this is clear. And hopefully you can help me further.&lt;/P&gt;
&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 10:02:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-only-missing-values-in-a-table/m-p/2489636#M101835</guid>
      <dc:creator>DEMONIO_AZUL</dc:creator>
      <dc:date>2024-10-29T10:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create only missing values in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Create-only-missing-values-in-a-table/m-p/2489662#M101838</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/295559"&gt;@DEMONIO_AZUL&lt;/a&gt;&amp;nbsp; So when you Say A3 to A9 means, A003 to A999? Could you be specific?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 10:58:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-only-missing-values-in-a-table/m-p/2489662#M101838</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-10-29T10:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create only missing values in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Create-only-missing-values-in-a-table/m-p/2489697#M101845</link>
      <description>&lt;P&gt;Yes, Kushal, that's correct.&lt;/P&gt;
&lt;P&gt;The current table has three digits in the Code field:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%" height="24px"&gt;Location&lt;/TD&gt;
&lt;TD width="50%" height="24px"&gt;Code&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="24px"&gt;Madrid&lt;/TD&gt;
&lt;TD width="50%" height="24px"&gt;A900&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="24px"&gt;
&lt;P&gt;Barcelona&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="50%" height="24px"&gt;A107&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="24px"&gt;Toledo&lt;/TD&gt;
&lt;TD width="50%" height="24px"&gt;A201&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;London&lt;/TD&gt;
&lt;TD&gt;B327&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="24px"&gt;Paris&lt;/TD&gt;
&lt;TD width="50%" height="24px"&gt;C255&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Osaka&lt;/TD&gt;
&lt;TD&gt;D566&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Obviously, this table is a small set of a bigger file.&lt;/P&gt;
&lt;P&gt;So I need to generate automatically all missing codes for all letters.&lt;/P&gt;
&lt;P&gt;E.g. for letter A, I need to generate codes in the load script from A000 to A106, A108 to A200, A202 to A899 and A901 to A999.&lt;/P&gt;
&lt;P&gt;Similar for all other letters, even for letter E, which should be generated from E000 to E999 even if there is no Code in the input file with that letter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 12:53:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-only-missing-values-in-a-table/m-p/2489697#M101845</guid>
      <dc:creator>DEMONIO_AZUL</dc:creator>
      <dc:date>2024-10-29T12:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create only missing values in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Create-only-missing-values-in-a-table/m-p/2489701#M101847</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/295559"&gt;@DEMONIO_AZUL&lt;/a&gt;&amp;nbsp; try below. For all not existing codes location will be NULL. If you want some values instead, you can take resident of this table create a column with below condition&lt;/P&gt;
&lt;P&gt;if(len(trim(Location))=0,'Not defined',Location) as Location_Final&lt;/P&gt;
&lt;P&gt;Data:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;Location, &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Code&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;Madrid, A900&lt;BR /&gt;Barcelona, A107&lt;BR /&gt;Toledo, A201&lt;BR /&gt;London, B327&lt;BR /&gt;Paris, C255&lt;BR /&gt;Osaka, D566&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Concatenate(Data)&lt;BR /&gt;Load *&lt;BR /&gt;where not Exists(&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Code&lt;/STRONG&gt;&lt;/FONT&gt;);&lt;BR /&gt;Load Letter &amp;amp; num(From + IterNo()-1,'000') as &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Code&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;while IterNo()-1&amp;lt;=To;&lt;BR /&gt;Load * Inline [&lt;BR /&gt;Letter,From,To&lt;BR /&gt;A,0,999&lt;BR /&gt;B,0,999&lt;BR /&gt;C,0,999&lt;BR /&gt;D,0,999&lt;BR /&gt;E,0,999 ];&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 13:15:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-only-missing-values-in-a-table/m-p/2489701#M101847</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-10-29T13:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create only missing values in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Create-only-missing-values-in-a-table/m-p/2489711#M101849</link>
      <description>&lt;P&gt;THANK YOU, KUSHAL!&lt;BR /&gt;This is exactly what I needed!! Much appreciated!&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DEMONIO_AZUL_0-1730208560057.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173519i08E2EE9238989259/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DEMONIO_AZUL_0-1730208560057.png" alt="DEMONIO_AZUL_0-1730208560057.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 13:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-only-missing-values-in-a-table/m-p/2489711#M101849</guid>
      <dc:creator>DEMONIO_AZUL</dc:creator>
      <dc:date>2024-10-29T13:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create only missing values in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Create-only-missing-values-in-a-table/m-p/2490369#M101922</link>
      <description>&lt;P&gt;Superb !!! Neat Solution.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 15:47:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-only-missing-values-in-a-table/m-p/2490369#M101922</guid>
      <dc:creator>seanbruton</dc:creator>
      <dc:date>2024-11-01T15:47:26Z</dc:date>
    </item>
  </channel>
</rss>

