<?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: Dynamic calculation in table possible? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-calculation-in-table-possible/m-p/553589#M1133151</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;Do you have an example to demonstrate this, using the example above?&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;Cornelis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Oct 2013 08:51:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-31T08:51:24Z</dc:date>
    <item>
      <title>Dynamic calculation in table possible?</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-calculation-in-table-possible/m-p/553587#M1133149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;Dear All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Could you please tell &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;me whether a dynamic calculation is possible?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;Imagine I have a table like this (in script editor):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt; &lt;SPAN style="color: #0000ff;"&gt;Table1:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp; Load * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp; Var1, Var2, Var3,Var4,Var5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp; 1,5,6,5,7&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp; 2,6,8,1,9&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp; 10,5,8,2,9&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp; ];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Table2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp; LOAD (Var1 + Var2 +Var3) as [sum all var]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt; Resident Table1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;This simple situation becomes complex when&lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;Table1 has 500 columns from Var1 up to Var500&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;Table1 has different column names, so Var1 = Thickness, Var2 = Spreadability&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;The sum of Var1..,.Var500 varies depending on the data structure and user selection&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;and as a consequence not all columns will be concerned in computation e.g. (Var1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #575757;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;+ Var2) as [sum all var],&amp;nbsp; (Var12 + Var13 &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;+ Var273 + Var303) as [sum all var] etc. a LOT of possibilities.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;As you may see, this is an example of dynamic environment. I suppose that this can be solved with a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;macro program but I’m not very sure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;Can you please demonstrate it how to solve this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;Thanks and best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;Cornelis&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 07:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-calculation-in-table-possible/m-p/553587#M1133149</guid>
      <dc:creator />
      <dc:date>2013-10-31T07:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic calculation in table possible?</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-calculation-in-table-possible/m-p/553588#M1133150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of variables, it would be perhaps better to handle these as values of dimension.&lt;/P&gt;&lt;P&gt;var1, ..., var500 could become values of a dimension that you will sum up by selecting them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 08:32:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-calculation-in-table-possible/m-p/553588#M1133150</guid>
      <dc:creator />
      <dc:date>2013-10-31T08:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic calculation in table possible?</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-calculation-in-table-possible/m-p/553589#M1133151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;Do you have an example to demonstrate this, using the example above?&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;Cornelis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 08:51:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-calculation-in-table-possible/m-p/553589#M1133151</guid>
      <dc:creator />
      <dc:date>2013-10-31T08:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic calculation in table possible?</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-calculation-in-table-possible/m-p/553590#M1133152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13832120362177164" jivemacro_uid="_13832120362177164"&gt;
&lt;P&gt;Table1:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Load rowno() as row, * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Var1, Var2, Var3,Var4,Var5&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 1,5,6,5,7&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 2,6,8,1,9&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 10,5,8,2,9&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Temp:&lt;/P&gt;
&lt;P&gt;CrossTable(Var,Value)&lt;/P&gt;
&lt;P&gt;load&amp;nbsp; * Resident Table1; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;join(Table1)&lt;/P&gt;
&lt;P&gt;load row, sum(Value) as [sum all var]&lt;/P&gt;
&lt;P&gt;Resident Temp&lt;/P&gt;
&lt;P&gt;group by row;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;drop table Temp;&lt;/P&gt;
&lt;P&gt;drop field row;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 09:33:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-calculation-in-table-possible/m-p/553590#M1133152</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-31T09:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic calculation in table possible?</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-calculation-in-table-possible/m-p/553591#M1133153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that is the answer where I'm looking for!&lt;/P&gt;&lt;P&gt;The crosstable option is the best to handle columns in a dynamic environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cornelis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 11:29:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-calculation-in-table-possible/m-p/553591#M1133153</guid>
      <dc:creator />
      <dc:date>2013-10-31T11:29:24Z</dc:date>
    </item>
  </channel>
</rss>

