<?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: Calculating YTD in Qlick View in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2471175#M1225933</link>
    <description>&lt;P&gt;Ich denke, es gibt hier tiefergehende Herausforderungen mit den Daten und/oder Datenmodell und/oder den entsprechenden Ableitungen. Lass die YTD Bedingung und alle Formatierungen erstmal raus und nimm nur sum/avg/count des Feldes + die Quoten-Berechnung - gegen das Jahr sowie auch ein/zwei granularere Dimensionen. Werden hier jetzt die erwarteten Ergebnisse abgebildet?&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jul 2024 12:01:49 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2024-07-17T12:01:49Z</dc:date>
    <item>
      <title>Calculating YTD in Qlick View</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2459052#M1225750</link>
      <description>&lt;P&gt;I want to calculate the YTD for every given year, as seen in the table.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EL_MAR_0-1717493464654.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167341i1033B954EE535E49/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EL_MAR_0-1717493464654.png" alt="EL_MAR_0-1717493464654.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I have the following formula for the max year. Does anybody have an idea how to adapt the formula so the YTD is calculated individualy for every single year. If possible I would like a formel that can be used for the whole table instead of having a formula for each year&lt;/P&gt;
&lt;P&gt;=Num((Sum({&amp;lt;Valuationdate={"$(vYearEnd)"}&amp;gt;}[Adjusted NAV])-Sum({&amp;lt;Valuationdate={"$(vYearStart)"}&amp;gt;}[Adjusted NAV]))/Sum({&amp;lt;Valuationdate={"$(vYearStart)"}&amp;gt;}[Adjusted NAV]),'##,##%')&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:00:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2459052#M1225750</guid>
      <dc:creator>EL_MAR</dc:creator>
      <dc:date>2024-11-15T21:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating YTD in Qlick View</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2459072#M1225751</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/301490"&gt;@EL_MAR&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Check with this:&lt;BR /&gt;&lt;BR /&gt;YTD:&lt;BR /&gt;Num((&lt;BR /&gt;Sum({&amp;lt;Year(Valuationdate) = $::Year(Valuationdate), Valuationdate={"&amp;lt;=$(=Max({&amp;lt;Year(Valuationdate) = $::Year(Valuationdate)&amp;gt;} Valuationdate))"}&amp;gt;} [Adjusted NAV]) - &lt;BR /&gt;Sum({&amp;lt;Year(Valuationdate) = $::Year(Valuationdate), Valuationdate = {"$(=Date(YearStart(Max(Valuationdate)), 'YYYY-MM-DD'))"}&amp;gt;} [Adjusted NAV])&lt;BR /&gt;) / Sum({&amp;lt;Year(Valuationdate) = $::Year(Valuationdate), Valuationdate = {"$(=Date(YearStart(Max(Valuationdate)), 'YYYY-MM-DD'))"}&amp;gt;} [Adjusted NAV]),&lt;BR /&gt;'##,##%')&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;******Hope this resolve your issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the issue is solved please mark the answer with Accept as Solution &amp;amp; like it.********&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 10:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2459072#M1225751</guid>
      <dc:creator>TauseefKhan</dc:creator>
      <dc:date>2024-06-04T10:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating YTD in Qlick View</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2460612#M1225783</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;the function is not working. It says there is an error...&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 07:23:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2460612#M1225783</guid>
      <dc:creator>EL_MAR</dc:creator>
      <dc:date>2024-06-10T07:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating YTD in Qlick View</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2460620#M1225784</link>
      <description>&lt;P&gt;Check this:&lt;BR /&gt;&lt;BR /&gt;Num(&lt;BR /&gt;(Sum({&amp;lt;Year(Valuationdate) = $::Year, &lt;BR /&gt;Valuationdate = {"&amp;lt;=$(=Max({&amp;lt;Year(Valuationdate) = $::Year&amp;gt;} Valuationdate))"}&amp;gt;} &lt;BR /&gt;[Adjusted NAV]) &lt;BR /&gt;- Sum({&amp;lt;Year(Valuationdate) = $::Year, &lt;BR /&gt;Valuationdate = {"=$(=YearStart(Max({&amp;lt;Year(Valuationdate) = $::Year&amp;gt;} Valuationdate)))"}&amp;gt;} &lt;BR /&gt;[Adjusted NAV])) &lt;BR /&gt;/ Sum({&amp;lt;Year(Valuationdate) = $::Year, &lt;BR /&gt;Valuationdate = {"=$(=YearStart(Max({&amp;lt;Year(Valuationdate) = $::Year&amp;gt;} Valuationdate)))"}&amp;gt;} &lt;BR /&gt;[Adjusted NAV]), &lt;BR /&gt;'##,##%')&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 07:41:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2460620#M1225784</guid>
      <dc:creator>TauseefKhan</dc:creator>
      <dc:date>2024-06-10T07:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating YTD in Qlick View</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2462242#M1225804</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EL_MAR_0-1718287218857.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167914i62F6D525677D5168/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EL_MAR_0-1718287218857.png" alt="EL_MAR_0-1718287218857.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It still indicates that there is an errror. I copy and past it straight as it was written&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 14:01:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2462242#M1225804</guid>
      <dc:creator>EL_MAR</dc:creator>
      <dc:date>2024-06-13T14:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating YTD in Qlick View</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2462275#M1225805</link>
      <description>&lt;P&gt;You could try defining the variables with dynamic values rather than one static value.&lt;/P&gt;
