<?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: Qlik YTD MTD and Year Filter in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Qlik-YTD-MTD-and-Year-Filter/m-p/2467671#M99375</link>
    <description>&lt;P&gt;Thanks for the solution.My fiscal year is not from Jan - Dec. It is from April - march.&amp;nbsp;&lt;BR /&gt;I do have Fiscal Year. Fiscal Month, Fiscal Quarter, Fiscal Date fields.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Question -&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;if I select only YTD, then&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;vYTD = Year(Max(your_dataField)) . This will be 2024&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Month = Month(Max(your_dataField)). This will be 07 (July) .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;vDtIni = Makedate($(vYTD),11); , This will be 11/01/2024 . ( Nov -1 , 2024 ) .&amp;nbsp;&lt;BR /&gt;Why 11 ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;vDtEnd = MonthEnd(Makedate($(vYTD),$(vMonth) , 1) );&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I want end date as of yesterday , not till end of month.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2024 13:53:21 GMT</pubDate>
    <dc:creator>NAUS123</dc:creator>
    <dc:date>2024-07-03T13:53:21Z</dc:date>
    <item>
      <title>Qlik YTD MTD and Year Filter</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-YTD-MTD-and-Year-Filter/m-p/2467387#M99326</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a filter drop down (YTD, QTD, MTD, WTD) and Year, Month, Day, Week Filter.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;When the user selects either YTD or QTD, or MTD or WTD ( no Year, month, day, week filter) then show the sum of sales.&amp;nbsp;&lt;BR /&gt;But when they select YTD and Year filter = 2023, then show sum of sales for Jan 1, 2023 - Dec 31, 2023.&amp;nbsp;&lt;BR /&gt;Likewise it can be YTD and Year= 2023 and Month = 3 then show sum of sales for Jan 1, 2023 - march 31, 2023.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 22:28:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-YTD-MTD-and-Year-Filter/m-p/2467387#M99326</guid>
      <dc:creator>NAUS123</dc:creator>
      <dc:date>2024-07-02T22:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik YTD MTD and Year Filter</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-YTD-MTD-and-Year-Filter/m-p/2467659#M99373</link>
      <description>&lt;P&gt;you have to use variable&lt;BR /&gt;&lt;BR /&gt;for example:&lt;BR /&gt;&lt;BR /&gt;vYTD = Year(Max(your_dataField))&lt;/P&gt;
&lt;P&gt;vMonth = Month(Max(your_dataField))&lt;BR /&gt;vDtIni = Makedate($(vYTD),11);&lt;/P&gt;
&lt;P&gt;vDtEnd = MonthEnd(Makedate($(vYTD),$(vMonth) , 1) );&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;your expression : Sum({&amp;lt; Date_Field = {"&amp;gt;=$(vDtIni)&amp;lt;=$(vDtEnd )"} &amp;gt;} Your_measureField)&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 13:29:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-YTD-MTD-and-Year-Filter/m-p/2467659#M99373</guid>
      <dc:creator>TcnCunha_M</dc:creator>
      <dc:date>2024-07-03T13:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik YTD MTD and Year Filter</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-YTD-MTD-and-Year-Filter/m-p/2467671#M99375</link>
      <description>&lt;P&gt;Thanks for the solution.My fiscal year is not from Jan - Dec. It is from April - march.&amp;nbsp;&lt;BR /&gt;I do have Fiscal Year. Fiscal Month, Fiscal Quarter, Fiscal Date fields.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Question -&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;if I select only YTD, then&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;vYTD = Year(Max(your_dataField)) . This will be 2024&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Month = Month(Max(your_dataField)). This will be 07 (July) .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;vDtIni = Makedate($(vYTD),11); , This will be 11/01/2024 . ( Nov -1 , 2024 ) .&amp;nbsp;&lt;BR /&gt;Why 11 ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;vDtEnd = MonthEnd(Makedate($(vYTD),$(vMonth) , 1) );&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I want end date as of yesterday , not till end of month.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 13:53:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-YTD-MTD-and-Year-Filter/m-p/2467671#M99375</guid>
      <dc:creator>NAUS123</dc:creator>
      <dc:date>2024-07-03T13:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik YTD MTD and Year Filter</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-YTD-MTD-and-Year-Filter/m-p/2467675#M99376</link>
      <description>&lt;P&gt;&lt;SPAN&gt;vDtIni = Makedate($(vYTD),1&lt;STRONG&gt;,&lt;/STRONG&gt;1); ( forgot one coma, to be 1/1/Your_year)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if your fiscal year start on march you can force to be March not January&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;i force to be end of month they selected. if want to force to be YTD restrict to yesterday date&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;vDtEnd = Date(Today()-1);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 14:00:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-YTD-MTD-and-Year-Filter/m-p/2467675#M99376</guid>
      <dc:creator>TcnCunha_M</dc:creator>
      <dc:date>2024-07-03T14:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik YTD MTD and Year Filter</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-YTD-MTD-and-Year-Filter/m-p/2467681#M99379</link>
      <description>&lt;P&gt;&lt;SPAN&gt;if your fiscal year start on march you can force to be March not January&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Yes I can do that in my case :&amp;nbsp;&lt;SPAN&gt;vDtIni = Makedate($(vYTD),1&lt;/SPAN&gt;&lt;STRONG&gt;,3&lt;/STRONG&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;But when i select now Year filter = 2023 ( with YTD selection intact) , Month = May , then I need YTD dates of course to be May 1 - may 31 to be evaluated in set analysis.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In that case this variable&amp;nbsp;&amp;nbsp;vDtIni = Makedate($(vYTD),1&lt;STRONG&gt;,3&lt;/STRONG&gt;); will always default to mar 1, 2023. How to solve this ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 14:15:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-YTD-MTD-and-Year-Filter/m-p/2467681#M99379</guid>
      <dc:creator>NAUS123</dc:creator>
      <dc:date>2024-07-03T14:15:16Z</dc:date>
    </item>
  </channel>
</rss>

