<?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 at a given moment in time selected by user in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/YTD-at-a-given-moment-in-time-selected-by-user/m-p/1591817#M43476</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jun 2019 19:17:33 GMT</pubDate>
    <dc:creator>George_Metrakos</dc:creator>
    <dc:date>2019-06-13T19:17:33Z</dc:date>
    <item>
      <title>YTD at a given moment in time selected by user</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-at-a-given-moment-in-time-selected-by-user/m-p/1591577#M43446</link>
      <description>&lt;P&gt;Hello Community!&lt;/P&gt;&lt;P&gt;I'm trying to set a Year-to-date (YTD) expression such that the user can select the point in time (could be in the past) and the expression would calculate the YTD to that point. &amp;nbsp;I'm focussed on the MonthYear as my main time dimension. &amp;nbsp;Since this is a financial application I have budget (future) data as well as historic.&lt;/P&gt;&lt;P&gt;My current expression is only returning the sum of "AMOUNT" for the MonthYear selected, ie. if the user selects May2019, (link to Year = 2019 in data model) I would expect that this would sum AMOUNT from January to May of 2019 but it only gives me the AMOUNT for the selected May2019 period instead... Any ideas?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;//YTD&lt;BR /&gt;=Sum({$&amp;lt;&lt;BR /&gt;Year={"$(=Max(Year))"},&lt;BR /&gt;MonthYear={"&amp;lt;=$(=Max(MonthYear))"}&lt;BR /&gt;&amp;gt;}AMOUNT)&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:35:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-at-a-given-moment-in-time-selected-by-user/m-p/1591577#M43446</guid>
      <dc:creator>George_Metrakos</dc:creator>
      <dc:date>2024-11-16T05:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: YTD at a given moment in time selected by user</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-at-a-given-moment-in-time-selected-by-user/m-p/1591594#M43451</link>
      <description>&lt;P&gt;May be you need MonthYear formatting added to your set analysis for MonthYear&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Sum({$&amp;lt;Year = {"$(=Max(Year))"}, MonthYear = {"&amp;lt;=$(=Date(Max(MonthYear), 'MMMYYYY'))"}&amp;gt;} AMOUNT)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 13 Jun 2019 12:32:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-at-a-given-moment-in-time-selected-by-user/m-p/1591594#M43451</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-13T12:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: YTD at a given moment in time selected by user</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-at-a-given-moment-in-time-selected-by-user/m-p/1591668#M43460</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;, I appreciate your insight- unfortunately, even the date formatting isn't giving the correct result... for some reason, the "&amp;lt;=$" would sum up every MonthYear within the current Max(Year) but it's not... any other suggestions?&lt;/P&gt;&lt;P&gt;Thanks very much!&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 14:16:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-at-a-given-moment-in-time-selected-by-user/m-p/1591668#M43460</guid>
      <dc:creator>George_Metrakos</dc:creator>
      <dc:date>2019-06-13T14:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: YTD at a given moment in time selected by user</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-at-a-given-moment-in-time-selected-by-user/m-p/1591701#M43462</link>
      <description>&lt;P&gt;Would you be able to share a sample where we can see the issue?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 14:57:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-at-a-given-moment-in-time-selected-by-user/m-p/1591701#M43462</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-13T14:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: YTD at a given moment in time selected by user</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-at-a-given-moment-in-time-selected-by-user/m-p/1591706#M43463</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I was able to figure it out- a syntax issue... the correct expression is:&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;&lt;BR /&gt;Year={$(=Max(Year))},&lt;BR /&gt;MonthYear={"&amp;lt;=$(=Max(MonthYear))"}&lt;BR /&gt;&amp;gt;}AMOUNT)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The extra " on the Year set was throwing it...&lt;/P&gt;&lt;P&gt;Thanks again for taking a look!&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 15:00:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-at-a-given-moment-in-time-selected-by-user/m-p/1591706#M43463</guid>
      <dc:creator>George_Metrakos</dc:creator>
      <dc:date>2019-06-13T15:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: YTD at a given moment in time selected by user</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-at-a-given-moment-in-time-selected-by-user/m-p/1591752#M43466</link>
      <description>&lt;P&gt;Hello again&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you still have a chance to review, the problem I have now is to build the Prior YTD using the same user selection.&lt;/P&gt;&lt;P&gt;In my example, the user selected "May2019" as the MonthYear. &amp;nbsp;Therefore, my Prior YTD sum should be from Jan 2018 to May 2018 inclusive. &amp;nbsp;I'm using:&lt;/P&gt;&lt;P&gt;In my master calendar, I have a link to MonthNum, so May is "5" so I thought I'd use this:&lt;/P&gt;&lt;P&gt;Year={"=$(=Max(Year)-1)"},&lt;BR /&gt;MonthYear=,&lt;BR /&gt;MonthNum={"&amp;lt;=$(=Max(MonthNum))"},&lt;/P&gt;&lt;P&gt;I understood that adding the "MonthYear=" would negate the user selection so that the expression can utilize it to identify the Year and Month required...&lt;/P&gt;&lt;P&gt;However, the expression is not working- any thoughts?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 15:34:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-at-a-given-moment-in-time-selected-by-user/m-p/1591752#M43466</guid>
      <dc:creator>George_Metrakos</dc:creator>
      <dc:date>2019-06-13T15:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: YTD at a given moment in time selected by user</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-at-a-given-moment-in-time-selected-by-user/m-p/1591777#M43470</link>
      <description>&lt;P&gt;Should be this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Year = {"$(=Max(Year)-1)"},&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 13 Jun 2019 17:28:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-at-a-given-moment-in-time-selected-by-user/m-p/1591777#M43470</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-13T17:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: YTD at a given moment in time selected by user</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-at-a-given-moment-in-time-selected-by-user/m-p/1591778#M43471</link>
      <description>&lt;P&gt;or&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Year = {$(=Max(Year)-1)},&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 13 Jun 2019 17:29:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-at-a-given-moment-in-time-selected-by-user/m-p/1591778#M43471</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-13T17:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: YTD at a given moment in time selected by user</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-at-a-given-moment-in-time-selected-by-user/m-p/1591817#M43476</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 19:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-at-a-given-moment-in-time-selected-by-user/m-p/1591817#M43476</guid>
      <dc:creator>George_Metrakos</dc:creator>
      <dc:date>2019-06-13T19:17:33Z</dc:date>
    </item>
  </channel>
</rss>