&lt;P&gt;The value of vYearEnd could be defined as YearEnd(Valuationdate) i.e., so you can use your initial formula with this variable, except maybe you'll need to add an '=' in the $ expression to resolve the string.&lt;/P&gt;
&lt;PRE&gt;=Num((Sum({&amp;lt;Valuationdate={"$(=vYearEnd)"}&amp;gt;}[Adjusted NAV])&lt;BR /&gt;-Sum({&amp;lt;Valuationdate={"$(=vYearStart)"}&amp;gt;}[Adjusted NAV]))&lt;BR /&gt;/Sum({&amp;lt;Valuationdate={"$(=vYearStart)"}&amp;gt;}[Adjusted NAV]),'##,##%')&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 15:20:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2462275#M1225805</guid>
      <dc:creator>lennart_mo</dc:creator>
      <dc:date>2024-06-13T15:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating YTD in Qlick View</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2462504#M1225806</link>
      <description>&lt;P&gt;If I use the vYearEnd the formula is calculating for just the current year.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe my script helps to find a solution...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EL_MAR_0-1718353153805.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167954i6F369C29ECFA695E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EL_MAR_0-1718353153805.png" alt="EL_MAR_0-1718353153805.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 08:19:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2462504#M1225806</guid>
      <dc:creator>EL_MAR</dc:creator>
      <dc:date>2024-06-14T08:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating YTD in Qlick View</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2462638#M1225808</link>
      <description>&lt;P&gt;YTD formula:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;=Num((Sum({&amp;lt;Valuationdate={"$(vYearEnd)"}&amp;gt;}[Adjusted NAV])-Sum({&amp;lt;Valuationdate={"$(vYearStart)"}&amp;gt;}[Adjusted NAV]))/Sum({&amp;lt;Valuationdate={"$(vYearStart)"}&amp;gt;}[Adjusted NAV]),'##,##%')&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;I wanted to add the additional formulas that are in the main formula:&lt;BR /&gt;&lt;BR /&gt;vYearStart:&amp;nbsp;=Monthend(YearStart(Max(Valuationdate)))&lt;/P&gt;
&lt;P&gt;vYearEnd:&amp;nbsp;=Max(Valuationdate)&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 14:29:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2462638#M1225808</guid>
      <dc:creator>EL_MAR</dc:creator>
      <dc:date>2024-06-14T14:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating YTD in Qlick View</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2462679#M1225809</link>
      <description>&lt;P&gt;Such matching shouldn't be done within the UI else within the data-model in the calendar and this is there quite easy, for example:&lt;/P&gt;
