<?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: YTD In Qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-In-Qlikview/m-p/1418708#M428290</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you want YTD values, for ex. if you select Feb, you must have the sum for Jan,Feb. Since this is the intent, your &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vMinYearMonth should not depend on the selected month and must be fixed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you haven't fixed it, when you select Feb, it selects both &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vMinYearMonth and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vMaxYearMonth as Feb for the selected year and similarly for any other selected month.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Just add Month= in your &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vMinYearMonth&amp;nbsp; set analysis expression.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I hope this would work.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Praty&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ush&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Nov 2017 10:49:44 GMT</pubDate>
    <dc:creator>prat1507</dc:creator>
    <dc:date>2017-11-06T10:49:44Z</dc:date>
    <item>
      <title>YTD In Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-In-Qlikview/m-p/1418705#M428287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two fields year and month as text.&lt;/P&gt;&lt;P&gt;I want to calculate YTD for current selected Month by the user.&lt;/P&gt;&lt;P&gt;Thus if the user selects jan it should give sum of sales for Jan only if they select Feb they should get for Jan and feb and hence forth.&lt;/P&gt;&lt;P&gt;I wrote the following code:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;MonthYear={"&amp;gt;=$(=vMinYearMonth)&amp;lt;=$(=vMaxYearMonth)"}&amp;gt;}[Volume])&lt;/P&gt;&lt;P&gt;I created a field YearMonth by converting Month into numbers and concatenating with Year.&lt;/P&gt;&lt;P&gt;Thus vminyearmonth is min &lt;SPAN style="font-size: 13.3333px;"&gt;YearMonth for any selected Month,similary &lt;SPAN style="font-size: 13.3333px;"&gt;vMaxYearMonth is max of &lt;SPAN style="font-size: 13.3333px;"&gt;YearMonth&amp;nbsp; for any selected yearmonth(In this case the selected month).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;But the sum I get is only for the selected month not YTD.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;what is it that I am doing wrong.&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;Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 10:38:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-In-Qlikview/m-p/1418705#M428287</guid>
      <dc:creator>rahulsingh12</dc:creator>
      <dc:date>2017-11-06T10:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: YTD In Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-In-Qlikview/m-p/1418706#M428288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rahul, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try This,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;Year=, Month=, Quarter=, Week=, DateField=, DateNum={"&amp;gt;=$(=Num(YearStart(Max(DateNum))))&amp;lt;=$(=Max(DateNum))"}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 10:43:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-In-Qlikview/m-p/1418706#M428288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-06T10:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: YTD In Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-In-Qlikview/m-p/1418707#M428289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should take a look in this post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-6163"&gt;YTQ, QTD, MTD and WTD&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 10:49:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-In-Qlikview/m-p/1418707#M428289</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-06T10:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: YTD In Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-In-Qlikview/m-p/1418708#M428290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you want YTD values, for ex. if you select Feb, you must have the sum for Jan,Feb. Since this is the intent, your &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vMinYearMonth should not depend on the selected month and must be fixed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you haven't fixed it, when you select Feb, it selects both &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vMinYearMonth and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vMaxYearMonth as Feb for the selected year and similarly for any other selected month.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Just add Month= in your &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vMinYearMonth&amp;nbsp; set analysis expression.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I hope this would work.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Praty&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ush&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 10:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-In-Qlikview/m-p/1418708#M428290</guid>
      <dc:creator>prat1507</dc:creator>
      <dc:date>2017-11-06T10:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: YTD In Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-In-Qlikview/m-p/1418709#M428291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pratyush,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried that.&lt;/P&gt;&lt;P&gt;But it doesnt seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 10:51:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-In-Qlikview/m-p/1418709#M428291</guid>
      <dc:creator>rahulsingh12</dc:creator>
      <dc:date>2017-11-06T10:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: YTD In Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-In-Qlikview/m-p/1418710#M428292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We need variable definition too, Because &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vMinYearMonth need to be calculated like &lt;STRONG&gt;YearStart(Min(Year))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 10:51:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-In-Qlikview/m-p/1418710#M428292</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-11-06T10:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: YTD In Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-In-Qlikview/m-p/1418711#M428293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is working.&lt;/P&gt;&lt;P&gt;can you tell me how will I last year YTD for same selected month and year?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 12:33:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-In-Qlikview/m-p/1418711#M428293</guid>
      <dc:creator>rahulsingh12</dc:creator>
      <dc:date>2017-11-06T12:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: YTD In Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-In-Qlikview/m-p/1418712#M428294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;YearStart(AddYears(Today(),-1))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Month(AddYears(Today(),-1))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 13:12:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-In-Qlikview/m-p/1418712#M428294</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-11-06T13:12:25Z</dc:date>
    </item>
  </channel>
</rss>

