<?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: Set analysis and variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-variables/m-p/539199#M1122628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable definition was correct, but the expression has to be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum({&amp;lt;idFechaReserva={"&amp;lt;=$(=$(vIdFechaComparativa))"}&amp;gt;}MontoPagado)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jan 2014 20:03:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-20T20:03:30Z</dc:date>
    <item>
      <title>Set analysis and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-variables/m-p/539194#M1122623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, im trying to build an expression with a variable but is not working.&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;idFechaReserva={"&amp;lt;=$(=vIdFechaComparativa)"}&amp;gt;}MontoPagado).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The strange thing is that when i try with&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;idFechaReserva={"&amp;lt;=20131010"}&amp;gt;}MontoPagado)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its works, and the variable vIdFechaComparativa is difine like NUM(replace(date(vFechaComparativa,'YYYY-MM-DD'),'-',''))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What im doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 19:33:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-variables/m-p/539194#M1122623</guid>
      <dc:creator />
      <dc:date>2014-01-20T19:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-variables/m-p/539195#M1122624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Try below as your variable instead. &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;"&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;"&gt;dual(r&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;eplace(date(vFechaComparativa,'YYYY-MM-DD'),'-',''),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vFechaComparativa&lt;/SPAN&gt;)&lt;/SPAN&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;"&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;"&gt; I believe the replace function defines the result as&amp;nbsp; text so &amp;gt;= would not work in your set analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 19:46:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-variables/m-p/539195#M1122624</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-20T19:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-variables/m-p/539196#M1122625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try defining vldFechaComparativa as:&lt;/P&gt;&lt;P&gt;NUM(date($(vFechaComparativa),'YYYY-MM-DD'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NUM(date#($(vFechaComparativa),'YYYY-MM-DD'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And make your expression:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;idFechaReserva={"&amp;lt;=$(=$(vIdFechaComparativa))"}&amp;gt;}MontoPagado)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 19:48:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-variables/m-p/539196#M1122625</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-20T19:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-variables/m-p/539197#M1122626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess, it's all about dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression is strange:&lt;/P&gt;&lt;P&gt;=NUM(replace(date(vFechaComparativa,'YYYY-MM-DD'),'-',''))&lt;/P&gt;&lt;P&gt;First, you change text date format to 'YYYY-MM-DD' then manually remove '-' and get text YYYYMMDD.&lt;/P&gt;&lt;P&gt;After that you use a function that is supposed to change text format (of dual) to numeric. I guess it returns null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to rewrite the expression to use numerical comparison in set analysis:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;idFechaReserva={"&lt;STRONG&gt;=idFechaReserva&lt;/STRONG&gt;&amp;lt;=$(=vIdFechaComparativa)"}&amp;gt;}MontoPagado)&lt;/P&gt;&lt;P&gt;And variable =NUM(date#($(vFechaComparativa),'YYYY-MM-DD') ) assuming that&amp;nbsp; vFechaComparativa contains date as simple text.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 20:00:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-variables/m-p/539197#M1122626</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-01-20T20:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-variables/m-p/539198#M1122627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Augusto,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum({&amp;lt;idFechaReserva={"&amp;lt;='$(=Date(vIdFechaComparativa))' "}&amp;gt;}MontoPagado).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;I have a similar case and made a simple example with this formula.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;sum({&amp;lt;Fecha={'$(=Date(Max(Fecha)))'}&amp;gt;}Venta)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;See attached document.&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;"&gt;Best regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;Y como veo que usas expresiones en español va una breve explicación en español... en el set analysis debemos poner entre comillas simples el valor de fecha pues sino no lo reconoce qlikview además de darle formato de fecha sino lo toma como numero y al intentar buscarlo dentro de nuestro campo Fecha se confunde. En el archivo adjunto esta la expresión que use y la deje sin etiqueta para que veas como interpreta el valor dentro del set analysis (Ver el titulo en el la cabecera de la expresión).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;Saludos.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 20:00:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-variables/m-p/539198#M1122627</guid>
      <dc:creator />
      <dc:date>2014-01-20T20:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-variables/m-p/539199#M1122628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable definition was correct, but the expression has to be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum({&amp;lt;idFechaReserva={"&amp;lt;=$(=$(vIdFechaComparativa))"}&amp;gt;}MontoPagado)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 20:03:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-variables/m-p/539199#M1122628</guid>
      <dc:creator />
      <dc:date>2014-01-20T20:03:30Z</dc:date>
    </item>
  </channel>
</rss>