&lt;P&gt;if(daynumberofyear(Date) &amp;lt; daynumberofyear(today()), 1, 0) as YTD,&lt;BR /&gt;daynumberofyear(Date) as DayNumber&lt;/P&gt;
&lt;P&gt;and then an expression might be look like:&lt;/P&gt;
&lt;P&gt;sum({&amp;lt; YTD = {1}&amp;gt;} Value)&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 16:53:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2462679#M1225809</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-06-14T16:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating YTD in Qlick View</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2462698#M1225810</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/301490"&gt;@EL_MAR&lt;/a&gt;&amp;nbsp;, criando uma tabela simples e usando a dimensão de ANO, cria a medida&amp;nbsp;RangeSum(Above(Sum([Valor]), 0, RowNo())).&lt;BR /&gt;&lt;BR /&gt;Acredito que seja suficiente para trazer o acumulado ano a ano. Seria isso?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 18:32:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2462698#M1225810</guid>
      <dc:creator>juliano_arruda</dc:creator>
      <dc:date>2024-06-14T18:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating YTD in Qlick View</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2463068#M1225824</link>
      <description>&lt;P&gt;Der Tipp&amp;nbsp;war super!! Es klappt wenn ich =YTD auf einem Textfeld eingebe, dann kommt auch das richtige Ergebnis aber sobald ich es in die Tabelle packe ist das Ergebnis falsch.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Ich habe das so in mein Skript geladen:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EL_MAR_0-1718634645288.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168024iA04E8E9BFC5AE5C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EL_MAR_0-1718634645288.png" alt="EL_MAR_0-1718634645288.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So sah die Formel aus:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EL_MAR_1-1718634843715.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168025i71E092AD168969E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EL_MAR_1-1718634843715.png" alt="EL_MAR_1-1718634843715.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;amp; das Ergebnis so:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EL_MAR_2-1718634887752.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168026i3B87727CED77BBCA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EL_MAR_2-1718634887752.png" alt="EL_MAR_2-1718634887752.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Das YTD sollte aber für 2023 Bspw. 3,41% sein. Hatte schon ein wenig rumprobiert aber konnte das Ergebnis nicht erreichen.&lt;BR /&gt;&lt;BR /&gt;Hast du vielleicht eine Idee woran es liegen könnte?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 14:37:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2463068#M1225824</guid>
      <dc:creator>EL_MAR</dc:creator>
      <dc:date>2024-06-17T14:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating YTD in Qlick View</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2463239#M1225828</link>
      <description>&lt;P&gt;Lass erstmal das num() weg, um eventuelle Fehl-Formatierungen auszuschließen. Dann erstelle noch weitere parallele Formeln, mit avg() + count() sowohl mit dem Flag in der Set Analysis, als auch ohne - und in einem Folgeschritt nimm auch mal ein/zwei weitere Dimensionen dazu, wie die Fund-Felder. Werden wirklich die erwarteten Werte angezeigt?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 06:02:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2463239#M1225828</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-06-18T06:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating YTD in Qlick View</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2463366#M1225830</link>
      <description>&lt;P&gt;Wenn ich mir die Formel so anschaue ist deine Berechnung einfach eine andere. In deiner ursprünglichen Berechnung hast du ja die prozentuale Steigerung der [Adjusted NAV] im Vergleich zum Jahresanfang berechnet, aktuell summierst du alle [Adjusted NAV] Werte, für die YTD=1 gilt.&lt;/P&gt;
&lt;P&gt;Da muss also deine Formel entsprechend angepasst werden.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 10:46:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2463366#M1225830</guid>
      <dc:creator>lennart_mo</dc:creator>
      <dc:date>2024-06-18T10:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating YTD in Qlick View</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2471102#M1225932</link>
      <description>&lt;P&gt;Still searching for the right answer&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 08:09:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2471102#M1225932</guid>
      <dc:creator>EL_MAR</dc:creator>
      <dc:date>2024-07-17T08:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating YTD in Qlick View</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2471175#M1225933</link>
      <description>&lt;P&gt;Ich denke, es gibt hier tiefergehende Herausforderungen mit den Daten und/oder Datenmodell und/oder den entsprechenden Ableitungen. Lass die YTD Bedingung und alle Formatierungen erstmal raus und nimm nur sum/avg/count des Feldes + die Quoten-Berechnung - gegen das Jahr sowie auch ein/zwei granularere Dimensionen. Werden hier jetzt die erwarteten Ergebnisse abgebildet?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 12:01:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2471175#M1225933</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-07-17T12:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating YTD in Qlick View</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2471227#M1225936</link>
      <description>&lt;P&gt;Hallo &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/301490"&gt;@EL_MAR&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;Wie schon in meiner vorherigen Antwort geschrieben solltest du dir nochmal deine Formel anschauen, da diese aktuell von der in deinem ursprünglichen Post abweicht.&lt;/P&gt;
