<?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 problem with date in an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/problem-with-date-in-an-expression/m-p/343900#M1178373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you create your Mes_Actual? Often the date format is kind of problematic in set expressions or comparisons. It might be better to use a numerical date format instead of the text representation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Mar 2012 00:38:45 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-03-09T00:38:45Z</dc:date>
    <item>
      <title>problem with date in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-date-in-an-expression/m-p/343897#M1178370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i have this expression witch run well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( {$&amp;lt;CALENDARIO_PLAN_DEALS.AñoMes&lt;STRONG&gt; = &lt;/STRONG&gt;{'$(Mes_Actual)'}&amp;gt;} PLAN_DEALS$.Deals.plan )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i add the symbol "&lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt;" the expression crash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( {$&amp;lt;CALENDARIO_PLAN_DEALS.AñoMes&lt;STRONG&gt; &amp;lt;=&lt;/STRONG&gt; {'$(Mes_Actual)'}&amp;gt;} PLAN_DEALS$.Deals.plan )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gerardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 18:46:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-date-in-an-expression/m-p/343897#M1178370</guid>
      <dc:creator />
      <dc:date>2012-03-08T18:46:16Z</dc:date>
    </item>
    <item>
      <title>problem with date in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-date-in-an-expression/m-p/343898#M1178371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to see the set expression more like an assignment, not like a comparison. So a &amp;lt;= doesn't make sense in&amp;nbsp; an assignment kind of sense. It's not an allowed operator here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to select all values in CALENDARIO_PLAN_DEALS.AnoMes that are smaller equal, you need to use a search expression in your set element:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;sum( {$&amp;lt;CALENDARIO_PLAN_DEALS.AñoMes&lt;/SPAN&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt; =&lt;/STRONG&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;&lt;STRONG&gt; {"&amp;lt;=$(Mes_Actual)"}&amp;gt;}&lt;/STRONG&gt; PLAN_DEALS$.Deals.plan )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the double quotes here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 18:59:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-date-in-an-expression/m-p/343898#M1178371</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-03-08T18:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: problem with date in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-date-in-an-expression/m-p/343899#M1178372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan, thanks for help me again…..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with the expression you give me but the value of the result is 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the picture im going to attach you can see values for all months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value for Mes_Actual is “Mar-2012”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gerardo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De: swuehl &lt;A href="mailto:qliktech@sgaur.hosted.jivesoftware.com"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Enviado el: jueves, 08 de marzo de 2012 03:59 p.m.&lt;/P&gt;&lt;P&gt;Para: Pauza, Gerardo&lt;/P&gt;&lt;P&gt;Asunto: &lt;A href="New to QlikView"&gt;&lt;/A&gt; - Re: problem with date in an expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikCommunity &amp;lt;http://community.qlik.com/index.jspa&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: problem with date in an expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;created by swuehl &amp;lt;http://community.qlik.com/people/swuehl&amp;gt;  in New to QlikView - View the full discussion &amp;lt;http://community.qlik.com/message/199216#199216&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 19:25:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-date-in-an-expression/m-p/343899#M1178372</guid>
      <dc:creator />
      <dc:date>2012-03-08T19:25:04Z</dc:date>
    </item>
    <item>
      <title>problem with date in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-date-in-an-expression/m-p/343900#M1178373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you create your Mes_Actual? Often the date format is kind of problematic in set expressions or comparisons. It might be better to use a numerical date format instead of the text representation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 00:38:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-date-in-an-expression/m-p/343900#M1178373</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-03-09T00:38:45Z</dc:date>
    </item>
    <item>
      <title>problem with date in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-date-in-an-expression/m-p/343901#M1178374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Have you tried with date function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;sum( {$&amp;lt;CALENDARIO_PLAN_DEALS.AñoMes&lt;/SPAN&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt; =&lt;/STRONG&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG style="font-size: 12px;"&gt; {"&amp;lt;=$(=Date($(Mes_Actual)))"}&amp;gt;}&lt;/STRONG&gt;PLAN_DEALS$.Deals.plan )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 04:36:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-date-in-an-expression/m-p/343901#M1178374</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-03-09T04:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: problem with date in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-date-in-an-expression/m-p/343902#M1178375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   This is the way i create the variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET Mes_Actual= Month(today()) &amp;amp; '-' &amp;amp; year(today()); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don’t if is this correct..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gerardo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De: swuehl &lt;A href="mailto:qliktech@sgaur.hosted.jivesoftware.com"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Enviado el: jueves, 08 de marzo de 2012 09:39 p.m.&lt;/P&gt;&lt;P&gt;Para: Pauza, Gerardo&lt;/P&gt;&lt;P&gt;Asunto: &lt;A href="New to QlikView"&gt;&lt;/A&gt; - Re: problem with date in an expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikCommunity &amp;lt;http://community.qlik.com/index.jspa&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: problem with date in an expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;created by swuehl &amp;lt;http://community.qlik.com/people/swuehl&amp;gt;  in New to QlikView - View the full discussion &amp;lt;http://community.qlik.com/message/199284#199284&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 13:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-date-in-an-expression/m-p/343902#M1178375</guid>
      <dc:creator />
      <dc:date>2012-03-09T13:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: problem with date in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-date-in-an-expression/m-p/343903#M1178376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Celambarasan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I tried but the value is 0 too. I think this is because the way i created the variable Mes_Actual, like said Stefan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerardo &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De: Celambarasan Adhimulam &lt;A href="mailto:qliktech@sgaur.hosted.jivesoftware.com"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Enviado el: viernes, 09 de marzo de 2012 01:37 a.m.&lt;/P&gt;&lt;P&gt;Para: Pauza, Gerardo&lt;/P&gt;&lt;P&gt;Asunto: &lt;A href="New to QlikView"&gt;&lt;/A&gt; - Re: problem with date in an expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikCommunity &amp;lt;http://community.qlik.com/index.jspa&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: problem with date in an expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;created by Celambarasan Adhimulam &amp;lt;http://community.qlik.com/people/celambarasan&amp;gt;  in New to QlikView - View the full discussion &amp;lt;http://community.qlik.com/message/199269#199269&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 13:53:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-date-in-an-expression/m-p/343903#M1178376</guid>
      <dc:creator />
      <dc:date>2012-03-09T13:53:27Z</dc:date>
    </item>
    <item>
      <title>problem with date in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-date-in-an-expression/m-p/343904#M1178377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would recommend creating your AnoMes as a date type using either Monthname &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Fecha,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;MonthName(Fecha) as AnoMes,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;..&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;from...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or monthstart()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Fecha,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Date(Monthstart(Fecha),'MMM-YYYY') as AnoMes,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;..&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;from...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then create your Variable Mes_Actual in the same way using today() instead of Fecha.&lt;/P&gt;&lt;P&gt;For use in the set expression, I think it's a good idea to use the numerical representation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET Mes_Actual_Num = num(monthstart(today()));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then this should work:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;sum( {$&amp;lt;CALENDARIO_PLAN_DEALS.AñoMes&lt;/SPAN&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt; =&lt;/STRONG&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;&lt;STRONG&gt; {"&amp;lt;=$(Mes_Actual_Num)"}&amp;gt;}&lt;/STRONG&gt; PLAN_DEALS$.Deals.plan )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 14:20:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-date-in-an-expression/m-p/343904#M1178377</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-03-09T14:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: problem with date in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-date-in-an-expression/m-p/343905#M1178378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Check with this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;sum( {$&amp;lt;CALENDARIO_PLAN_DEALS.AñoMes&lt;/SPAN&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt; =&lt;/STRONG&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG style="font-size: 12px;"&gt;{"&amp;lt;=$(=Date#($(Mes_Actual),'MMM-YYYY'))"}&amp;gt;}&lt;/STRONG&gt;PLAN_DEALS$.Deals.plan )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;Simply use&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;sum( {$&amp;lt;CALENDARIO_PLAN_DEALS.AñoMes&lt;/SPAN&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt; =&lt;/STRONG&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG style="font-size: 12px;"&gt;{"&amp;lt;=$(=Today())"}&amp;gt;}&lt;/STRONG&gt;PLAN_DEALS$.Deals.plan )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Celambarasan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 14:35:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-date-in-an-expression/m-p/343905#M1178378</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-03-09T14:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: problem with date in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-date-in-an-expression/m-p/343906#M1178379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finaly the expression for “plan” is working with your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be clear im going to write all expressions i used for&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plan expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( {$&amp;lt;PLAN_DEALS$.Fecha = {"&amp;lt;=$(Mes_Actual_Num)"}&amp;gt;} PLAN_DEALS$.Deals.plan ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mes_Actual_Num: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET Mes_Actual_Num = num(monthstart(today())) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g: 40696&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLAN_DEALS$.Fecha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g: 40696-40940-40909-……&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i used numeric values instead of ‘MM-YYYY’ format in dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this to:  sum( {$&amp;lt;CALENDARIO_PLAN_DEALS.AñoMes ={"&amp;lt;=$(=Date#($(Mes_Actual),'MMM-YYYY'))"}&amp;gt;}PLAN_DEALS$.Deals.plan )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i think not found because of the format in dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerardo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De: swuehl &lt;A href="mailto:qliktech@sgaur.hosted.jivesoftware.com"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Enviado el: viernes, 09 de marzo de 2012 11:21 a.m.&lt;/P&gt;&lt;P&gt;Para: Pauza, Gerardo&lt;/P&gt;&lt;P&gt;Asunto: &lt;A href="New to QlikView"&gt;&lt;/A&gt; - Re: problem with date in an expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikCommunity &amp;lt;http://community.qlik.com/index.jspa&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: problem with date in an expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;created by swuehl &amp;lt;http://community.qlik.com/people/swuehl&amp;gt;  in New to QlikView - View the full discussion &amp;lt;http://community.qlik.com/message/199506#199506&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 15:24:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-date-in-an-expression/m-p/343906#M1178379</guid>
      <dc:creator />
      <dc:date>2012-03-09T15:24:52Z</dc:date>
    </item>
  </channel>
</rss>

