<?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 Date variable not working on comparation in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-variable-not-working-on-comparation-in-set-analysis/m-p/1524561#M748201</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to ClikView and I would like your help to solve a problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I created a variable of Data like this:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;EM&gt;&lt;STRONG&gt;variable1 = Date('expression',&amp;nbsp; 'DD/MM/YYYY hh:mm:ss')&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;When I try to use this variable to compare with another data (VCTPRO) in set analysis it doesn't work, &lt;SPAN&gt;even though they are the same:&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;EM&gt;&lt;STRONG&gt;min({&amp;lt;VCTPRO = {$(variable1&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;)}&amp;gt;} VALOR_PARCELA)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;But if I go to the variable and put it manually, it works fine:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;EM&gt;&lt;STRONG&gt;variable1 = '2018-12-27 00:00:00'&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;What am I doing wrong? I need the expression on the variable, I can't just use one manually, it will chenge wich time.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Obs.: The format of&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;VCTPRO&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;is 'DD/MM/YYYY HH:mm:ss'&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 21:41:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T21:41:06Z</dc:date>
    <item>
      <title>Date variable not working on comparation in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-variable-not-working-on-comparation-in-set-analysis/m-p/1524561#M748201</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to ClikView and I would like your help to solve a problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I created a variable of Data like this:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;EM&gt;&lt;STRONG&gt;variable1 = Date('expression',&amp;nbsp; 'DD/MM/YYYY hh:mm:ss')&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;When I try to use this variable to compare with another data (VCTPRO) in set analysis it doesn't work, &lt;SPAN&gt;even though they are the same:&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;EM&gt;&lt;STRONG&gt;min({&amp;lt;VCTPRO = {$(variable1&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;)}&amp;gt;} VALOR_PARCELA)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;But if I go to the variable and put it manually, it works fine:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;EM&gt;&lt;STRONG&gt;variable1 = '2018-12-27 00:00:00'&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;What am I doing wrong? I need the expression on the variable, I can't just use one manually, it will chenge wich time.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Obs.: The format of&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;VCTPRO&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;is 'DD/MM/YYYY HH:mm:ss'&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:41:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-variable-not-working-on-comparation-in-set-analysis/m-p/1524561#M748201</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T21:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Date variable not working on comparation in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-variable-not-working-on-comparation-in-set-analysis/m-p/1524586#M748202</link>
      <description>&lt;P&gt;Try this,&lt;/P&gt;&lt;PRE&gt;min({&amp;lt;VCTPRO = {'$(variable1)'}&amp;gt;} VALOR_PARCELA)&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Dec 2018 21:34:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-variable-not-working-on-comparation-in-set-analysis/m-p/1524586#M748202</guid>
      <dc:creator>nithin149</dc:creator>
      <dc:date>2018-12-27T21:34:29Z</dc:date>
    </item>
  </channel>
</rss>

