<?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: Incorrect subtotals in pivot chart with conditional expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incorrect-subtotals-in-pivot-chart-with-conditional-expression/m-p/11660#M1875</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with aggr function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum ( aggr(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num(Round(Pick(Match(ValueList(vCashPlcmtLabel1,vCashPlcmntLabel2),'Current Year','Previous Year'),&lt;/P&gt;&lt;P&gt;If(Match(BO_FUND_F3_F4,'Unit Collection A/c'),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;NAV_DATE={"$(=Date(vToDate))"}&amp;gt;}LAST_DAY_UMR)) * purgechar(sum({&amp;lt;NAV_DATE={"$(=Date(vToDate))"}&amp;gt;}LAST_DAY_UMR)&amp;gt;0 ,'-')&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;SCHNAVBD_NAV_DATE={"$(=Date(vToDate))"}&amp;gt;}FUND_AMOUNT)* (-1)),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Match(BO_FUND_F3_F4,'Unit Collection A/c'),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;NAV_DATE={"$(=Date(vPrevToDate))"}&amp;gt;}LAST_DAY_UMR) * purgechar(sum({&amp;lt;NAV_DATE={"$(=Date(vPrevToDate))"}&amp;gt;}LAST_DAY_UMR)&amp;gt;0,'-')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;SCHNAVBD_NAV_DATE={"$(=Date(vPrevToDate))"}&amp;gt;}FUND_AMOUNT)* (-1)))&lt;/P&gt;&lt;P&gt; / $(vDivideNum2)),'#,##0') ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dim1,dim2,dim3 )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jun 2018 05:02:15 GMT</pubDate>
    <dc:creator>qliksus</dc:creator>
    <dc:date>2018-06-12T05:02:15Z</dc:date>
    <item>
      <title>Incorrect subtotals in pivot chart with conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-subtotals-in-pivot-chart-with-conditional-expression/m-p/11659#M1874</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;Need help regarding the sub totals displayed in pivot chart. attached is the screenshot for the same:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this i am getting the total for "Balanced Life - Individual Life" as 953520 whereas the total of that column comes to 1743630.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression used here is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Num(Round(Pick(Match(ValueList(vCashPlcmtLabel1,vCashPlcmntLabel2),'Current Year','Previous Year'),&lt;/P&gt;&lt;P&gt;If(Match(BO_FUND_F3_F4,'Unit Collection A/c'),If(sum({&amp;lt;NAV_DATE={"$(=Date(vToDate))"}&amp;gt;}LAST_DAY_UMR)&amp;lt;0,0,sum({&amp;lt;NAV_DATE={"$(=Date(vToDate))"}&amp;gt;}LAST_DAY_UMR)),Sum({&amp;lt;SCHNAVBD_NAV_DATE={"$(=Date(vToDate))"}&amp;gt;}FUND_AMOUNT)* (-1)),&lt;/P&gt;&lt;P&gt;If(Match(BO_FUND_F3_F4,'Unit Collection A/c'),If(sum({&amp;lt;NAV_DATE={"$(=Date(vPrevToDate))"}&amp;gt;}LAST_DAY_UMR)&amp;lt;0,0,sum({&amp;lt;NAV_DATE={"$(=Date(vPrevToDate))"}&amp;gt;}LAST_DAY_UMR)),Sum({&amp;lt;SCHNAVBD_NAV_DATE={"$(=Date(vPrevToDate))"}&amp;gt;}FUND_AMOUNT)* (-1)))&lt;/P&gt;&lt;P&gt; / $(vDivideNum2)),'#,##0')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 04:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-subtotals-in-pivot-chart-with-conditional-expression/m-p/11659#M1874</guid>
      <dc:creator>saimahasan</dc:creator>
      <dc:date>2018-06-12T04:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect subtotals in pivot chart with conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-subtotals-in-pivot-chart-with-conditional-expression/m-p/11660#M1875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with aggr function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum ( aggr(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num(Round(Pick(Match(ValueList(vCashPlcmtLabel1,vCashPlcmntLabel2),'Current Year','Previous Year'),&lt;/P&gt;&lt;P&gt;If(Match(BO_FUND_F3_F4,'Unit Collection A/c'),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;NAV_DATE={"$(=Date(vToDate))"}&amp;gt;}LAST_DAY_UMR)) * purgechar(sum({&amp;lt;NAV_DATE={"$(=Date(vToDate))"}&amp;gt;}LAST_DAY_UMR)&amp;gt;0 ,'-')&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;SCHNAVBD_NAV_DATE={"$(=Date(vToDate))"}&amp;gt;}FUND_AMOUNT)* (-1)),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Match(BO_FUND_F3_F4,'Unit Collection A/c'),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;NAV_DATE={"$(=Date(vPrevToDate))"}&amp;gt;}LAST_DAY_UMR) * purgechar(sum({&amp;lt;NAV_DATE={"$(=Date(vPrevToDate))"}&amp;gt;}LAST_DAY_UMR)&amp;gt;0,'-')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;SCHNAVBD_NAV_DATE={"$(=Date(vPrevToDate))"}&amp;gt;}FUND_AMOUNT)* (-1)))&lt;/P&gt;&lt;P&gt; / $(vDivideNum2)),'#,##0') ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dim1,dim2,dim3 )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 05:02:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-subtotals-in-pivot-chart-with-conditional-expression/m-p/11660#M1875</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2018-06-12T05:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect subtotals in pivot chart with conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-subtotals-in-pivot-chart-with-conditional-expression/m-p/11661#M1876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not working.... Giving blank output&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 05:48:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-subtotals-in-pivot-chart-with-conditional-expression/m-p/11661#M1876</guid>
      <dc:creator>saimahasan</dc:creator>
      <dc:date>2018-06-12T05:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect subtotals in pivot chart with conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-subtotals-in-pivot-chart-with-conditional-expression/m-p/11662#M1877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still not giving correct totals. Not considering "Unit Collection A/C" amount for totals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggets&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 05:59:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-subtotals-in-pivot-chart-with-conditional-expression/m-p/11662#M1877</guid>
      <dc:creator>saimahasan</dc:creator>
      <dc:date>2018-06-12T05:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect subtotals in pivot chart with conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-subtotals-in-pivot-chart-with-conditional-expression/m-p/11663#M1878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks... but i got the solution by myself... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 06:46:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-subtotals-in-pivot-chart-with-conditional-expression/m-p/11663#M1878</guid>
      <dc:creator>saimahasan</dc:creator>
      <dc:date>2018-06-12T06:46:41Z</dc:date>
    </item>
  </channel>
</rss>

