<?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: MTD yesterday in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MTD-yesterday/m-p/392496#M146390</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll try and see whats happens tomorrow. Any clue how i shall solv vThisMonthsStartLastYear?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This problem will only show up 1:st every month, but its not ok anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Feb 2013 10:51:26 GMT</pubDate>
    <dc:creator>stabben23</dc:creator>
    <dc:date>2013-02-01T10:51:26Z</dc:date>
    <item>
      <title>MTD yesterday</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-yesterday/m-p/392494#M146388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a problem today when a new month begin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I show MTD, but it will always calculate yesterdays value, so MTD should today show 1/1-31/1.&lt;/P&gt;&lt;P&gt;My set expression is : sum({$&amp;lt;Date ={"&amp;gt;=$(=$(vThisMonthsStart))&amp;lt;=$(=$(vYesterday))"}&amp;gt;}Price)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression will works fine tomorrow (2/2) but not today (1/2), and i know that vThisMonthsStart is the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vThisMonthStart = date(date(MonthStart(today()))'YYYYMMDD') and this will be 20130201 today, NOT good.&lt;/P&gt;&lt;P&gt;date(date(MonthStart(today()-&lt;STRONG&gt;1&lt;/STRONG&gt;))'YYYYMMDD') will give me the correct 20130101, but what happens tomorrow with that variable?&lt;/P&gt;&lt;P&gt;Will it still be 20130101?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will also give me a second problem that is how to find vThisMonthsStartLastYear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 08:56:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-yesterday/m-p/392494#M146388</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2013-02-01T08:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: MTD yesterday</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-yesterday/m-p/392495#M146389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tomorrow, today being the 1st of februari, date(MonthStart(today()-&lt;STRONG&gt;1&lt;/STRONG&gt;))'YYYYMMDD') will return 20130201. So it looks like that would be the correct expression for your purposes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;edit: vThisMonthsStartLastYear can be calculated with addyears($(vThisMonthStart),-1) assuming you want that based on yesterday too.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 10:47:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-yesterday/m-p/392495#M146389</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-01T10:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: MTD yesterday</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-yesterday/m-p/392496#M146390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll try and see whats happens tomorrow. Any clue how i shall solv vThisMonthsStartLastYear?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This problem will only show up 1:st every month, but its not ok anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 10:51:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-yesterday/m-p/392496#M146390</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2013-02-01T10:51:26Z</dc:date>
    </item>
  </channel>
</rss>

