<?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: Compare date and num in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-date-and-num/m-p/1231810#M860050</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jan 2017 11:20:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-01-25T11:20:17Z</dc:date>
    <item>
      <title>Compare date and num</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-date-and-num/m-p/1231806#M860046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i need to compare the date with the string, so I'm trying to run this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num( sum( {&amp;lt; Current_Years={ Date( Date#( v_Year_Cur, 'YYYY')) }&amp;gt; } Quantity, '€ #.##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know why, can you help me?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-date-and-num/m-p/1231806#M860046</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Compare date and string</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-date-and-num/m-p/1231807#M860047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;v_Year_Cur looks like a number to me.... Is Current_Years field a just a Year or is it a date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update: If it is date, then i would suggest you to calculate year from Current_Years in the script like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Current_Years as Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(Current_Years) as Year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;FROM ....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then 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; font-size: 13px;"&gt;&lt;STRONG&gt;=Num(Sum({&amp;lt;Year={$(=v_Year_Cur)}&amp;gt;} Quantity), '€ #.##0')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 10:29:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-date-and-num/m-p/1231807#M860047</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-25T10:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Compare date and num</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-date-and-num/m-p/1231808#M860048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I made a mistake, v_Year_Cur is a number not a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I create Current_Years in this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Year(Date#([order date], 'YYYY')) as Current_Years,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...............&lt;/P&gt;&lt;P&gt;FROM......;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while I set v_Year_Cur is manually&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 10:57:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-date-and-num/m-p/1231808#M860048</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-25T10:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Compare date and num</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-date-and-num/m-p/1231809#M860049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to check these links out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2954"&gt;Why don’t my dates work?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2622"&gt;Get the Dates Right&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are using order date which seems like a date and you are asking QlikView to interpret it as just YYYY. Is order date not understood as date by QlikView? If not, only then use Date#(). else just use Year([order date]) to extract year out of a date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 11:08:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-date-and-num/m-p/1231809#M860049</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-25T11:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Compare date and num</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-date-and-num/m-p/1231810#M860050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 11:20:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-date-and-num/m-p/1231810#M860050</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-25T11:20:17Z</dc:date>
    </item>
  </channel>
</rss>

