<?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: Problems with Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problems-with-Set-Analysis/m-p/1238306#M393616</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan thanks for replying, the variables are as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vRetiros = &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;0.1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vAjustes = &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;0.1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vDevolucion = &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;0.15 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vBonificacion = &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;0.15 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vFaltante = &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;0.05 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vSobrante = &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;0.05 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vMermas = &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;0.15 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vCreditos = &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;0.2 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vFueraPolSobr &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: blue;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: maroon;"&gt;sob_monto&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt; &amp;gt;= '10', &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: maroon;"&gt;sob_monto&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vFueraPolFalt &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: blue;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: maroon;"&gt;fal_monto&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt; &amp;gt;= '10', &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: maroon;"&gt;fal_monto&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vSobrMonto &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: blue;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: maroon;"&gt;sob_monto&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vFaltMonto &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: blue;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: maroon;"&gt;fal_monto&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Dec 2016 22:14:59 GMT</pubDate>
    <dc:creator>ivangarcia</dc:creator>
    <dc:date>2016-12-26T22:14:59Z</dc:date>
    <item>
      <title>Problems with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Set-Analysis/m-p/1238304#M393614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone, I have a small problem with Set Analysis that I hope someone can support me with their experience. I have the following formula applied in the following way so that it shows me the value that corresponds to the 'Distrito', but that value does not have movement in the board regardless of the selection that is made.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(Count({1&amp;lt;dto={'Distrito IE'}&amp;gt;}if(ret_cumple_politica='N',ret_importe))/Count({1&amp;lt;dto={'Distrito IE'}&amp;gt;}ret_cumple_politica))*vRetiros&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;(((Sum({1&amp;lt;aj_motivo={'SALIDA POR CONVERSION (BOTADERO)'}&amp;gt;} {1&amp;lt;dto={'Distrito IE'}&amp;gt;}aj_importe)&lt;/P&gt;&lt;P&gt;+Sum({1&amp;lt;aj_motivo={'SALIDA POR CORRECCION A AJUSTE DE INVENTARIO'}&amp;gt;} {1&amp;lt;dto={'Distrito IE'}&amp;gt;}aj_importe)-&lt;/P&gt;&lt;P&gt;(Sum({1&amp;lt;aj_motivo={'ENTRADA POR CONVERSION (BOTADERO)'}&amp;gt;} {1&amp;lt;dto={'Distrito IE'}&amp;gt;}aj_importe)&lt;/P&gt;&lt;P&gt;+Sum({1&amp;lt;aj_motivo={'ENTRADA POR CORRECCION A AJUSTE DE INVENTARIO'}&amp;gt;} {1&amp;lt;dto={'Distrito IE'}&amp;gt;}aj_importe)))/Sum({1&amp;lt;dto={'Distrito IE'}&amp;gt;}proyectado))*100)*vAjustes&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;(((Sum({1&amp;lt;dto={'Distrito IE'}&amp;gt;}dev_total))/Sum({1&amp;lt;dto={'Distrito IE'}&amp;gt;}venta_diaria))*100)*vDevolucion&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;(((Sum({1&amp;lt;dto={'Distrito IE'}&amp;gt;}bon_total))/Sum({1&amp;lt;dto={'Distrito IE'}&amp;gt;}proyectado))*100)*vBonificacion&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;((Sum({1&amp;lt;dto={'Distrito IE'}&amp;gt;}vFueraPolFalt))/(Sum({1&amp;lt;dto={'Distrito IE'}&amp;gt;}vSobrMonto)+(Sum({1&amp;lt;dto={'Distrito IE'}&amp;gt;}vFaltMonto))))*vFaltante&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;((Sum({1&amp;lt;dto={'Distrito IE'}&amp;gt;}vFueraPolSobr))/(Sum({1&amp;lt;dto={'Distrito IE'}&amp;gt;}vSobrMonto)+(Sum({1&amp;lt;dto={'Distrito IE'}&amp;gt;}vFaltMonto))))*vSobrante&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;((Sum({1&amp;lt;dto={'Distrito IE'}&amp;gt;}mer_importe))/Sum({1&amp;lt;dto={'Distrito IE'}&amp;gt;}proyectado)*100)*vMermas&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;(SUM({1&amp;lt;dto={'Distrito IE'}&amp;gt;}cte_saldo)*100/sum({1&amp;lt;dto={'Distrito IE'}&amp;gt;}venta_diaria)*vCreditos)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the value is modified with any selection, and the indicator is required to be static.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In advance I am grateful for the support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Dec 2016 19:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Set-Analysis/m-p/1238304#M393614</guid>
      <dc:creator>ivangarcia</dc:creator>
      <dc:date>2016-12-26T19:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Set-Analysis/m-p/1238305#M393615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's the definition of all your variables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Dec 2016 21:16:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Set-Analysis/m-p/1238305#M393615</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-12-26T21:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Set-Analysis/m-p/1238306#M393616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan thanks for replying, the variables are as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vRetiros = &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;0.1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vAjustes = &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;0.1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vDevolucion = &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;0.15 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vBonificacion = &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;0.15 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vFaltante = &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;0.05 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vSobrante = &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;0.05 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vMermas = &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;0.15 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vCreditos = &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;0.2 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vFueraPolSobr &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: blue;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: maroon;"&gt;sob_monto&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt; &amp;gt;= '10', &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: maroon;"&gt;sob_monto&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vFueraPolFalt &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: blue;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: maroon;"&gt;fal_monto&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt; &amp;gt;= '10', &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: maroon;"&gt;fal_monto&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vSobrMonto &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: blue;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: maroon;"&gt;sob_monto&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vFaltMonto &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: blue;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: maroon;"&gt;fal_monto&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Dec 2016 22:14:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Set-Analysis/m-p/1238306#M393616</guid>
      <dc:creator>ivangarcia</dc:creator>
      <dc:date>2016-12-26T22:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Set-Analysis/m-p/1238307#M393617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I really understand what you are trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently see some potential issues with your expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- If you create a variable like&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;vFaltMonto &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: blue;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;fal_monto&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Arial, sans-serif; font-size: 9pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then I don't understand why you are using this variable in &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(Sum({1&amp;lt;dto={'Distrito IE'}&amp;gt;}vFaltMonto))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Are you trying to sum a constant value? Maybe you need to apply the set analysis also to the aggregation in the variable definition then, if you want to keep it constant regardless of selections.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;- You sometimes use two set expressions in one aggregation, like in&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(Sum(&lt;STRONG&gt;{1&amp;lt;aj_motivo={'SALIDA POR CONVERSION (BOTADERO)'}&amp;gt;} {1&amp;lt;dto={'Distrito IE'}&amp;gt;}&lt;/STRONG&gt;aj_importe)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I don't think this will work as expexted, if you want to apply both filters, you should use&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(Sum(&lt;STRONG&gt;{1&amp;lt;aj_motivo={'SALIDA POR CONVERSION (BOTADERO)'}, dto={'Distrito IE'}&amp;gt;}&lt;/STRONG&gt;aj_importe)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2016 00:37:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Set-Analysis/m-p/1238307#M393617</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-12-27T00:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Set-Analysis/m-p/1238308#M393618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The variables I am using in this case to simplify the syntax of the formulas.&lt;/P&gt;&lt;P&gt;If I have used both options that you show me at the end, but in both cases the result is influenced by the selection that is made.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previously I had the following formula,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Num(((((Count({1&amp;lt;dto={'Distrito ID'}&amp;gt;}if(ret_cumple_politica='N',ret_importe))/Count({1&amp;lt;dto={'Distrito ID'}&amp;gt;}ret_cumple_politica))*vRetiros //RETIROS&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;Sum({1&amp;lt;dto={'Distrito ID'}&amp;gt;}aj_importe)*100/Sum({1&amp;lt;dto={'Distrito ID'}&amp;gt;}venta_diaria)/100*vAjustes //AJUSTES&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;Sum({1&amp;lt;dto={'Distrito ID'}&amp;gt;}dev_total)*100)/Sum({1&amp;lt;dto={'Distrito ID'}&amp;gt;}venta_diaria)/100*vDevolucion //DEVOLUCIONES&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;Sum({1&amp;lt;dto={'Distrito ID'}&amp;gt;}bon_total)*100/Sum({1&amp;lt;dto={'Distrito ID'}&amp;gt;}venta_diaria)/100*vBonificacion //BONIFICACIÓN&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;Sum({1&amp;lt;dto={'Distrito ID'}&amp;gt;}fal_tipo='FALTANTE' AND fal_monto &amp;gt;= 10)*-1/100*vFaltante //FALTANTE&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;Sum({1&amp;lt;dto={'Distrito ID'}&amp;gt;} sob_tipo ='SOBRANTE'AND sob_monto &amp;gt;= 10)*-1/100*vSobrante //SOBRANTE&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;Sum({1&amp;lt;dto={'Distrito ID'}&amp;gt;} mer_importe)*100/Sum({1&amp;lt;dto={'Distrito ID'}&amp;gt;} venta_diaria)/100*vMermas //MERMAS&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;SUM({1&amp;lt;dto={'Distrito ID'}&amp;gt;}cte_saldo)*100/sum({1&amp;lt;dto={'Distrito ID'}&amp;gt;}venta_diaria)*vCreditos)/7)*100,'##.##%') //CREDITOS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the Set Analysis worked correctly, but I had to change it and that's when the problems started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I'm doing a bad practice with the variables, but what I want is to simplify the formulas. If so, I would like to know some other option to avoid using the variables for this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2016 20:38:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Set-Analysis/m-p/1238308#M393618</guid>
      <dc:creator>ivangarcia</dc:creator>
      <dc:date>2016-12-27T20:38:22Z</dc:date>
    </item>
  </channel>
</rss>

