<?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 Set analysis problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/255497#M96698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I made a field with a flag to indicate if the &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;[Codigo Centro de Costo] has sales in the last year and i include this field in the&amp;nbsp; expresion&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jan 2012 14:56:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-24T14:56:42Z</dc:date>
    <item>
      <title>Set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/255491#M96692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this problem in a line graph chart, the dimension is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Expression is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Sum( {$&amp;lt;[Nombre Clasificacion Producto] = {'Platos Principales'},[Codigo Centro de Costo]={"=Sum({$&amp;lt;Año = {$(#=Only(Año)-1)},Mes={$(=$(vMesSeleccionado))}&amp;gt;}[Valor Bruto])"}&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;gt;} [Cantidad Vendida] )&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[Nombre Linea Producto] ={'Entradas'},[Codigo Centro de Costo]={"=Sum({$&amp;lt;Año = {$(#=Only(Año)-1)},Mes={$(=$(vMesSeleccionado))}&amp;gt;}[Valor Bruto])"},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Nombre Clasificacion Producto] = {'Platos Principales'}&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;gt;}&lt;/P&gt;&lt;P&gt;If(Match([Nombre Unidad de Negocio],'Cadena Gourmet')&amp;gt;0,[Cantidad Vendida] ))&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[Nombre Linea Producto] ={'Sopas'},[Codigo Centro de Costo]={"=Sum({$&amp;lt;Año = {$(#=Only(Año)-1)},Mes={$(=$(vMesSeleccionado))}&amp;gt;}[Valor Bruto])"},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Nombre Clasificacion Producto] = {'Platos Principales'}&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;gt;}If(Match([Nombre Unidad de Negocio],'Cadena Gourmet')&amp;gt;0,[Cantidad Vendida] ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[Nombre Linea Producto] ={'Complementos En Platos Principales'},[Codigo Centro de Costo]={"=Sum({$&amp;lt;Año = {$(#=Only(Año)-1)},Mes={$(=$(vMesSeleccionado))}&amp;gt;}[Valor Bruto])"},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Nombre Clasificacion Producto] = {'Platos Principales'}&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;gt;}&lt;/P&gt;&lt;P&gt;If(Match([Nombre Unidad de Negocio],'Tradicional')&amp;gt;0,[Cantidad Vendida] ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[Nombre Linea Producto] ={'Salsas Para Platos Pricipales'},[Codigo Centro de Costo]={"=Sum({$&amp;lt;Año = {$(#=Only(Año)-1)},Mes={$(=$(vMesSeleccionado))}&amp;gt;}[Valor Bruto])"},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Nombre Clasificacion Producto] = {'Platos Principales'}&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;gt;}If(Match([Nombre Unidad de Negocio],'Tradicional')&amp;gt;0,[Cantidad Vendida] )))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;[Codigo Centro de Costo]={"=Sum({$&amp;lt;Año = {$(#=Only(Año)-1)},Mes={$(=$(vMesSeleccionado))}&amp;gt;}[Valor Bruto])"},[Nombre Centro de Costo]= {'*'}-{'Eventos*'},[Valor Bruto]={'*'}-{'0'}&amp;gt;}[Codigo Centro de Costo])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is when i select more than one month, the result of expression is diferent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example if i select individual month the result is&lt;/P&gt;&lt;P&gt; Just Selected Ene - $6.783&lt;/P&gt;&lt;P&gt; Just Selected Feb - $5.423&lt;/P&gt;&lt;P&gt; Just Selected Mar - $6.151&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i selected Ene,Feb and Mar the values are: &lt;/P&gt;&lt;P&gt;Ene - $6.790&lt;/P&gt;&lt;P&gt;Feb - $5.446&lt;/P&gt;&lt;P&gt;Mar - $6.151&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem are in this part of expression [Codigo Centro de Costo]={"=Sum({$&amp;lt;Año = {$(#=Only(Año)-1)},Mes={$(=$(vMesSeleccionado))}&amp;gt;}[Valor Bruto])"} that inclue all months in every month selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 22:12:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/255491#M96692</guid>
      <dc:creator />
      <dc:date>2011-09-12T22:12:24Z</dc:date>
    </item>
    <item>
      <title>Set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/255492#M96693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to split your problem into smaller parts until you hit exactly what's causing you problems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 23:21:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/255492#M96693</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2011-09-12T23:21:38Z</dc:date>
    </item>
    <item>
      <title>Set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/255493#M96694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem of expression are in this part [Codigo Centro de Costo]={"=Sum({$&amp;lt;Año = {$(#=Only(Año)-1)},Mes={$(=$(vMesSeleccionado))}&amp;gt;}[Valor Bruto])"} becose take a [Codigo Centro de Costo] in the all month of selection by the last year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="long_text" id="result_box"&gt;&lt;SPAN style="background-color: #ffffff;" title="El objetivo de la formula es calcular la [cantidad vendia] del año actual pero en los [Codigos de centro de costo] que tuvieron venta hace un año, el problema radica en que si el punto tuvo venta hace un año en cualquiera de lo meses"&gt;The aim of the formula is to calculate the [amount he sold] the current year but in the [cost center code] who had sold a year ago, the problem is that if the point had sales last year in any of the months &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;" title="seleccionados, lo toma puesto que la suma de venta de la seleccion de dos o mas meses es mayor a cero"&gt;selected, takes it as the sum of sale of the selection of two or more months is greater than zero. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="long_text"&gt;&lt;SPAN style="background-color: #ffffff;" title="seleccionados, lo toma puesto que la suma de venta de la seleccion de dos o mas meses es mayor a cero"&gt;It's clear the problem?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example if i select individual month the result is&lt;/P&gt;&lt;P&gt; Just Selected Ene - $6.783&lt;/P&gt;&lt;P&gt; Just Selected Feb - $5.423&lt;/P&gt;&lt;P&gt; Just Selected Mar - $6.151&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i selected Ene,Feb and Mar the values are: &lt;/P&gt;&lt;P&gt;Ene - $6.790&lt;/P&gt;&lt;P&gt;Feb - $5.446&lt;/P&gt;&lt;P&gt;Mar - $6.151&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 00:59:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/255493#M96694</guid>
      <dc:creator />
      <dc:date>2011-09-13T00:59:22Z</dc:date>
    </item>
    <item>
      <title>Set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/255494#M96695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey marcos can u send that document.&lt;/P&gt;&lt;P&gt;i m able to get proper.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 08:32:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/255494#M96695</guid>
      <dc:creator>rohit214</dc:creator>
      <dc:date>2011-09-13T08:32:24Z</dc:date>
    </item>
    <item>
      <title>Set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/255495#M96696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;marcos &lt;/P&gt;&lt;P&gt;plz try this &lt;/P&gt;&lt;P&gt;(Sum( {$&amp;lt;[Nombre Clasificacion Producto] = {'Platos Principales'},[Codigo Centro de Costo]={Sum({$"&amp;lt;Año = {$(#=Only(Año)-1)},Mes={$(=$(vMesSeleccionado))}&amp;gt;"}[Valor Bruto])} &lt;/P&gt;&lt;P&gt;&amp;gt;} [Cantidad Vendida] )&lt;/P&gt;&lt;P&gt;may&amp;nbsp; be it helps you&lt;/P&gt;&lt;P&gt;and let me know&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 08:42:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/255495#M96696</guid>
      <dc:creator>rohit214</dc:creator>
      <dc:date>2011-09-13T08:42:20Z</dc:date>
    </item>
    <item>
      <title>Set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/255496#M96697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried but the expression show an error in&amp;nbsp; the first &lt;SPAN class="short_text" id="result_box"&gt;&lt;SPAN style="background-color: #ffffff;" title="parentesis"&gt;parentheses of this part &lt;/SPAN&gt;&lt;/SPAN&gt;Sum &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;&lt;STRONG&gt;( &lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;{$"&amp;lt;Año = {$(#=Only(Año)-1)},&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 12:46:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/255496#M96697</guid>
      <dc:creator />
      <dc:date>2011-09-13T12:46:44Z</dc:date>
    </item>
    <item>
      <title>Set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/255497#M96698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I made a field with a flag to indicate if the &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;[Codigo Centro de Costo] has sales in the last year and i include this field in the&amp;nbsp; expresion&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 14:56:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/255497#M96698</guid>
      <dc:creator />
      <dc:date>2012-01-24T14:56:42Z</dc:date>
    </item>
  </channel>
</rss>

