<?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: Campo  calculado en el script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Campo-calculado-en-el-script/m-p/204329#M1209084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ajaja 3 años despues no haz posteado nada, creo que si te funciono, pero cual??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Aug 2012 16:06:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-09T16:06:07Z</dc:date>
    <item>
      <title>Campo  calculado en el script</title>
      <link>https://community.qlik.com/t5/QlikView/Campo-calculado-en-el-script/m-p/204323#M1209078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt; &lt;w:WordDocument&gt;  &lt;w:View&gt;Normal&lt;/w:View&gt;  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;  &lt;w:HyphenationZone&gt;21&lt;/w:HyphenationZone&gt;  &lt;w:PunctuationKerning&gt;&lt;/w:PunctuationKerning&gt;  &lt;w:ValidateAgainstSchemas&gt;&lt;/w:ValidateAgainstSchemas&gt;  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;  &lt;w:Compatibility&gt;   &lt;w:BreakWrappedTables&gt;&lt;/w:BreakWrappedTables&gt;   &lt;w:SnapToGridInCell&gt;&lt;/w:SnapToGridInCell&gt;   &lt;w:WrapTextWithPunct&gt;&lt;/w:WrapTextWithPunct&gt;   &lt;w:UseAsianBreakRules&gt;&lt;/w:UseAsianBreakRules&gt;   &lt;w:DontGrowAutofit&gt;&lt;/w:DontGrowAutofit&gt;  &lt;/w:Compatibility&gt;  &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt; &lt;/w:WordDocument&gt;&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt; &lt;w:LatentStyles DefLockedState="false" LatentStyleCount="156"&gt; &lt;/w:LatentStyles&gt;&lt;/xml&gt;&lt;![endif]--&gt; &lt;!--[if gte mso 10]&gt;&lt;style&gt; /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Tabla normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;}&lt;/style&gt;&lt;![endif]--&gt;&lt;/P&gt;&lt;P&gt;Hola a Todos.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Necesito saber como generar un campo calculado en el script a partir de campos que dos o más tablas que ya se encuentran cargadas en el script.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;LOAD&lt;/B&gt; VentasNro,&lt;/P&gt;&lt;P style="margin-left: 35.4pt; text-indent: 35.4pt;"&gt;TurnoTrabEncTId,&lt;/P&gt;&lt;P style="margin-left: 35.4pt; text-indent: 35.4pt;"&gt;HabitacionesId,&lt;/P&gt;&lt;P style="margin-left: 35.4pt; text-indent: 35.4pt;"&gt;VentasTarifaId,&lt;/P&gt;&lt;P style="margin-left: 35.4pt; text-indent: 35.4pt;"&gt;&lt;B&gt;VentasTarifaCosto&lt;/B&gt;&lt;B&gt;,&lt;/B&gt;&lt;/P&gt;&lt;P style="margin-left: 35.4pt; text-indent: 35.4pt;"&gt;VentasTarifaHoras,&lt;/P&gt;&lt;P style="text-indent: 35.4pt;"&gt;&lt;B&gt;SQL&lt;/B&gt; &lt;B&gt;SELECT&lt;/B&gt; *&lt;/P&gt;&lt;P style="text-indent: 35.4pt;"&gt;&lt;B&gt;FROM&lt;/B&gt; XPressCopia.dbo.VENTASVENTASHABITACIONES;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-indent: 35.4pt;"&gt;&lt;B&gt;LOAD&lt;/B&gt; VentasNro,&lt;/P&gt;&lt;P style="margin-left: 35.4pt; text-indent: 35.4pt;"&gt;TurnoTrabEncTId,&lt;/P&gt;&lt;P style="margin-left: 35.4pt; text-indent: 35.4pt;"&gt;VentasRenglonArt,&lt;/P&gt;&lt;P style="margin-left: 35.4pt; text-indent: 35.4pt;"&gt;VentasRenglonArtPU,&lt;/P&gt;&lt;P style="margin-left: 35.4pt; text-indent: 35.4pt;"&gt;VentasRenglonArtCant,&lt;/P&gt;&lt;P style="margin-left: 35.4pt; text-indent: 35.4pt;"&gt;&lt;B&gt;VentasRenglonArtTotLin&lt;/B&gt;&lt;B&gt;,&lt;/B&gt;&lt;/P&gt;&lt;P style="margin-left: 35.4pt; text-indent: 35.4pt;"&gt;InsumosCod,&lt;/P&gt;&lt;P&gt;&lt;B&gt;SQL&lt;/B&gt; &lt;B&gt;SELECT&lt;/B&gt; *&lt;/P&gt;&lt;P&gt;&lt;B&gt;FROM&lt;/B&gt; XPressCopia.dbo.VENTASVENTASRENGLONARTICULOS;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-indent: 35.4pt;"&gt;&lt;B&gt;LOAD&lt;/B&gt; VentasNro,&lt;/P&gt;&lt;P style="margin-left: 35.4pt; text-indent: 35.4pt;"&gt;TurnoTrabEncTId,&lt;/P&gt;&lt;P style="margin-left: 35.4pt; text-indent: 35.4pt;"&gt;ClientesId,&lt;/P&gt;&lt;P style="margin-left: 35.4pt; text-indent: 35.4pt;"&gt;VentasPatente,&lt;/P&gt;&lt;P style="margin-left: 35.4pt; text-indent: 35.4pt;"&gt;VentasOtraIdentificacion,&lt;/P&gt;&lt;P style="margin-left: 35.4pt; text-indent: 35.4pt;"&gt;&lt;B&gt;VentasDescuentos&lt;/B&gt;&lt;B&gt;,&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;SQL&lt;/B&gt; &lt;B&gt;SELECT&lt;/B&gt; *&lt;/P&gt;&lt;P&gt;&lt;B&gt;FROM&lt;/B&gt; XPressCopia.dbo.VENTAS;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;UL&gt;&lt;LI&gt;&lt;P&gt;La idea sumar los campos VentasTarifaCosto + VentasRenglonArtTotLin - VentasDescuentos.&lt;BR /&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Pero no se como llamar a los campos de tres tablas distintas y que cuando ejecute la aplicación los encuentre.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Desde ya gracias&lt;/P&gt;&lt;P&gt;Ale&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2009 22:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Campo-calculado-en-el-script/m-p/204323#M1209078</guid>
      <dc:creator>qvale</dc:creator>
      <dc:date>2009-11-13T22:40:48Z</dc:date>
    </item>
    <item>
      <title>Campo  calculado en el script</title>
      <link>https://community.qlik.com/t5/QlikView/Campo-calculado-en-el-script/m-p/204324#M1209079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hola Ale, consulta, no es mas facil hacer join's de SQL y eso llamarlo desde QV? o necesitas las tablas sueltas?&lt;/P&gt;&lt;P&gt;si puedes joinearlas seria algo asi&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Load&lt;BR /&gt; *, //esto es porque no se que campos necesitas&lt;BR /&gt; VentasTarifaCosto + VentasRenglonArtTotLin - VentasDescuentos as tucampo&lt;BR /&gt;;&lt;BR /&gt;SQL&lt;BR /&gt; Select&lt;BR /&gt; tabla1.*,&lt;BR /&gt; tabla2.*,&lt;BR /&gt; tabla3.*&lt;BR /&gt; from tabla1&lt;BR /&gt; inner join tabla2 on campo1 = campo2&lt;BR /&gt; inner join tabla3 on campo1 = campo3 ;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;prueba y me cuentas saludos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2009 22:51:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Campo-calculado-en-el-script/m-p/204324#M1209079</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2009-11-13T22:51:47Z</dc:date>
    </item>
    <item>
      <title>Campo  calculado en el script</title>
      <link>https://community.qlik.com/t5/QlikView/Campo-calculado-en-el-script/m-p/204325#M1209080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;Normal 0 21 false false false MicrosoftInternetExplorer4 &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;Normal 0 21 false false false MicrosoftInternetExplorer4 &lt;P&gt;&lt;/P&gt;&lt;P&gt;Hola Héctor gracias por responder. La verdad es que no quisiera generar una tabla que haga una unión de las tres. Lo que quiero es saber si hay alguna forma de al crear el Campo (&lt;CODE&gt;&lt;I&gt;VentasTarifaCosto + VentasRenglonArtTotLin - VentasDescuentos&lt;/I&gt;&lt;/CODE&gt;&lt;CODE&gt;&lt;B&gt;as&lt;/B&gt;&lt;/CODE&gt; &lt;CODE&gt;&lt;I&gt;VentasNetas&lt;/I&gt;&lt;/CODE&gt;&lt;CODE&gt;") y que al ejecutar el script, encuentre los campos en las tablas que ya habían sido cargadas anteriormente en el Script.&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saludos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ale&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Nov 2009 00:30:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Campo-calculado-en-el-script/m-p/204325#M1209080</guid>
      <dc:creator>qvale</dc:creator>
      <dc:date>2009-11-14T00:30:28Z</dc:date>
    </item>
    <item>
      <title>Campo  calculado en el script</title>
      <link>https://community.qlik.com/t5/QlikView/Campo-calculado-en-el-script/m-p/204326#M1209081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hola,&lt;/P&gt;&lt;P&gt;bueno como quieres un campo que sume desde 3 tablas, tienes 2 alternativas: joinearlas o usar funciones mapping/applymap o lookup (ya la opcion 1 no corre &lt;IMG alt="Stick out tongue" src="http://community.qlik.com/emoticons/emotion-4.gif" /&gt;)&lt;/P&gt;&lt;P&gt;estan bien documentadas en el manual, pero si no te funciona posteame de nuevo y ahi vemos como te ayudo &lt;IMG alt="Wink" src="http://community.qlik.com/emoticons/emotion-5.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;saludos y suerte.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Nov 2009 00:42:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Campo-calculado-en-el-script/m-p/204326#M1209081</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2009-11-14T00:42:04Z</dc:date>
    </item>
    <item>
      <title>Campo  calculado en el script</title>
      <link>https://community.qlik.com/t5/QlikView/Campo-calculado-en-el-script/m-p/204327#M1209082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;Creo que lo puedes hacer perfectamente utilizando una variable (por ejemplo) con el valor de los distintos campos:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LET vSuma=VentasTarifaCosto+VentasRenglonArtTotLin-VentasDescuentos&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Espero que te sirva.&lt;/P&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Nov 2009 01:48:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Campo-calculado-en-el-script/m-p/204327#M1209082</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2009-11-14T01:48:41Z</dc:date>
    </item>
    <item>
      <title>Campo  calculado en el script</title>
      <link>https://community.qlik.com/t5/QlikView/Campo-calculado-en-el-script/m-p/204328#M1209083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gracias voy a ver cual de las opciones que me pasaron funciona y les cuento. Saludos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Nov 2009 19:35:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Campo-calculado-en-el-script/m-p/204328#M1209083</guid>
      <dc:creator>qvale</dc:creator>
      <dc:date>2009-11-14T19:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Campo  calculado en el script</title>
      <link>https://community.qlik.com/t5/QlikView/Campo-calculado-en-el-script/m-p/204329#M1209084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ajaja 3 años despues no haz posteado nada, creo que si te funciono, pero cual??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 16:06:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Campo-calculado-en-el-script/m-p/204329#M1209084</guid>
      <dc:creator />
      <dc:date>2012-08-09T16:06:07Z</dc:date>
    </item>
  </channel>
</rss>

