<?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 table with all possible values of a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-table-with-all-possible-values-of-a-variable/m-p/739241#M676206</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adrian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one demo application that might help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14062384465537647" jivemacro_uid="_14062384465537647"&gt;
&lt;P&gt;table1:&lt;/P&gt;
&lt;P&gt;LOAD RowNo() as ID1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RowNo() as num1&lt;/P&gt;
&lt;P&gt;AutoGenerate 20;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;table2:&lt;/P&gt;
&lt;P&gt;LOAD RowNo() as ID2,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RowNo() as num2&lt;/P&gt;
&lt;P&gt;AutoGenerate 20;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;table3:&lt;/P&gt;
&lt;P&gt;LOAD Distinct * Resident table1;&lt;/P&gt;
&lt;P&gt;Join (table3)&lt;/P&gt;
&lt;P&gt;LOAD Distinct * Resident table2;&lt;/P&gt;
&lt;P&gt;Left Join (table3)&lt;/P&gt;
&lt;P&gt;LOAD Distinct&lt;/P&gt;
&lt;P&gt;&amp;nbsp; num1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; num2,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; num1*num2 as num3,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; RowNo() as ID3&lt;/P&gt;
&lt;P&gt;Resident table3;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Fields num1, num2 From table3;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="63099" alt="QlikCommunity_Thread_125027_Pic3.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/63099_QlikCommunity_Thread_125027_Pic3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="63088" alt="QlikCommunity_Thread_125027_Pic1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/63088_QlikCommunity_Thread_125027_Pic1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_125027_Pic2.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/63100_QlikCommunity_Thread_125027_Pic2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jul 2014 21:45:58 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2014-07-24T21:45:58Z</dc:date>
    <item>
      <title>Create table with all possible values of a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Create-table-with-all-possible-values-of-a-variable/m-p/739239#M676204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, I'm new to QlikView and I've encountered some difficulties. I have my tables and I have a variable (let's call in var3) that gets updated based on other 2 variables(var1 and var2). These two, var1 and var2 (these variables are numbers), get their values after two selections from two fields(let&amp;nbsp; and var3 is simply the multiplication of these two variables ( var1 and var2). &lt;/P&gt;&lt;P&gt;What I am trying to do is to create a list, a table, whatever, with all the possible values for var3. (this actually means that I need some kind of script that would take all the possibilities of choices from f1 and f2 and calculate var3 and then save all the possible values of var3 in a table/list/whatever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, I hope I explained myself well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I have the free version, so it would be great if you could explain me by writing for I cannot open files created by other users.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 15:19:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-table-with-all-possible-values-of-a-variable/m-p/739239#M676204</guid>
      <dc:creator />
      <dc:date>2014-07-09T15:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create table with all possible values of a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Create-table-with-all-possible-values-of-a-variable/m-p/739240#M676205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tmp:&lt;/P&gt;&lt;P&gt;load distinct f1 resident &lt;EM&gt;f1_source_table&lt;/EM&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;join (tmp) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load distinct f2 resident &lt;EM&gt;f2_source_table&lt;/EM&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result:&lt;/P&gt;&lt;P&gt;load f1*f2 as f3&lt;/P&gt;&lt;P&gt;resident tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table tmp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 09:07:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-table-with-all-possible-values-of-a-variable/m-p/739240#M676205</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-07-10T09:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create table with all possible values of a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Create-table-with-all-possible-values-of-a-variable/m-p/739241#M676206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adrian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one demo application that might help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14062384465537647" jivemacro_uid="_14062384465537647"&gt;
&lt;P&gt;table1:&lt;/P&gt;
&lt;P&gt;LOAD RowNo() as ID1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RowNo() as num1&lt;/P&gt;
&lt;P&gt;AutoGenerate 20;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;table2:&lt;/P&gt;
&lt;P&gt;LOAD RowNo() as ID2,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RowNo() as num2&lt;/P&gt;
&lt;P&gt;AutoGenerate 20;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;table3:&lt;/P&gt;
&lt;P&gt;LOAD Distinct * Resident table1;&lt;/P&gt;
&lt;P&gt;Join (table3)&lt;/P&gt;
&lt;P&gt;LOAD Distinct * Resident table2;&lt;/P&gt;
&lt;P&gt;Left Join (table3)&lt;/P&gt;
&lt;P&gt;LOAD Distinct&lt;/P&gt;
&lt;P&gt;&amp;nbsp; num1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; num2,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; num1*num2 as num3,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; RowNo() as ID3&lt;/P&gt;
&lt;P&gt;Resident table3;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Fields num1, num2 From table3;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="63099" alt="QlikCommunity_Thread_125027_Pic3.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/63099_QlikCommunity_Thread_125027_Pic3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="63088" alt="QlikCommunity_Thread_125027_Pic1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/63088_QlikCommunity_Thread_125027_Pic1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_125027_Pic2.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/63100_QlikCommunity_Thread_125027_Pic2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 21:45:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-table-with-all-possible-values-of-a-variable/m-p/739241#M676206</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-07-24T21:45:58Z</dc:date>
    </item>
  </channel>
</rss>

