<?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: Why these two expressions act differently? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Why-these-two-expressions-act-differently/m-p/686980#M248891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this only sets the CreatedDate to one day before.&amp;nbsp; it does not calculate MTD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jul 2014 12:14:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-17T12:14:36Z</dc:date>
    <item>
      <title>Why these two expressions act differently?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-these-two-expressions-act-differently/m-p/686974#M248885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two expressions to calculate MTD sales:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example these values will be selected by the user : Year=2014, Month=Jun, Day=22&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exp1:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={$(vL.CurrentYear)},Month={$(vL.CurrentMonth)},CreatedDate={'&lt;SPAN style="color: #000000;"&gt;&amp;lt;=&lt;/SPAN&gt;$(vL.CurrentDate))'}&amp;gt;}Price)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exp2:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={$(vL.CurrentYear)},Month={$(vL.CurrentMonth)},Day={'&amp;lt;=$(vL.CurrentDay)'}&amp;gt;}Price)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CreatedDate is my link date field between Sales fact table and my master calendar. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while Exp2 gives the expected result,&amp;nbsp; Exp1 only bring the values of the 22nd of June whereas it should cover all the days of the month because of the "&amp;lt;=" sign in the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could anyone please points out to me what I am doing wrong in Exp1?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 11:16:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-these-two-expressions-act-differently/m-p/686974#M248885</guid>
      <dc:creator />
      <dc:date>2014-07-16T11:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why these two expressions act differently?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-these-two-expressions-act-differently/m-p/686975#M248886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ali ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to you CreatedDate field link between MasterCal &amp;amp; Sales So,in this case if CreateDate format is not matching with your selection it will reflect all values instead of selection.&lt;/P&gt;&lt;P&gt;Just check your format whether is is in proper date format or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harshal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 11:50:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-these-two-expressions-act-differently/m-p/686975#M248886</guid>
      <dc:creator />
      <dc:date>2014-07-16T11:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Why these two expressions act differently?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-these-two-expressions-act-differently/m-p/686976#M248887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have one ) too much in the first expression&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;"&gt;sum({&amp;lt;Year={$(vL.CurrentYear)},Month={$(vL.CurrentMonth)},CreatedDate={'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(vL.CurrentDate)&lt;/SPAN&gt;&lt;STRONG style="font-size: 14pt;"&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;'}&amp;gt;}Price)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe that´s why&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 12:07:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-these-two-expressions-act-differently/m-p/686976#M248887</guid>
      <dc:creator>michael_maeuser</dc:creator>
      <dc:date>2014-07-16T12:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why these two expressions act differently?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-these-two-expressions-act-differently/m-p/686977#M248888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No that was not it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 12:12:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-these-two-expressions-act-differently/m-p/686977#M248888</guid>
      <dc:creator />
      <dc:date>2014-07-16T12:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why these two expressions act differently?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-these-two-expressions-act-differently/m-p/686978#M248889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the format is the same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="CreatedDate.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/62511_CreatedDate.PNG.png" style="width: 620px; height: 429px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 12:30:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-these-two-expressions-act-differently/m-p/686978#M248889</guid>
      <dc:creator />
      <dc:date>2014-07-16T12:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why these two expressions act differently?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-these-two-expressions-act-differently/m-p/686979#M248890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ali,&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;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({&amp;lt;Year={$(vL.CurrentYear)},Month={$(vL.CurrentMonth)},CreatedDate={'&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(vL.CurrentDate)-1)'}&amp;gt;}Price)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 13:12:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-these-two-expressions-act-differently/m-p/686979#M248890</guid>
      <dc:creator />
      <dc:date>2014-07-16T13:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why these two expressions act differently?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-these-two-expressions-act-differently/m-p/686980#M248891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this only sets the CreatedDate to one day before.&amp;nbsp; it does not calculate MTD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 12:14:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-these-two-expressions-act-differently/m-p/686980#M248891</guid>
      <dc:creator />
      <dc:date>2014-07-17T12:14:36Z</dc:date>
    </item>
  </channel>
</rss>

