<?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: How to calculate with pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-calculate-with-pivot-table/m-p/506411#M189319</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect! But how to solve the next expression for the column Value?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(count({$&amp;lt;Salary_ID={'col'}, Absence_ID={'vac'}&amp;gt;} DISTINCT Start_Date))*(sum({$&amp;lt;Salary_ID={'col'}, Absence_ID={'vac'}&amp;gt;} Unit_Price))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Dec 2013 11:31:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-12-19T11:31:26Z</dc:date>
    <item>
      <title>How to calculate with pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-with-pivot-table/m-p/506409#M189317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pivot table with to calculations that doesen't give me the right value.I have the right values for every row when I expand the table but when the table is collapsed the "total" is wrong. Se example below:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="collapsed.bmp" class="jive-image" src="https://community.qlik.com/legacyfs/online/50664_collapsed.bmp" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="expand.bmp" class="jive-image" src="https://community.qlik.com/legacyfs/online/50665_expand.bmp" /&gt;&lt;/P&gt;&lt;P&gt;Expression for num days:&lt;/P&gt;&lt;P&gt;count({$&amp;lt;Salary_ID={'col'}, Absence_ID={'vac'}&amp;gt;} DISTINCT Start_Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression for Value:&lt;/P&gt;&lt;P&gt;(count({$&amp;lt;Salary_ID={'col'}, Absence_ID={'vac'}&amp;gt;} DISTINCT Start_Date))*(sum({$&amp;lt;Salary_ID={'col'}, Absence_ID={'vac'}&amp;gt;} Unit_Price)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggestions to solve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 11:13:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-with-pivot-table/m-p/506409#M189317</guid>
      <dc:creator />
      <dc:date>2013-12-19T11:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate with pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-with-pivot-table/m-p/506410#M189318</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;Well, technically the totals are correct. You did ask for &lt;STRONG&gt;&lt;EM&gt;distinct&lt;/EM&gt;&lt;/STRONG&gt; start dates. Perhaps you want something like this instead:&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt; sum(aggr(count({$&amp;lt;Salary_ID={'col'}, Absence_ID={'vac'}&amp;gt;} DISTINCT Start_Date), Account_..., Home_CC,Employee_ID))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 11:19:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-with-pivot-table/m-p/506410#M189318</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-12-19T11:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate with pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-with-pivot-table/m-p/506411#M189319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect! But how to solve the next expression for the column Value?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(count({$&amp;lt;Salary_ID={'col'}, Absence_ID={'vac'}&amp;gt;} DISTINCT Start_Date))*(sum({$&amp;lt;Salary_ID={'col'}, Absence_ID={'vac'}&amp;gt;} Unit_Price))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 11:31:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-with-pivot-table/m-p/506411#M189319</guid>
      <dc:creator />
      <dc:date>2013-12-19T11:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate with pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-with-pivot-table/m-p/506412#M189320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Gysbert for your reply. I solved the second question I had.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 12:01:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-with-pivot-table/m-p/506412#M189320</guid>
      <dc:creator />
      <dc:date>2013-12-19T12:01:37Z</dc:date>
    </item>
  </channel>
</rss>

