<?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 Set YTD &amp;amp; MTD in analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-YTD-amp-MTD-in-analysis/m-p/2081569#M88704</link>
    <description>&lt;P&gt;Hi, All,&lt;/P&gt;
&lt;P&gt;The formulas of month in my application is as below.&lt;/P&gt;
&lt;P&gt;Month(Makedate(2000,Num#(period,'0'))) as Month&lt;/P&gt;
&lt;P&gt;And my YTD &amp;amp; MTD formulas is set up like this. However it only works for YTD formulas. It always shows 0 in MTD.&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;[Calendar Year]={$(=Maxstring([Calendar Year]))}&amp;gt;}[Net Sales $])&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;[Calendar Year]={$(=Maxstring([Calendar Year]))},Month={$(=MaxString(Month))}&amp;gt;}[Net Sales $])&lt;/P&gt;
&lt;P&gt;Do you have any idea that if my MTD formulas is not working? Thanks a lot.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jun 2023 10:13:39 GMT</pubDate>
    <dc:creator>Cassie_L</dc:creator>
    <dc:date>2023-06-08T10:13:39Z</dc:date>
    <item>
      <title>Set YTD &amp; MTD in analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Set-YTD-amp-MTD-in-analysis/m-p/2081569#M88704</link>
      <description>&lt;P&gt;Hi, All,&lt;/P&gt;
&lt;P&gt;The formulas of month in my application is as below.&lt;/P&gt;
&lt;P&gt;Month(Makedate(2000,Num#(period,'0'))) as Month&lt;/P&gt;
&lt;P&gt;And my YTD &amp;amp; MTD formulas is set up like this. However it only works for YTD formulas. It always shows 0 in MTD.&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;[Calendar Year]={$(=Maxstring([Calendar Year]))}&amp;gt;}[Net Sales $])&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;[Calendar Year]={$(=Maxstring([Calendar Year]))},Month={$(=MaxString(Month))}&amp;gt;}[Net Sales $])&lt;/P&gt;
&lt;P&gt;Do you have any idea that if my MTD formulas is not working? Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 10:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-YTD-amp-MTD-in-analysis/m-p/2081569#M88704</guid>
      <dc:creator>Cassie_L</dc:creator>
      <dc:date>2023-06-08T10:13:39Z</dc:date>
    </item>
  </channel>
</rss>

