<?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 Creating a new field on script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-new-field-on-script/m-p/322137#M1198192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Apr 2011 16:13:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-15T16:13:53Z</dc:date>
    <item>
      <title>Creating a new field on script</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-new-field-on-script/m-p/322137#M1198192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 16:13:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-new-field-on-script/m-p/322137#M1198192</guid>
      <dc:creator />
      <dc:date>2011-04-15T16:13:53Z</dc:date>
    </item>
    <item>
      <title>Creating a new field on script</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-new-field-on-script/m-p/322138#M1198193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alberto&lt;/P&gt;&lt;P&gt;I don't understand why you have to create a new field in the script. I think it's better to display the rotation in a chart.&lt;/P&gt;&lt;P&gt;I suggest you to create a field date for each file :&lt;/P&gt;&lt;P&gt;From inventory : Makedate( Ano , Mes , 1 ) as Date&lt;/P&gt;&lt;P&gt;From sale : Makedate ( Year([Anno cal./mese]) , Month([Anno cal./mese]) , 1) as Date&lt;/P&gt;&lt;P&gt;So your 2 table are now linked by the date field.&lt;/P&gt;&lt;P&gt;Then create a chart with&lt;/P&gt;&lt;P&gt;Dimension : MonthNames (Date)&lt;/P&gt;&lt;P&gt;Expression : Sum (Venta) / Sum( [Qtà stk. val.])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 20:03:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-new-field-on-script/m-p/322138#M1198193</guid>
      <dc:creator />
      <dc:date>2011-04-15T20:03:17Z</dc:date>
    </item>
    <item>
      <title>Creating a new field on script</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-new-field-on-script/m-p/322139#M1198194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I already have my Qlikview with few charts using the &lt;STRONG&gt;"Rotación"&lt;/STRONG&gt; as expression. The fact is that "Rotación" is the most important parametre in my study, and i have to make pivot tables, charts and i also want to be able to select intervals in my "Rotacion" parameter.&lt;/P&gt;&lt;P&gt;If i achieve to create "Rotación" as a field, it would simplify my Qlikview giving me more options for study.&lt;/P&gt;&lt;P&gt;Does someone know how to create the field "Rotación" in the initial script??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your time!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 08:08:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-new-field-on-script/m-p/322139#M1198194</guid>
      <dc:creator />
      <dc:date>2011-04-18T08:08:13Z</dc:date>
    </item>
  </channel>
</rss>

