<?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: Wrong total value in pivot table . in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Wrong-total-value-in-pivot-table/m-p/978234#M962231</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not Due:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (&amp;nbsp;&amp;nbsp; (TERM_CODE = 'CREDIT' or GetSelectedCount(TERM_CODE) = 0) and TERM_CODE = 'CREDIT' ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(if(EFFECTIVE_DATE&amp;lt;= LastDay1 and LastDay1-DOCUMENT_DATE&amp;lt;if(len(PUBLISHED_CREDIT_DAY)=0,0,PUBLISHED_CREDIT_DAY+1)&amp;nbsp; , $(vOSAmt))),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression tells Qlikview only to calculate when a user selects &lt;SPAN style="font-size: 13.3333px;"&gt;TERM_CODE,else give total as '0'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the expression again once.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Oct 2015 13:03:21 GMT</pubDate>
    <dc:creator>Qrishna</dc:creator>
    <dc:date>2015-10-14T13:03:21Z</dc:date>
    <item>
      <title>Wrong total value in pivot table .</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-total-value-in-pivot-table/m-p/978231#M962228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on finance oriented report , every things work fine when i select parameter . if my parameter (term_code) selection is null , then its showing wrong total value . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check my qvw , if i select term code as cash or credit&amp;nbsp; , not due , due amount and over due showing correct total , &lt;/P&gt;&lt;P&gt;if my selection is null on term code parameter , then not due column total showing value as zero and over due total is wrong . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My record value is correct , total alone showing wrong . please suggest . &lt;IMG alt="testos.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102011_testos.jpg" style="height: 149px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 12:51:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-total-value-in-pivot-table/m-p/978231#M962228</guid>
      <dc:creator />
      <dc:date>2015-10-14T12:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong total value in pivot table .</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-total-value-in-pivot-table/m-p/978232#M962229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your expressions contain a number of naked field references and this will cause problems. See &lt;A href="https://community.qlik.com/qlik-blogpost/3779"&gt;Use Aggregation Functions!&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, in the following expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt; (&amp;nbsp;&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon;"&gt;TERM_CODE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt; = 'CREDIT' &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;or&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;GetSelectedCount&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon;"&gt;TERM_CODE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;) = 0) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;and&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon;"&gt;TERM_CODE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt; = 'CREDIT' ,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon;"&gt;EFFECTIVE_DATE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;&amp;lt;= &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon;"&gt;LastDay1&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;and&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon;"&gt;LastDay1&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;-&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon;"&gt;DOCUMENT_DATE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;len&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon;"&gt;PUBLISHED_CREDIT_DAY&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;)=0,0,&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon;"&gt;PUBLISHED_CREDIT_DAY&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;+1)&amp;nbsp; , &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: gray;"&gt;$(vOSAmt)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;)),0)&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have the following problems:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;TERM_CODE is a naked field reference and could potentially be evaluated to NULL when it shouldn't&lt;/LI&gt;&lt;LI&gt;In the Sum() function, you have fields from several tables. This may lead to record duplication. You should use Set Analysis instead.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 13:01:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-total-value-in-pivot-table/m-p/978232#M962229</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-10-14T13:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong total value in pivot table .</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-total-value-in-pivot-table/m-p/978233#M962230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sriram,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I think now it is ok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 13:01:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-total-value-in-pivot-table/m-p/978233#M962230</guid>
      <dc:creator>raajaswin</dc:creator>
      <dc:date>2015-10-14T13:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong total value in pivot table .</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-total-value-in-pivot-table/m-p/978234#M962231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not Due:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (&amp;nbsp;&amp;nbsp; (TERM_CODE = 'CREDIT' or GetSelectedCount(TERM_CODE) = 0) and TERM_CODE = 'CREDIT' ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(if(EFFECTIVE_DATE&amp;lt;= LastDay1 and LastDay1-DOCUMENT_DATE&amp;lt;if(len(PUBLISHED_CREDIT_DAY)=0,0,PUBLISHED_CREDIT_DAY+1)&amp;nbsp; , $(vOSAmt))),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression tells Qlikview only to calculate when a user selects &lt;SPAN style="font-size: 13.3333px;"&gt;TERM_CODE,else give total as '0'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the expression again once.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 13:03:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-total-value-in-pivot-table/m-p/978234#M962231</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2015-10-14T13:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong total value in pivot table .</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-total-value-in-pivot-table/m-p/978235#M962232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, sriram santharaman.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, see if file attached helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read the comments in each expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 19:30:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-total-value-in-pivot-table/m-p/978235#M962232</guid>
      <dc:creator>jonas_rezende</dc:creator>
      <dc:date>2015-10-14T19:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong total value in pivot table .</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-total-value-in-pivot-table/m-p/978236#M962233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Krishna , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your Correct , Not Due and Due Amount should want to calculate when term code is Credit , else i want to display zero.&lt;/P&gt;&lt;P&gt;Record wise its working fine .&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to display total when i didn't select term code parameter , i want to show the total for credit customers alone in not due and due amount . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls suggest . &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 09:21:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-total-value-in-pivot-table/m-p/978236#M962233</guid>
      <dc:creator />
      <dc:date>2015-10-15T09:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong total value in pivot table .</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-total-value-in-pivot-table/m-p/978237#M962234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jonas , &lt;/P&gt;&lt;P&gt;thanks for your reply , its working fine for over due amount . But in not due and due amount column , &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;i want to show the total for credit customers alone . &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From&amp;nbsp; your example, not due total will be 23000 but it showing 26053 , also record wise also i want to display amount for credit customers alone in not due and due amount column . so for the customer Maison de joell , not due and amount due will be zero . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest .&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 09:26:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-total-value-in-pivot-table/m-p/978237#M962234</guid>
      <dc:creator />
      <dc:date>2015-10-15T09:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong total value in pivot table .</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-total-value-in-pivot-table/m-p/978238#M962235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hi Sriram,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;try this &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;attached file.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I couln´t check "Due Amount" column beacuse its values are 0, but i think that the expression is also correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 15:45:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-total-value-in-pivot-table/m-p/978238#M962235</guid>
      <dc:creator />
      <dc:date>2015-10-15T15:45:10Z</dc:date>
    </item>
  </channel>
</rss>

