<?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 Calculation set expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/YTD-Calculation-set-expression/m-p/1933485#M76894</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As below&lt;/P&gt;
&lt;P&gt;sum({&amp;lt;Datefield={"&amp;gt;=&lt;SPAN&gt;$(=Date(yearstart(Max(Datefield),0,7),'&lt;STRONG&gt;YYYY-MM-DD&lt;/STRONG&gt;'))&lt;/SPAN&gt;&amp;lt;=$(=Date(Max(Datefield),'&lt;STRONG&gt;YYYY-MM-DD&lt;/STRONG&gt;'))"}&amp;gt;}Amount)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;replace&amp;nbsp;&lt;STRONG&gt;YYYY-MM-DD with the dateformat of your datefield&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;refer these posts&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Sense-Documents/Master-Calendar-Script-with-Optional-Fiscal-Year/ta-p/1692173" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Sense-Documents/Master-Calendar-Script-with-Optional-Fiscal-Year/ta-p/1692173&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/May2021/Subsystems/Client/Content/QV_QlikView/Scripting/DateAndTimeFunctions/yearstart.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/May2021/Subsystems/Client/Content/QV_QlikView/Scripting/DateAndTimeFunctions/yearstart.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Dates-in-Set-Analysis/ba-p/1472511" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Dates-in-Set-Analysis/ba-p/1472511&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 May 2022 09:19:51 GMT</pubDate>
    <dc:creator>vinieme12</dc:creator>
    <dc:date>2022-05-20T09:19:51Z</dc:date>
    <item>
      <title>YTD Calculation set expression</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-Calculation-set-expression/m-p/1933345#M76875</link>
      <description>&lt;P&gt;I am trying to calculate cumulative year to date within an app for a financial year from July to June.&lt;/P&gt;
&lt;P&gt;My data contains multiple financial years and already contains a field that maps the date to the financial year.&lt;/P&gt;
&lt;P&gt;The date field is month end date, which takes the values 31/07/2021, 31/08/2021 etc.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ideally I am looking for a set expression that looks for the sum of all values up to the selected date. So if a user selects FY22 and month August, the script would be something like&lt;/P&gt;
&lt;P&gt;sum( {Set expression for July} to {Selected Month} value)&lt;/P&gt;
&lt;P&gt;Could anyone please offer some help here?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 01:59:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-Calculation-set-expression/m-p/1933345#M76875</guid>
      <dc:creator>GrantBooth</dc:creator>
      <dc:date>2022-05-20T01:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Calculation set expression</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-Calculation-set-expression/m-p/1933485#M76894</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As below&lt;/P&gt;
&lt;P&gt;sum({&amp;lt;Datefield={"&amp;gt;=&lt;SPAN&gt;$(=Date(yearstart(Max(Datefield),0,7),'&lt;STRONG&gt;YYYY-MM-DD&lt;/STRONG&gt;'))&lt;/SPAN&gt;&amp;lt;=$(=Date(Max(Datefield),'&lt;STRONG&gt;YYYY-MM-DD&lt;/STRONG&gt;'))"}&amp;gt;}Amount)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;replace&amp;nbsp;&lt;STRONG&gt;YYYY-MM-DD with the dateformat of your datefield&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;refer these posts&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Sense-Documents/Master-Calendar-Script-with-Optional-Fiscal-Year/ta-p/1692173" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Sense-Documents/Master-Calendar-Script-with-Optional-Fiscal-Year/ta-p/1692173&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/May2021/Subsystems/Client/Content/QV_QlikView/Scripting/DateAndTimeFunctions/yearstart.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/May2021/Subsystems/Client/Content/QV_QlikView/Scripting/DateAndTimeFunctions/yearstart.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Dates-in-Set-Analysis/ba-p/1472511" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Dates-in-Set-Analysis/ba-p/1472511&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 09:19:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-Calculation-set-expression/m-p/1933485#M76894</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-05-20T09:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Calculation set expression</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-Calculation-set-expression/m-p/1933995#M76939</link>
      <description>&lt;P&gt;Thanks mate that was exactly what I was after&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2022 22:37:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-Calculation-set-expression/m-p/1933995#M76939</guid>
      <dc:creator>GrantBooth</dc:creator>
      <dc:date>2022-05-22T22:37:35Z</dc:date>
    </item>
  </channel>
</rss>

