<?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 Create a new field in script using fields of different tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-a-new-field-in-script-using-fields-of-different-tables/m-p/322521#M1197301</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My intention is to create a field "Rotación" calculated like:&lt;/P&gt;&lt;P&gt;(sum({&amp;lt;[Luogo spedizione]={'6a01'}&amp;gt;}Venta)/sum([Qtà stk. val.]))&lt;/P&gt;&lt;P&gt;The problem is that the two fields used in the expression are being loaded from different tables.&lt;/P&gt;&lt;P&gt;How should i introduce the expression and where??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Apr 2011 13:44:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-18T13:44:28Z</dc:date>
    <item>
      <title>Create a new field in script using fields of different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-new-field-in-script-using-fields-of-different-tables/m-p/322518#M1197298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="ForumPostBody"&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am use a Qlikview which loads fields from different files. I have a file that has the inventory of every month, i load one table per month:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;LOAD&lt;/B&gt; Año,&lt;/P&gt;&lt;P&gt;Mes,&lt;/P&gt;&lt;P&gt;Materiale,&lt;/P&gt;&lt;P&gt;[Qtà stk. val.],&lt;/P&gt;&lt;P&gt;[Valore stk. v.]&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;O&gt;&lt;/O&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [Inventario mes])&lt;/P&gt;&lt;P&gt;Also i have a file that loads the sells of every month per product:&lt;/P&gt;&lt;P&gt;&lt;B&gt;LOAD&lt;/B&gt; Materiale,&lt;/P&gt;&lt;P&gt;IF(WildMatch([Anno cal./mese],'GEN*'), 'Enero',&lt;/P&gt;&lt;P&gt;IF(WildMatch([Anno cal./mese],'FEB*'), 'Febrero',&lt;/P&gt;&lt;P&gt;IF(WildMatch([Anno cal./mese],'MAR*'), 'Marzo',&lt;/P&gt;&lt;P&gt;IF(WildMatch([Anno cal./mese],'APR*'), 'Abril',&lt;/P&gt;&lt;P&gt;IF(WildMatch([Anno cal./mese],'MAG*'), 'Mayo',&lt;/P&gt;&lt;P&gt;IF(WildMatch([Anno cal./mese],'GIU*'), 'Junio',&lt;/P&gt;&lt;P&gt;IF(WildMatch([Anno cal./mese],'LUG*'), 'Julio',&lt;/P&gt;&lt;P&gt;IF(WildMatch([Anno cal./mese],'AGO*'), 'Agosto',&lt;/P&gt;&lt;P&gt;IF(WildMatch([Anno cal./mese],'SET*'), 'Septiembre',&lt;/P&gt;&lt;P&gt;IF(WildMatch([Anno cal./mese],'OTT*'), 'Octubre',&lt;/P&gt;&lt;P&gt;IF(WildMatch([Anno cal./mese],'NOV*'), 'Noviembre',&lt;/P&gt;&lt;P&gt;IF(WildMatch([Anno cal./mese],'DIC*'), 'Diciembre','ERROR')))))))))))) &lt;B&gt;as&lt;/B&gt; Mes,&lt;/P&gt;&lt;P&gt;IF(WildMatch([Anno cal./mese],'*200*') &lt;B&gt;or&lt;/B&gt; WildMatch([Anno cal./mese],'*199*'),'Antiguo',&lt;/P&gt;&lt;P&gt;IF(WildMatch([Anno cal./mese],'*2010'),'2010',&lt;/P&gt;&lt;P&gt;IF(WildMatch([Anno cal./mese],'*2011'),'2011',&lt;/P&gt;&lt;P&gt;IF(WildMatch([Anno cal./mese],'*2012'),'2012',&lt;/P&gt;&lt;P&gt;IF(WildMatch([Anno cal./mese],'*2013'),'2013',&lt;/P&gt;&lt;P&gt;IF(WildMatch([Anno cal./mese],'*2014'),'2014',&lt;/P&gt;&lt;P&gt;IF(WildMatch([Anno cal./mese],'*2015'),'2015','Actualizar Scrpit'))))))) &lt;B&gt;as&lt;/B&gt; Año,&lt;/P&gt;&lt;P&gt;[Quantità PF] &lt;B&gt;as&lt;/B&gt; Venta,&lt;/P&gt;&lt;P&gt;[Luogo di spedizione]&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;O&gt;&lt;/O&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Hoja1$);&lt;/P&gt;&lt;P&gt;I want to create a field called &lt;STRONG&gt;'Rotación'&lt;/STRONG&gt; which is calculated as: --&amp;gt; (Venta/[Qtà stk. val.])&lt;/P&gt;&lt;P&gt;This field &lt;STRONG&gt;'Rotación'&lt;/STRONG&gt; has to be the sales (Venta) of a specific Year(Año) &amp;amp; Month(Mes) divided by the stock amount ([Qtà stk. val.]) of the same Year &amp;amp; Month. Also observe that the Month &amp;amp; Year, in the sales file, are calculated fields (to make it them same format as the month in the inventory file)&lt;/P&gt;&lt;P&gt;As the two fields that appear in the formula are provided from different files, i don't know how to make it in the script. Help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time!!&lt;/P&gt;&lt;DIV style="CLEAR: both"&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 10:56:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-new-field-in-script-using-fields-of-different-tables/m-p/322518#M1197298</guid>
      <dc:creator />
      <dc:date>2011-04-18T10:56:30Z</dc:date>
    </item>
    <item>
      <title>Create a new field in script using fields of different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-new-field-in-script-using-fields-of-different-tables/m-p/322519#M1197299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do you want to do this in your script and not in Qlikview itself?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martijn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 12:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-new-field-in-script-using-fields-of-different-tables/m-p/322519#M1197299</guid>
      <dc:creator />
      <dc:date>2011-04-18T12:27:43Z</dc:date>
    </item>
    <item>
      <title>Create a new field in script using fields of different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-new-field-in-script-using-fields-of-different-tables/m-p/322520#M1197300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;can u a little bit more clear about your requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 12:34:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-new-field-in-script-using-fields-of-different-tables/m-p/322520#M1197300</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2011-04-18T12:34:45Z</dc:date>
    </item>
    <item>
      <title>Create a new field in script using fields of different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-new-field-in-script-using-fields-of-different-tables/m-p/322521#M1197301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My intention is to create a field "Rotación" calculated like:&lt;/P&gt;&lt;P&gt;(sum({&amp;lt;[Luogo spedizione]={'6a01'}&amp;gt;}Venta)/sum([Qtà stk. val.]))&lt;/P&gt;&lt;P&gt;The problem is that the two fields used in the expression are being loaded from different tables.&lt;/P&gt;&lt;P&gt;How should i introduce the expression and where??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 13:44:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-new-field-in-script-using-fields-of-different-tables/m-p/322521#M1197301</guid>
      <dc:creator />
      <dc:date>2011-04-18T13:44:28Z</dc:date>
    </item>
  </channel>
</rss>

