<?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 How I can set a variable with value given from more table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-I-can-set-a-variable-with-value-given-from-more-table/m-p/982809#M645586</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;I have N tables with the same format, and how I want is set a Variable that will be the sum of the Column X with a particular condition.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Immagine1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/105246_Immagine1.png" style="height: auto;" /&gt;&lt;IMG alt="Immagine2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/105247_Immagine2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I would like to set in Edit script vTotAge from all table that I have.&lt;/P&gt;&lt;P&gt;Somethings like this : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Nome='Pippo') then Sum(Age) from Table1&amp;nbsp;&amp;nbsp; as TotTab1;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if(Nome='Pippo') then Sum(Age) from Table2 &lt;SPAN style="font-size: 13.3333px;"&gt;as TotTab2&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;..&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if(Nome='Pippo') then Sum(Age) from TableN &lt;SPAN style="font-size: 13.3333px;"&gt;as TotTabN&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vTotAge = TotTab1+ TotTab2+...+ TotTabN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Someone have a Solution for my Problem.&lt;/P&gt;&lt;P&gt;Thanks in advances&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Nov 2015 09:49:10 GMT</pubDate>
    <dc:creator>pascos88</dc:creator>
    <dc:date>2015-11-12T09:49:10Z</dc:date>
    <item>
      <title>How I can set a variable with value given from more table</title>
      <link>https://community.qlik.com/t5/QlikView/How-I-can-set-a-variable-with-value-given-from-more-table/m-p/982809#M645586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;I have N tables with the same format, and how I want is set a Variable that will be the sum of the Column X with a particular condition.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Immagine1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/105246_Immagine1.png" style="height: auto;" /&gt;&lt;IMG alt="Immagine2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/105247_Immagine2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I would like to set in Edit script vTotAge from all table that I have.&lt;/P&gt;&lt;P&gt;Somethings like this : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Nome='Pippo') then Sum(Age) from Table1&amp;nbsp;&amp;nbsp; as TotTab1;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if(Nome='Pippo') then Sum(Age) from Table2 &lt;SPAN style="font-size: 13.3333px;"&gt;as TotTab2&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;..&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if(Nome='Pippo') then Sum(Age) from TableN &lt;SPAN style="font-size: 13.3333px;"&gt;as TotTabN&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vTotAge = TotTab1+ TotTab2+...+ TotTabN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Someone have a Solution for my Problem.&lt;/P&gt;&lt;P&gt;Thanks in advances&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 09:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-I-can-set-a-variable-with-value-given-from-more-table/m-p/982809#M645586</guid>
      <dc:creator>pascos88</dc:creator>
      <dc:date>2015-11-12T09:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: How I can set a variable with value given from more table</title>
      <link>https://community.qlik.com/t5/QlikView/How-I-can-set-a-variable-with-value-given-from-more-table/m-p/982810#M645587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If someone can advise me other solutions for this it is good anyway.. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 09:53:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-I-can-set-a-variable-with-value-given-from-more-table/m-p/982810#M645587</guid>
      <dc:creator>pascos88</dc:creator>
      <dc:date>2015-11-12T09:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: How I can set a variable with value given from more table</title>
      <link>https://community.qlik.com/t5/QlikView/How-I-can-set-a-variable-with-value-given-from-more-table/m-p/982811#M645588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, if you have N tables with same format, would suggest do the caoncatenation of all the tables and make it one and then try sum(Age)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else do something like: &lt;STRONG&gt;aggr(sum(Age),&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Nome)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 10:38:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-I-can-set-a-variable-with-value-given-from-more-table/m-p/982811#M645588</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-12T10:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: How I can set a variable with value given from more table</title>
      <link>https://community.qlik.com/t5/QlikView/How-I-can-set-a-variable-with-value-given-from-more-table/m-p/982812#M645589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First &lt;STRONG&gt;Concatenate&lt;/STRONG&gt; all the tabels&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Nome,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Age) as Age&lt;/P&gt;&lt;P&gt;From table1&lt;/P&gt;&lt;P&gt;group by Nome&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Load Nome,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Age) as Age&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;From table2&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;group by Nome&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Now you can simply write expression in Chart as &lt;STRONG&gt;sum(Age)&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 10:48:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-I-can-set-a-variable-with-value-given-from-more-table/m-p/982812#M645589</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-11-12T10:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: How I can set a variable with value given from more table</title>
      <link>https://community.qlik.com/t5/QlikView/How-I-can-set-a-variable-with-value-given-from-more-table/m-p/982813#M645590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As stated by the people above, I would advise that you concatenate the tables together.&lt;/P&gt;&lt;P&gt;I would add a new field like&lt;/P&gt;&lt;P&gt;'Table1' As Table&lt;/P&gt;&lt;P&gt;So if needed you can pick out values from individual tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 14:32:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-I-can-set-a-variable-with-value-given-from-more-table/m-p/982813#M645590</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2015-11-12T14:32:09Z</dc:date>
    </item>
  </channel>
</rss>

