<?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 and variable date range in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-variable-date-range/m-p/156560#M504563</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;Although I'm not using [Fecha Información Saldos] from an inputfield but from an excel sheet, your example works fine for me.&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Nov 2009 23:43:53 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2009-11-19T23:43:53Z</dc:date>
    <item>
      <title>Set Analysis and variable date range</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-variable-date-range/m-p/156556#M504559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;Sum({&amp;lt;VTO_TIPO_VENCIMIENTO={'Cobros'}, VTO_TIPO -= {'Vto. Cobro Posterior'}, VTO_FECHA_VENCIMIENTO = {'&amp;lt;=$(vFechaReferencia1)'} &amp;gt;} IF(VTO_FECHA_VENCIMIENTO &amp;gt;= Date([Fecha Información Saldos]), VTO_DEUDA))&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;and returns the results I want to get. But I was wondering if there is any other way to include all dates in between to get the Sum propertly only with Set Analysis, I mean, using Set Analysis to say &lt;I&gt;"when VTO_FECHA_VENCIMIENTO BETWEEN vFechaReferecia AND [Fecha Información Saldos]"&lt;/I&gt;.&lt;/P&gt;&lt;P&gt;I've tried&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;Sum({&amp;lt;VTO_TIPO_VENCIMIENTO={'Cobros'}, VTO_TIPO -= {'Vto. Cobro Posterior'}, VTO_FECHA_VENCIMIENTO = {'&amp;lt;=$(vFechaReferencia1)&amp;gt;=$(#=Date([Fecha Información Saldos]))'} &amp;gt;} VTO_DEUDA))&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;but it doesn't seem to work (returns different results).&lt;/P&gt;&lt;P&gt;Maybe the above code is correct and properly formatted for best performance in QlikView?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 19:33:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-variable-date-range/m-p/156556#M504559</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2009-11-18T19:33:30Z</dc:date>
    </item>
    <item>
      <title>Set Analysis and variable date range</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-variable-date-range/m-p/156557#M504560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;I've attached a file where I make an example with your information, I hope it will be what you are expecting.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 15:26:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-variable-date-range/m-p/156557#M504560</guid>
      <dc:creator />
      <dc:date>2009-11-19T15:26:10Z</dc:date>
    </item>
    <item>
      <title>Set Analysis and variable date range</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-variable-date-range/m-p/156558#M504561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Namesake!&lt;/P&gt;&lt;P&gt;Thanks very much for the effort.&lt;/P&gt;&lt;P&gt;Your example is indeed working fine but, maybe I made myself not enough clear when I addressed the problem. I do know how to make ranges in Set Analysis, the problem appears when the range depends on two variable dates, one is contained in a field [Fecha Información Saldos] which, moreover, I have to convert with Date(), so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;$(#=Date([Fecha Información Saldos]))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;is what's not working in my code. In yours, you use a variable with spaces in the name, that's not the case. As you can see, my second line of code in the question is very similar to yours, but not working, because I need to include the Date() conversion.&lt;/P&gt;&lt;P&gt;Tried that with your example doesn't work, either. So the question remains: How can I build a range of dates when dates are contained in fields or variables which require some function to get date properly (Date, timestamp#, etc).&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 15:52:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-variable-date-range/m-p/156558#M504561</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2009-11-19T15:52:45Z</dc:date>
    </item>
    <item>
      <title>Set Analysis and variable date range</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-variable-date-range/m-p/156559#M504562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;I suppose the variable contained in a field is a InputField, so I've sent you a modified example using inputfields, your Fecha Información Saldos variable and using my own inputfield variable.&lt;/P&gt;&lt;P&gt;The set analysis sentence Date([Fecha Información Saldos]) works for me using variables without spaces. Look the internal variable conversion from Fecha Informacion Saldos to Fecha_Informacion_Saldos like Date([Fecha Informacion Saldos]).&lt;/P&gt;&lt;P&gt;I hope it works for you.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 18:28:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-variable-date-range/m-p/156559#M504562</guid>
      <dc:creator />
      <dc:date>2009-11-19T18:28:44Z</dc:date>
    </item>
    <item>
      <title>Set Analysis and variable date range</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-variable-date-range/m-p/156560#M504563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;Although I'm not using [Fecha Información Saldos] from an inputfield but from an excel sheet, your example works fine for me.&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 23:43:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-variable-date-range/m-p/156560#M504563</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2009-11-19T23:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and variable date range</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-variable-date-range/m-p/156561#M504564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked great for me as well. Thanks for the advice... and thakyou Qlik community!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2012 10:57:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-variable-date-range/m-p/156561#M504564</guid>
      <dc:creator />
      <dc:date>2012-07-04T10:57:22Z</dc:date>
    </item>
  </channel>
</rss>

