<?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 Expression with Dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-with-Dates/m-p/460475#M171914</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this if the other doesn´t work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; font-size: 12.727272033691406px; color: #737373; font-family: Arial;"&gt;sum({&amp;lt;FechaDocumento={'&amp;gt;=$(=Date(today()-num(DiasFin),'DD/MM/YYYY')) &amp;lt;=$(=Date(today() - num(DiasIni) , 'DD/MM/YYYY'))'}&amp;gt;}Value)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; font-size: 12.727272033691406px; color: #737373; font-family: Arial;"&gt;Regards&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Nov 2012 19:45:34 GMT</pubDate>
    <dc:creator>chematos</dc:creator>
    <dc:date>2012-11-23T19:45:34Z</dc:date>
    <item>
      <title>Set Analysis Expression with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-with-Dates/m-p/460473#M171912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;Hi everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN class="hps"&gt;I need to convert&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;this expression&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;an instruction&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;set analysis&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;considering that&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;DiasFin&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;and&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;DiasIni&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;are&lt;/SPAN&gt; fields in the &lt;SPAN class="hps"&gt;associative&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;model &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;and dimensions&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in the table&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;where I'm&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;adding&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;this expression&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Usually I&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;specified&lt;/SPAN&gt; in &lt;SPAN class="hps"&gt;Set Analysis&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;value&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;or&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;used&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a variable&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;but in this case&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;neither method&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;throws&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;me&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the value I need&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;if&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: red; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;FechaDocumento&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;() - &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;DiasFin&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;) , 'DD/MM/YYYY') &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;and&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;FechaDocumento&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;() - &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;DiasIni&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;) , 'DD/MM/YYYY') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;Thanks you!!!!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 19:51:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-with-Dates/m-p/460473#M171912</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-22T19:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-with-Dates/m-p/460474#M171913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum({&amp;lt;FechaDocumento={"&amp;gt;=$(=Date(today()-num(DiasFin),'DD/MM/YYYY'))"}*{"&amp;lt;=$(=Date(today() - num(DiasIni) , 'DD/MM/YYYY'))"}&amp;gt;}Value)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Will solve your need&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 20:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-with-Dates/m-p/460474#M171913</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2012-11-22T20:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-with-Dates/m-p/460475#M171914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this if the other doesn´t work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; font-size: 12.727272033691406px; color: #737373; font-family: Arial;"&gt;sum({&amp;lt;FechaDocumento={'&amp;gt;=$(=Date(today()-num(DiasFin),'DD/MM/YYYY')) &amp;lt;=$(=Date(today() - num(DiasIni) , 'DD/MM/YYYY'))'}&amp;gt;}Value)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; font-size: 12.727272033691406px; color: #737373; font-family: Arial;"&gt;Regards&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 19:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-with-Dates/m-p/460475#M171914</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2012-11-23T19:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-with-Dates/m-p/460476#M171915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help, but It don´t work. With If the result is this:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="25547" class="jive-image-thumbnail jive-image" height="110" onclick="" alt="imagen1.png" src="https://community.qlik.com/legacyfs/online/25547_imagen1.png" width="627" /&gt;&lt;/P&gt;&lt;P&gt;but with the expressions sent the result always is 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="25548" class="jive-image-thumbnail jive-image" height="88" onclick="" alt="imagen1.png" src="https://community.qlik.com/legacyfs/online/25548_imagen1.png" width="620" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Nov 2012 01:30:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-with-Dates/m-p/460476#M171915</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-25T01:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-with-Dates/m-p/460477#M171916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;Note&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;that the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;solutions work&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;when I have a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;selected range&lt;/SPAN&gt; &lt;SPAN class="hps atn"&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DiasFin&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;DiasIni&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;but&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;when I select&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;multiple ranges&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;shows 0&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I hope&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;you&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;can&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;help&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;me&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Nov 2012 03:10:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-with-Dates/m-p/460477#M171916</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-25T03:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-with-Dates/m-p/460478#M171917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you could explain in more detail how are you doing the selections and what values have each field after that selections but as I understand your problem I think that if you want to select more than one range of dates you need to have one pair of fields for each range but you can´t make more than one selection for DiasFin or DiasIni, you should have DiasFin2, DiasIni2 to make another selection and add both ranges of dates to the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; font-size: 12.727272033691406px; color: #737373; font-family: Arial;"&gt;sum({&amp;lt;FechaDocumento={'&amp;gt;=$(=Date(today()-num(DiasFin),'DD/MM/YYYY')) &amp;lt;=$(=Date(today() - num(DiasIni) , 'DD/MM/YYYY'))'}&amp;gt;}Value)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; font-size: 12.727272033691406px; color: #737373; font-family: Arial;"&gt;+&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; font-size: 12.727272033691406px; color: #737373; font-family: Arial;"&gt;&lt;EM style="background-color: #ffffff; font-size: 12.727272033691406px; color: #737373; font-family: Arial;"&gt;sum({&amp;lt;FechaDocumento={'&amp;gt;=$(=Date(today()-num(DiasFin2),'DD/MM/YYYY')) &amp;lt;=$(=Date(today() - num(DiasIni2) , 'DD/MM/YYYY'))'}&amp;gt;}Value)&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; font-size: 12.727272033691406px; color: #737373; font-family: Arial;"&gt;&lt;EM style="background-color: #ffffff; font-size: 12.727272033691406px; color: #737373; font-family: Arial;"&gt;Regards&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 11:35:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-with-Dates/m-p/460478#M171917</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2012-11-26T11:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-with-Dates/m-p/460479#M171918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&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;EM style="background-color: #ffffff; font-size: 12.727272033691406px; color: #737373; font-family: Arial;"&gt;=sum({&amp;lt;FechaDocumento={"&amp;gt;=$(=Date(today()-max(DiasFin),'DD/MM/YYYY')) &amp;lt;=$(=Date(today() - max(DiasIni) , 'DD/MM/YYYY'))"}&amp;gt;}Value)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; font-size: 12.727272033691406px; color: #737373; font-family: Arial;"&gt;Hope this should work.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; font-size: 12.727272033691406px; color: #737373; font-family: Arial;"&gt;Regards,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; font-size: 12.727272033691406px; color: #737373; font-family: Arial;"&gt;Jagan.&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 12:20:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-with-Dates/m-p/460479#M171918</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-11-26T12:20:07Z</dc:date>
    </item>
  </channel>
</rss>

