<?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 -- compare two dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-compare-two-dates/m-p/357237#M132554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!!&lt;BR /&gt;It's possible compare two dates in set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would like to something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt; Data_Plan = {"&amp;lt;=$(Data_Ven)"} &amp;gt;} Valor)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know it's possible do that using the (IF) condition, but it's possible with set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Diogo Pereira&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 May 2012 14:45:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-17T14:45:41Z</dc:date>
    <item>
      <title>Set analysis -- compare two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-compare-two-dates/m-p/357237#M132554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!!&lt;BR /&gt;It's possible compare two dates in set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would like to something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt; Data_Plan = {"&amp;lt;=$(Data_Ven)"} &amp;gt;} Valor)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know it's possible do that using the (IF) condition, but it's possible with set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Diogo Pereira&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 14:45:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-compare-two-dates/m-p/357237#M132554</guid>
      <dc:creator />
      <dc:date>2012-05-17T14:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis -- compare two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-compare-two-dates/m-p/357238#M132555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diogo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both field Data_Plan and variable Data_Ven must have the same format. You can anyway try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Sum({&amp;lt; Data_Plan = {"&amp;lt;=$(=Date(Data_Ven))"} &amp;gt;} Valor)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but that will only work if Date(Data_Ven) has the same exact format as Data_Plan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 14:50:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-compare-two-dates/m-p/357238#M132555</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-05-17T14:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis -- compare two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-compare-two-dates/m-p/357239#M132556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Please make sure that both the fields share the same date format. If not, you will have trouble matching the dates. I would recommend you to convert the field in Number format for easy matching. Because underlying dates in QV are just numbers. Probably you can use Dual() function to keep both the formats.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 14:52:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-compare-two-dates/m-p/357239#M132556</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-05-17T14:52:51Z</dc:date>
    </item>
  </channel>
</rss>

