<?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 Pivot Table - Totals Incorrect in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Totals-Incorrect/m-p/961339#M329920</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing a problem with incorrect totals showing up on the Pivot table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression that I am using is :&lt;/P&gt;&lt;P&gt;=(sum({&amp;lt;YEAR={$(vMaxYear)},Start_Date={"&amp;lt;=$(vMaxDate)"},Month1=,Type=&amp;gt;}TotalCostofActivity))/(sum({&amp;lt;YEAR={$(vMaxYear)},Start_Date={"&amp;lt;=$(vMaxDate)"},Month1=&amp;gt;}EXCHANGE_RATE))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using 3 different dimensions as given below:&lt;/P&gt;&lt;P&gt;ProcessName,&lt;/P&gt;&lt;P&gt;Activityname,&lt;/P&gt;&lt;P&gt;Month1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would greatly appreciate if anyone could help me fix this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Sep 2015 15:55:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-02T15:55:13Z</dc:date>
    <item>
      <title>Pivot Table - Totals Incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Totals-Incorrect/m-p/961339#M329920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing a problem with incorrect totals showing up on the Pivot table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression that I am using is :&lt;/P&gt;&lt;P&gt;=(sum({&amp;lt;YEAR={$(vMaxYear)},Start_Date={"&amp;lt;=$(vMaxDate)"},Month1=,Type=&amp;gt;}TotalCostofActivity))/(sum({&amp;lt;YEAR={$(vMaxYear)},Start_Date={"&amp;lt;=$(vMaxDate)"},Month1=&amp;gt;}EXCHANGE_RATE))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using 3 different dimensions as given below:&lt;/P&gt;&lt;P&gt;ProcessName,&lt;/P&gt;&lt;P&gt;Activityname,&lt;/P&gt;&lt;P&gt;Month1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would greatly appreciate if anyone could help me fix this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 15:55:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Totals-Incorrect/m-p/961339#M329920</guid>
      <dc:creator />
      <dc:date>2015-09-02T15:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table - Totals Incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Totals-Incorrect/m-p/961340#M329921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think that anyone can just guess what's wrong. You'll need to explain your problem in more detail. A sample document would be the best.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One potential issue that I can see from your definition is that your Set Analysis condition is heavily dependent on dates, while Month1 is one of your dimensions. Set Analysis cannot be sensitive to the dimension values, and that can create some unexpected issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other than that - describe your problem and possibly post a sample document that illustrates the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=HEF4KYLLE22XIQH2"&gt;QlikView Your Business: An expert guide to Business Discovery with QlikView and Qlik Sense&lt;/A&gt;&lt;IMG alt="" border="0" height="1" src="http://ir-na.amazon-adsystem.com/e/ir?t=natursyner0f-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=1118949552" style="border: none !important; margin: 0px !important;" width="1" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 16:00:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Totals-Incorrect/m-p/961340#M329921</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-09-02T16:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table - Totals Incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Totals-Incorrect/m-p/961341#M329922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your expected output? Sum of all the rows? If Yes, then try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(sum({&amp;lt;YEAR={$(vMaxYear)},Start_Date={"&amp;lt;=$(vMaxDate)"},Month1=,Type=&amp;gt;}TotalCostofActivity))/(sum({&amp;lt;YEAR={$(vMaxYear)},Start_Date={"&amp;lt;=$(vMaxDate)"},Month1=&amp;gt;}EXCHANGE_RATE)), &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;ProcessName, &lt;/SPAN&gt;Activityname, &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;&lt;STRONG&gt;Month1))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 16:01:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Totals-Incorrect/m-p/961341#M329922</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-02T16:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table - Totals Incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Totals-Incorrect/m-p/961342#M329923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe you have to aggr by your dimensions (if the problem is only on total)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;=&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;sum(&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;aggr(&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;(sum({&amp;lt;YEAR={$(vMaxYear)},Start_Date={"&amp;lt;=$(vMaxDate)"},Month1=,Type=&amp;gt;}TotalCostofActivity))/(sum({&amp;lt;YEAR={$(vMaxYear)},Start_Date={"&amp;lt;=$(vMaxDate)"},Month1=&amp;gt;}EXCHANGE_RATE))&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;, &lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;ProcessName,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Activityname,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Month1&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 16:02:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Totals-Incorrect/m-p/961342#M329923</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-09-02T16:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table - Totals Incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Totals-Incorrect/m-p/961343#M329924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Massimo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apprecite your suggestion.!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is now giving the totals Correct.&lt;/P&gt;&lt;P&gt;However, the effect of YTD on the expression is not working alright.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if I choose 'July' as the month, the table now shows data only for July month.&lt;/P&gt;&lt;P&gt;But, the requirement is to show YTD data, from Jan to July.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 16:24:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Totals-Incorrect/m-p/961343#M329924</guid>
      <dc:creator />
      <dc:date>2015-09-02T16:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table - Totals Incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Totals-Incorrect/m-p/961344#M329925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression worked just fine. The totals are correct now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I am facing issue with displaying data for YTD expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if I choose 'July' as the month, the table now shows data only for July month.&lt;/P&gt;&lt;P&gt;But, the requirement is to show YTD data, from Jan to July.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 16:27:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Totals-Incorrect/m-p/961344#M329925</guid>
      <dc:creator />
      <dc:date>2015-09-02T16:27:20Z</dc:date>
    </item>
  </channel>
</rss>

