<?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: Partial sum in incorrect for table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2533220#M1226709</link>
    <description>&lt;P&gt;Take this as starting point:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/How-to-use-Master-Calendar-and-Date-Values/ta-p/1495741" target="_blank"&gt;How to use - Master-Calendar and Date-Values - Qlik Community - 1495741&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Oct 2025 10:00:37 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2025-10-13T10:00:37Z</dc:date>
    <item>
      <title>Partial sum in incorrect for table</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2532844#M1226700</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dipti123_0-1759916873419.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184078iDC02ECE75434E285/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dipti123_0-1759916873419.png" alt="Dipti123_0-1759916873419.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have this table where i want to show on first day of month the cumulative amount&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;below expression i Used but i gives me incorrect total&amp;nbsp;&lt;/P&gt;&lt;P&gt;If(&lt;BR /&gt;Date([Data ordine]) = MonthStart(Today()) and&lt;BR /&gt;Month([Data ordine]) = Month(Today()) and&lt;BR /&gt;Year([Data ordine]) = Year(Today()),&lt;/P&gt;&lt;P&gt;Sum(Total If(&lt;BR /&gt;Archivio = 'O' and&lt;BR /&gt;Date([Data ordine]) &amp;lt;= MonthStart(Today()) and&lt;BR /&gt;Month([Data consegna]) = Month(Today()) and&lt;BR /&gt;Year([Data consegna]) = Year(Today()),&lt;BR /&gt;Importo&lt;BR /&gt;)),&lt;BR /&gt;Sum({&amp;lt;Archivio = {'O'}&amp;gt;} Importo)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;in fonrt of 01/10/2025 it is sgowing correct value but its doesnot add it in partial sum wha is solution to this&amp;nbsp;&lt;BR /&gt;Please help ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Oct 2025 09:51:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2532844#M1226700</guid>
      <dc:creator>Dipti123</dc:creator>
      <dc:date>2025-10-08T09:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Partial sum in incorrect for table</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2532847#M1226701</link>
      <description>Many many thanks in advance for any help anyone can offer me.</description>
      <pubDate>Wed, 08 Oct 2025 09:59:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2532847#M1226701</guid>
      <dc:creator>Dipti123</dc:creator>
      <dc:date>2025-10-08T09:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Partial sum in incorrect for table</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2532995#M1226702</link>
      <description>&lt;P&gt;By using a simple: sum(Field) the partial result is always the sum of all single rows. But as far as any conditions are applied or any kind of rates like: sum(Field) / count(Field) the partial results are NOT mandatory the sum of the rows.&lt;/P&gt;&lt;P&gt;In such cases you may need an aggr() wrapping to enforce a summing of the rows. This would look like:&lt;/P&gt;&lt;P&gt;sum(aggr(YourExpression, Dim1, Dim2))&lt;/P&gt;&lt;P&gt;whereby&amp;nbsp;Dim1 &amp;amp; Dim2 are placeholder for the dimensional context in which the calculation should be performed (mostly the dimension of the object - but not mandatory).&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2025 13:02:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2532995#M1226702</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-10-09T13:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Partial sum in incorrect for table</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2533204#M1226703</link>
      <description>&lt;P&gt;sum(aggr(If(&lt;BR /&gt;Date([Data ordine]) = MonthStart(Today())and&lt;BR /&gt;Month([Data ordine]) = Month(Today()) and&lt;BR /&gt;Year([Data ordine]) = Year(Today()),&lt;BR /&gt;Sum(Total If(&lt;BR /&gt;Archivio = 'O' and&lt;BR /&gt;Date([Data ordine]) &amp;lt;= MonthStart(Today()) and&lt;BR /&gt;Month([Data consegna]) = Month(Today()) and&lt;BR /&gt;Year([Data consegna]) = Year(Today()),&lt;BR /&gt;Importo&lt;BR /&gt;)),&lt;BR /&gt;Sum({&amp;lt;Archivio = {'O'}&amp;gt;} Importo)&lt;BR /&gt;), Year([Data ordine]), Month([Data ordine]),Day([Data ordine])))&lt;BR /&gt;&lt;BR /&gt;it return Zero&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="Dipti123_0-1760345903171.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184191i6F28686B655FB6AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dipti123_0-1760345903171.png" alt="Dipti123_0-1760345903171.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 08:58:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2533204#M1226703</guid>
      <dc:creator>Dipti123</dc:creator>
      <dc:date>2025-10-13T08:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Partial sum in incorrect for table</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2533205#M1226704</link>
      <description>&lt;P&gt;I'm not sure, but I can see lots of issue/scope for optimization in your expression&lt;/P&gt;&lt;P&gt;1: if&amp;nbsp;Date([Data ordine]) = MonthStart(Today()) is true it mean it is from same year &amp;amp; same month only then why you are doing additional 2 comparisons by adding "Month([Data ordine]) = Month(Today()) and&lt;BR /&gt;Year([Data ordine]) = Year(Today())"&lt;/P&gt;&lt;P&gt;2: one 1st condition is true then inside that you are comparing&amp;nbsp;Date([Data ordine]) &amp;lt;= MonthStart(Today()) this condition, which is never going to be true, so your inside sum is never going to work&lt;/P&gt;&lt;P&gt;3: it is not working because you are writing naked expression in aggr()&lt;/P&gt;&lt;P&gt;syntax like Sum(aggr(&lt;STRONG&gt;Sum()&lt;/STRONG&gt;,fieldName1,FieldName2))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant Sangle&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 09:24:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2533205#M1226704</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2025-10-13T09:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Partial sum in incorrect for table</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2533207#M1226705</link>
      <description>&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;On the first day of the month (01/10/2025):&lt;/STRONG&gt;&lt;BR /&gt;The value should represent a &lt;STRONG&gt;cumulative delivery total&lt;/STRONG&gt; where:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Order date (Data ordine) ≤ 01/10/2025&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Delievery Month (Data Consegna)= October 2025&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Archivio='O'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;On all other days of October:&lt;/STRONG&gt;&lt;BR /&gt;The value should represent the &lt;STRONG&gt;individual daily delivery amount&lt;/STRONG&gt; for that specific delivery date.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;In the partial sum or total row:&lt;/STRONG&gt;&lt;BR /&gt;Qlik should add up the &lt;STRONG&gt;cumulative value from the 1st day&lt;/STRONG&gt; + all &lt;STRONG&gt;individual day amounts&lt;/STRONG&gt; for the rest of the month.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;this is what imtrying to achieve&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please guide it wil help me alot&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/42758"&gt;@PrashantSangle&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 09:39:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2533207#M1226705</guid>
      <dc:creator>Dipti123</dc:creator>
      <dc:date>2025-10-13T09:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Partial sum in incorrect for table</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2533208#M1226706</link>
      <description>&lt;P&gt;The 3. from&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/42758"&gt;@PrashantSangle&lt;/a&gt;&amp;nbsp;means more precise: each defined dimension in an aggr() as well as in TOTAL or a set analysis (the left part) must be native fields - expressions won't be supported in these places.&lt;/P&gt;&lt;P&gt;Beside this it's not recommended to use calculated dimensions like: year(MyDate) within the UI else defining them appropriate within the data-model which is quite simple by period-information with a master-calendar.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 09:37:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2533208#M1226706</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-10-13T09:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Partial sum in incorrect for table</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2533213#M1226707</link>
      <description>&lt;P&gt;Can you please guide how can i add it using script as im new to qlikview&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It will helpful .Please&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 09:47:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2533213#M1226707</guid>
      <dc:creator>Dipti123</dc:creator>
      <dc:date>2025-10-13T09:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Partial sum in incorrect for table</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2533218#M1226708</link>
      <description>&lt;P&gt;&lt;SPAN&gt;sum(aggr(If(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Date([Data ordine]) = MonthStart(Today())&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sum(Total If(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Archivio = 'O' and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Date([Data ordine]) &amp;lt;= MonthStart(Today()) and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Month([Data consegna]) = Month(Today()) and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Year([Data consegna]) = Year(Today()),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Importo&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sum({&amp;lt;Archivio = {'O'}&amp;gt;} Importo)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;), Girono)&lt;BR /&gt;&lt;BR /&gt;correct ?&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/42758"&gt;@PrashantSangle&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 09:59:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2533218#M1226708</guid>
      <dc:creator>Dipti123</dc:creator>
      <dc:date>2025-10-13T09:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Partial sum in incorrect for table</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2533220#M1226709</link>
      <description>&lt;P&gt;Take this as starting point:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/How-to-use-Master-Calendar-and-Date-Values/ta-p/1495741" target="_blank"&gt;How to use - Master-Calendar and Date-Values - Qlik Community - 1495741&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 10:00:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2533220#M1226709</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-10-13T10:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Partial sum in incorrect for table</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2533221#M1226710</link>
      <description>&lt;P&gt;Okay .Thank you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 10:02:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2533221#M1226710</guid>
      <dc:creator>Dipti123</dc:creator>
      <dc:date>2025-10-13T10:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Partial sum in incorrect for table</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2533226#M1226711</link>
      <description>&lt;P&gt;&lt;BR /&gt;Could you please confirm ?&lt;BR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/42758"&gt;@PrashantSangle&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 10:23:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2533226#M1226711</guid>
      <dc:creator>Dipti123</dc:creator>
      <dc:date>2025-10-13T10:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Partial sum in incorrect for table</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2533244#M1226712</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp; As per the link you shared I studied the post&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FirstOrderDatePerMonth:&lt;BR /&gt;LOAD&lt;BR /&gt;Year([Data ordine]) AS YearDel,&lt;BR /&gt;Month([Data ordine]) AS MonthDel,&lt;BR /&gt;Min([Data ordine]) AS FirstOrderDate&lt;BR /&gt;RESIDENT FATTI&lt;BR /&gt;WHERE Archivio = 'O'&lt;BR /&gt;GROUP BY&lt;BR /&gt;Year([Data ordine]),&lt;BR /&gt;Month([Data ordine]);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Deliveries_Cumulative:&lt;BR /&gt;LOAD&lt;BR /&gt;[Data ordine],&lt;BR /&gt;[Data consegna],&lt;BR /&gt;Importo,&lt;BR /&gt;Archivio,&lt;BR /&gt;Year([Data ordine]) AS YearDel,&lt;BR /&gt;Month([Data ordine]) AS MonthDel&lt;BR /&gt;RESIDENT FATTI&lt;BR /&gt;WHERE Archivio='O';&lt;/P&gt;&lt;P&gt;JOIN (Deliveries_Cumulative)&lt;BR /&gt;LOAD&lt;BR /&gt;YearDel,&lt;BR /&gt;MonthDel,&lt;BR /&gt;FirstOrderDate&lt;BR /&gt;RESIDENT FirstOrderDatePerMonth;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Deliveries_Daily:&lt;BR /&gt;LOAD&lt;BR /&gt;[Data ordine],&lt;BR /&gt;[Data consegna],&lt;BR /&gt;'Daily' AS RecordType,&lt;BR /&gt;SUM(Importo) AS Importo_Result&lt;BR /&gt;RESIDENT FATTI&lt;BR /&gt;WHERE Archivio='O'&lt;BR /&gt;GROUP BY&lt;BR /&gt;[Data ordine],&lt;BR /&gt;[Data consegna];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Cumulative_Result:&lt;BR /&gt;LOAD&lt;BR /&gt;FirstOrderDate AS [Data ordine],&lt;BR /&gt;MonthStart([Data consegna]) AS [Data consegna],&lt;BR /&gt;'Cumulative' AS RecordType,&lt;BR /&gt;SUM(Importo) AS Importo_Result&lt;BR /&gt;RESIDENT Deliveries_Cumulative&lt;BR /&gt;WHERE [Data ordine] &amp;lt;= FirstOrderDate&lt;BR /&gt;GROUP BY FirstOrderDate, MonthStart([Data consegna]);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DROP TABLE FirstOrderDatePerMonth, Deliveries_Cumulative;&lt;BR /&gt;EXIT SCRIPT;&lt;BR /&gt;&lt;BR /&gt;is this correct ?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;P&gt;Dipti Ahire&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 12:19:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2533244#M1226712</guid>
      <dc:creator>Dipti123</dc:creator>
      <dc:date>2025-10-13T12:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Partial sum in incorrect for table</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2533260#M1226713</link>
      <description>&lt;P&gt;It seems to be a transfer of the logic from the UI to the data-model - which is more as above hinted - but if it could be done here it should be done there. But I could not justify if it's working against your data-set and requirements.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 12:50:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2533260#M1226713</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-10-13T12:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Partial sum in incorrect for table</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2533298#M1226714</link>
      <description>&lt;P&gt;any error are you getting after that.. I lost between brackets of that expression.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 16:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sum-in-incorrect-for-table/m-p/2533298#M1226714</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2025-10-13T16:34:39Z</dc:date>
    </item>
  </channel>
</rss>

