<?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 / YTD Is there a better way? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MTD-YTD-Is-there-a-better-way/m-p/1090704#M1315531</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kushal &amp;amp; Michael, thanks for you responses.I feared this was the case and thanks for the calendar link this is really useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 May 2016 13:22:54 GMT</pubDate>
    <dc:creator>farnsworth</dc:creator>
    <dc:date>2016-05-09T13:22:54Z</dc:date>
    <item>
      <title>MTD / YTD Is there a better way?</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-YTD-Is-there-a-better-way/m-p/1090701#M1315524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my data table i'm trying to display MTD and YTD using a calculation which I have stored in a variable "vQuotes" (below).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;[Plan Type]={'Actual'}&amp;gt;} Quote_Count)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fact calendar I have created has flags for MTD and YTD.&amp;nbsp; What I was hoping to do in the front end data table which in theory should be simple but I can't get this to work is the following :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(vQuotes) * MTD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and another for YTD&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;$(vQuotes) * YTD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can get around this by creating new variable which I would call "vQuotesMTD" and would be as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SUM({&amp;lt;[Plan Type]={'Actual'}, MTD = {1}&amp;gt;} Quote_Count)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;But it would mean multiple variables which are only used once and are basically the same.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Is it possible to do this it this way?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;$(vQuotes) * MTD&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-YTD-Is-there-a-better-way/m-p/1090701#M1315524</guid>
      <dc:creator>farnsworth</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: MTD / YTD Is there a better way?</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-YTD-Is-there-a-better-way/m-p/1090702#M1315527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No this will not work. You are multiplying your expression with MTD Flag i.e 1 means you are actually getting the values for that expression not the MTD values. So you need to use &lt;SPAN style="font-size: 13.3333px;"&gt;MTD Flag in set analysis&lt;/SPAN&gt; &lt;SPAN style="font-size: 13.3333px;"&gt;SUM({&amp;lt;[Plan Type]={'Actual'}, MTD = {1}&amp;gt;} Quote_Count)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2016 16:04:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-YTD-Is-there-a-better-way/m-p/1090702#M1315527</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-05-06T16:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: MTD / YTD Is there a better way?</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-YTD-Is-there-a-better-way/m-p/1090703#M1315530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This may be of value.&amp;nbsp; It helped me tremendously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://qlikcentral.com/2015/11/10/date-comparison-with-a-powerful-calendar/" title="https://qlikcentral.com/2015/11/10/date-comparison-with-a-powerful-calendar/"&gt;https://qlikcentral.com/2015/11/10/date-comparison-with-a-powerful-calendar/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2016 16:25:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-YTD-Is-there-a-better-way/m-p/1090703#M1315530</guid>
      <dc:creator>Tanalex</dc:creator>
      <dc:date>2016-05-06T16:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: MTD / YTD Is there a better way?</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-YTD-Is-there-a-better-way/m-p/1090704#M1315531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kushal &amp;amp; Michael, thanks for you responses.I feared this was the case and thanks for the calendar link this is really useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 13:22:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-YTD-Is-there-a-better-way/m-p/1090704#M1315531</guid>
      <dc:creator>farnsworth</dc:creator>
      <dc:date>2016-05-09T13:22:54Z</dc:date>
    </item>
  </channel>
</rss>

