<?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: Issue in expression- last year MTD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-in-expression-last-year-MTD/m-p/90148#M14674</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Anil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe this will not give last year MTD. We are trying to achieve for Oct 1 to 10 , 2018.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2018 06:32:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-10-10T06:32:06Z</dc:date>
    <item>
      <title>Issue in expression- last year MTD</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-expression-last-year-MTD/m-p/90143#M14669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using below expression to get last year MTD.&lt;/P&gt;&lt;P&gt;Example , if today is 10th, then we should get Oct 1st 2017 to 10th 2017. However using below expression is giving me 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;sum( {&amp;lt;Year=,Month=,Date={"&amp;gt;=$(=AddYears(MonthStart(max(Date)),-1)) &amp;lt;=$(=AddYears(max(Date),-1))"} &amp;gt;}&amp;nbsp;&amp;nbsp; SALES)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Kindly help to resolve the issue in above expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks &amp;amp; Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Chintan Gala&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 06:04:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-expression-last-year-MTD/m-p/90143#M14669</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-10T06:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in expression- last year MTD</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-expression-last-year-MTD/m-p/90144#M14670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give an example of your date format please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 06:13:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-expression-last-year-MTD/m-p/90144#M14670</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-10T06:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in expression- last year MTD</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-expression-last-year-MTD/m-p/90145#M14671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can simplify this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;DateField = {"&amp;gt;=MonthStart(Max(&lt;SPAN style="font-size: 13.3333px;"&gt;DateField&lt;/SPAN&gt;))&amp;lt;=$(=MonthEnd(Max(&lt;SPAN style="font-size: 13.3333px;"&gt;DateField&lt;/SPAN&gt;)))"}&amp;gt;} SALES)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 06:15:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-expression-last-year-MTD/m-p/90145#M14671</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-10-10T06:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in expression- last year MTD</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-expression-last-year-MTD/m-p/90146#M14672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming you are making selections in Year and Month (and not in other date fields like Quarter) and that there is data for last year, then the problem might be that Date is not in the default date format for your system.. Then you may get success with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum({&amp;lt;Year, Month, Date = {"&amp;gt;=&lt;STRONG&gt;Date&lt;/STRONG&gt;($(=AddYears(MonthStart(max(Date)),-1)), '&amp;lt;date format here&amp;gt;') &amp;lt;=&lt;STRONG&gt;Date&lt;/STRONG&gt;($(=AddYears(max(Date),-1)), '&amp;lt;date format here&amp;gt;')"}&amp;gt;} SALES)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter the date format for Date into the format strings above to align the date formats.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 06:16:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-expression-last-year-MTD/m-p/90146#M14672</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-10-10T06:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in expression- last year MTD</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-expression-last-year-MTD/m-p/90147#M14673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=sum({&amp;lt;Date = {"&amp;gt;=$(=Date(AddYears(MonthStart(Today()), -1), 'YYYY.MM.DD'))&amp;lt;=$(=Date(AddYears(Today(), -1), 'YYYY.MM.DD'))"}&amp;gt;}SALES)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 06:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-expression-last-year-MTD/m-p/90147#M14673</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2018-10-10T06:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in expression- last year MTD</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-expression-last-year-MTD/m-p/90148#M14674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Anil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe this will not give last year MTD. We are trying to achieve for Oct 1 to 10 , 2018.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 06:32:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-expression-last-year-MTD/m-p/90148#M14674</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-10T06:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in expression- last year MTD</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-expression-last-year-MTD/m-p/90149#M14675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure, Why last year MTD you need? But, Try this to get last Year date from Oct 1st 2017 - Oct 31st 2017 ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sum({&amp;lt;DateField = {"&amp;gt;=MonthStart(AddYears(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Today()&lt;/SPAN&gt;,-1))&amp;lt;=$(=MonthEnd(AddYears(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Today()&lt;/SPAN&gt;,-1)))"}&amp;gt;} SALES)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 08:29:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-expression-last-year-MTD/m-p/90149#M14675</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-10-10T08:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in expression- last year MTD</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-expression-last-year-MTD/m-p/90150#M14676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still getting 0 with this. I replaced the date format with DD-MM-YYYY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 09:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-expression-last-year-MTD/m-p/90150#M14676</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-10T09:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in expression- last year MTD</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-expression-last-year-MTD/m-p/90151#M14677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to debug and split to smaller steps:&lt;/P&gt;&lt;P&gt;Create text objects for:&lt;/P&gt;&lt;P&gt;1. &lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Date(AddYears(MonthStart(Today()), -1), 'YYYY.MM.DD')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2. &lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Date(AddYears(Today(), -1), 'YYYY.MM.DD')&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Do you get what you are expecting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 12:13:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-expression-last-year-MTD/m-p/90151#M14677</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2018-10-10T12:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in expression- last year MTD</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-expression-last-year-MTD/m-p/90152#M14678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes in text objects we get , Oct 1 2017 and Oct 10 , 2017 correctly. But when we are using&amp;nbsp; in expression it gives 0 .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 12:25:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-expression-last-year-MTD/m-p/90152#M14678</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-10T12:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in expression- last year MTD</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-expression-last-year-MTD/m-p/90153#M14679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then simply check if it works with either one switch between:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;1. &lt;EM style="font-weight: inherit; font-size: 13px;"&gt;=Date(AddYears(MonthStart(Today()), -1), 'YYYY.MM.DD')&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;EM style="font-weight: inherit; font-size: 13px;"&gt;2. &lt;EM style="font-weight: inherit;"&gt;=Date(AddYears(Today(), -1), 'YYYY.MM.DD')&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if the Date and SALES fields are named the same in the script.&lt;/P&gt;&lt;P&gt;Check if Date formatting is correct &lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit; font-size: 13px;"&gt;'YYYY.MM.DD'.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Simple play &amp;amp; debug the sentence till you understand what's wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 13:44:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-expression-last-year-MTD/m-p/90153#M14679</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2018-10-10T13:44:05Z</dc:date>
    </item>
  </channel>
</rss>

