<?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 Restar Expresiones en el Total in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Restar-Expresiones-en-el-Total/m-p/735483#M721093</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amigos de la comunidad buenos días, esta es mi primera solicitud de ayuda por este medio,estoy intentando en una tabla pivotante restar los valores de las expresiones, por defecto el sistema los suma pero yo requiero la diferencia del año 2014 contra el 2013 para medir el cumplimiento de los vendedores:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="320"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="80"&gt;Cliente&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-left: none;" width="80"&gt;2013&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-left: none;" width="80"&gt;2014&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt;Diferencia&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Juan&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;5,000,000&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;5,000,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Pedro&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2,500,000&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1,500,000&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;-1,000,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Ismael&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;10,000,000&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;8,500,000&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;-1,500,000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2013 y 2014 los obtengo como dimensión desde un campo fecha Year(fechadocumento), he visto en otros hilos que usan la función dimensionality y ColumNo pero no he podido obtener el valor correcto, siempre me los suma.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;esta es la formula que he probado, if(dimensionality=0, column(2)-column(1),sum(valorventa))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;también encontré esta formula en otro hilo de la comunidad y tampoco me funciona :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;ColumnNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;() = 0, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Año&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = {2012}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Valor&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Año&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = {2011}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Valor&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Valor&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cualquier ayuda se los agradezco de antemano.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Oct 2014 16:37:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-30T16:37:11Z</dc:date>
    <item>
      <title>Restar Expresiones en el Total</title>
      <link>https://community.qlik.com/t5/QlikView/Restar-Expresiones-en-el-Total/m-p/735483#M721093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amigos de la comunidad buenos días, esta es mi primera solicitud de ayuda por este medio,estoy intentando en una tabla pivotante restar los valores de las expresiones, por defecto el sistema los suma pero yo requiero la diferencia del año 2014 contra el 2013 para medir el cumplimiento de los vendedores:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="320"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="80"&gt;Cliente&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-left: none;" width="80"&gt;2013&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-left: none;" width="80"&gt;2014&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt;Diferencia&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Juan&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;5,000,000&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;5,000,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Pedro&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2,500,000&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1,500,000&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;-1,000,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Ismael&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;10,000,000&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;8,500,000&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;-1,500,000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2013 y 2014 los obtengo como dimensión desde un campo fecha Year(fechadocumento), he visto en otros hilos que usan la función dimensionality y ColumNo pero no he podido obtener el valor correcto, siempre me los suma.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;esta es la formula que he probado, if(dimensionality=0, column(2)-column(1),sum(valorventa))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;también encontré esta formula en otro hilo de la comunidad y tampoco me funciona :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;ColumnNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;() = 0, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Año&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = {2012}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Valor&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Año&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = {2011}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Valor&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Valor&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cualquier ayuda se los agradezco de antemano.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 16:37:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restar-Expresiones-en-el-Total/m-p/735483#M721093</guid>
      <dc:creator />
      <dc:date>2014-10-30T16:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Restar Expresiones en el Total</title>
      <link>https://community.qlik.com/t5/QlikView/Restar-Expresiones-en-el-Total/m-p/1740809#M721094</link>
      <description>&lt;P&gt;Good Afternoon&lt;/P&gt;&lt;P&gt;I just wanted to know, if you were able to solve the problem, if you did, can you please tell me how you solved it?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 21:24:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restar-Expresiones-en-el-Total/m-p/1740809#M721094</guid>
      <dc:creator>Rosario_Aguilar</dc:creator>
      <dc:date>2020-09-02T21:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Restar Expresiones en el Total</title>
      <link>https://community.qlik.com/t5/QlikView/Restar-Expresiones-en-el-Total/m-p/1740832#M721095</link>
      <description>&lt;P&gt;Hola! Si necesitas hacer ese tipo de restas te recomiendo que no uses el pivote ya que esos son columnas que se generan con los datos de un campo.&lt;/P&gt;&lt;P&gt;Si pudieras mostrarme como se ve tu tabla en Qlik te podría ayudar un poco más. Pero te recomiendo hacer una tabla simple para eso.&lt;/P&gt;&lt;P&gt;Saludos!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 22:51:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restar-Expresiones-en-el-Total/m-p/1740832#M721095</guid>
      <dc:creator>uroboros</dc:creator>
      <dc:date>2020-09-02T22:51:48Z</dc:date>
    </item>
  </channel>
</rss>