&lt;P&gt;=Num((&lt;FONT color="#FF0000"&gt;Sum({&amp;lt;Valuationdate={"$(vYearEnd)"}&amp;gt;}[Adjusted NAV])&lt;/FONT&gt;-Sum({&amp;lt;Valuationdate={"$(vYearStart)"}&amp;gt;}[Adjusted NAV]))/Sum({&amp;lt;&lt;FONT color="#000000"&gt;Valuationdate&lt;/FONT&gt;={"$(vYearStart)"}&amp;gt;}[Adjusted NAV]),'##,##%')&lt;/P&gt;
&lt;P&gt;vs&lt;/P&gt;
&lt;P&gt;=Num((&lt;FONT color="#FF0000"&gt;Sum({&amp;lt;YTD={1}&amp;gt;}[Adjusted NAV])&lt;/FONT&gt;,'##,##%')&lt;/P&gt;
&lt;P&gt;Deine neue Formel bildet also nur den rot markierten Teil aus der alten Formel ab.&lt;/P&gt;
&lt;P&gt;Anhand deines Skripts würde ich also folgende Formel vorschlagen:&lt;/P&gt;
&lt;PRE&gt;=Num(&lt;BR /&gt;(Sum({&amp;lt;YTD={1}&amp;gt;}[Adjusted NAV])&lt;BR /&gt;-Sum({&amp;lt;DayNumber={1}&amp;gt;}[Adjusted NAV]))&lt;BR /&gt;/Sum({&amp;lt;DayNumber={1}&amp;gt;}[Adjusted NAV]),'##,##%')&lt;/PRE&gt;
&lt;P&gt;Eventuell musst du auch die Bedingung für YTD = 1 anpassen, da gemäß deiner alten Formel ja nur über solche Werte eine Summe gebildet wird, für die Valuationdate = max(Valuationdate) gilt.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 14:16:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2471227#M1225936</guid>
      <dc:creator>lennart_mo</dc:creator>
      <dc:date>2024-07-17T14:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating YTD in Qlick View</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2483669#M1226131</link>
      <description>&lt;P&gt;I created a quick fix which is working for me. The thing that was weirding out the table was the dimension, because trough the dimension Year that I had and the years in the formula their interacted with oneanother. To eliminate that I left out the dimension and created the formula for YTD:&lt;/P&gt;
&lt;P&gt;=Num(&lt;BR /&gt;(Sum({&amp;lt;Valuationdate = {"$(=Date(Max({&amp;lt;Year={2024}&amp;gt;} Valuationdate)))"}&amp;gt;} [Adjusted NAV])&lt;BR /&gt;- Sum({&amp;lt;Valuationdate = {"$(=Date(Min({&amp;lt;Year={2024}&amp;gt;} Valuationdate)))"}&amp;gt;} [Adjusted NAV]))&lt;BR /&gt;/&lt;BR /&gt;Sum({&amp;lt;Valuationdate = {"$(=Date(Min({&amp;lt;Year={2024}&amp;gt;} Valuationdate)))"}&amp;gt;} [Adjusted NAV])&lt;BR /&gt;, '##,##%')&lt;/P&gt;
&lt;P&gt;In the tab Presentation I have the title 2024, as written in the example. I did that for each year and got the following table:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EL_MAR_0-1727333851544.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/172166i3FA0C64E621796DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EL_MAR_0-1727333851544.png" alt="EL_MAR_0-1727333851544.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The next Problem was to have the Ultimo Date (last working date of the month) to calculate the correct YTD. I did that in the script that filtered for Ultimo 1, so if it is Ultimo it produces a 1. With that I implemented a filter, so that just the ultimo dates are calculated. If not activated it calculates the YTD from the Min Date to the overall Max Date.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 07:08:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-YTD-in-Qlick-View/m-p/2483669#M1226131</guid>
      <dc:creator>EL_MAR</dc:creator>
      <dc:date>2024-09-26T07:08:18Z</dc:date>
    </item>
  </channel>
</rss>

