<?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: Pivot Table - Partial Sum is not working for Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Partial-Sum-is-not-working-for-Expression/m-p/816812#M288036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Perhaps these expressions will work better:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vl_BH1: count({&amp;lt;nHour={"&amp;gt;=$(vMin1)&amp;lt;$(vMax1)"},tWorkingDay={1}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;logtunid&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vl_BH2: count({&amp;lt;nHour={"&amp;gt;=$(vMin2)&amp;lt;$(vMax2)"},tWorkingDay={1}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;logtunid&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vl_BHW: count({&amp;lt;nHour={"&amp;gt;=$(vMin)&amp;lt;$(vMax)"},tWorkingDay={1}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;logtunid&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Mar 2015 11:39:28 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-03-30T11:39:28Z</dc:date>
    <item>
      <title>Pivot Table - Partial Sum is not working for Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Partial-Sum-is-not-working-for-Expression/m-p/816809#M288033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having problems in displaying sums for an expression in the Pivot Table.&amp;nbsp; The sum for other expressions (l_BH1, l_BH2, l_HW1) but for Commuting it is not displaying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For l_BH1, l_BH2, l_HW1 the expressions are as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(if(nHour &amp;gt;= $(vMin1) and nHour &amp;lt; $(vMax1) and tWorkingDay = 1,1,0))&lt;/P&gt;&lt;P&gt;=sum(if(nHour &amp;gt;= $(vMin2) and nHour &amp;lt; $(vMax2) and tWorkingDay = 1,1,0))&lt;/P&gt;&lt;P&gt;=sum(if(nHour &amp;gt;= $(vMin) and nHour &amp;lt; $(vMax) and tWorkingDay = 1,1,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for Commuting the expression is as follows:&lt;/P&gt;&lt;P&gt;( I am using the expression Labels for l_BH1 and others in the commuting expression)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(((l_BH1) + (l_BH2))=0 and (l_HW1)&amp;gt;=1,1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I open the pivot for the dates I am able to see 1 and 0 for commuting but when i hide the pivot it does not show the sum for Commuting.&amp;nbsp; (in the image below it should show 3 for commuting).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will appreciate if someone can assist me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1-partialsum.jpg" class="image-1 jive-image" height="357" src="https://community.qlik.com/legacyfs/online/82324_1-partialsum.jpg" style="max-width: 620px; height: 357.008130081301px; width: 499px;" width="499" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2-partialsum.jpg" class="jive-image image-2" height="203" src="https://community.qlik.com/legacyfs/online/82328_2-partialsum.jpg" style="height: 202.693311582382px; width: 499px;" width="499" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 09:52:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Partial-Sum-is-not-working-for-Expression/m-p/816809#M288033</guid>
      <dc:creator>sjhussain</dc:creator>
      <dc:date>2015-03-30T09:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table - Partial Sum is not working for Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Partial-Sum-is-not-working-for-Expression/m-p/816810#M288034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's because &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=if(((l_BH1) + (l_BH2))=0 and (l_HW1)&amp;gt;=1,1,0) cannot be evaluated at the lotunid dimension level. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try creating three variables:&lt;/P&gt;&lt;P&gt;vl_BH1: sum({&amp;lt;nHour={"&amp;gt;=$(vMin1)&amp;lt;$(vMax1)"},tWorkingDay={1}&amp;gt;}1)&lt;/P&gt;&lt;P&gt;vl_BH2: sum({&amp;lt;nHour={"&amp;gt;=$(vMin2)&amp;lt;$(vMax2)"},tWorkingDay={1}&amp;gt;}1)&lt;/P&gt;&lt;P&gt;vl_BHW: sum({&amp;lt;nHour={"&amp;gt;=$(vMin)&amp;lt;$(vMax)"},tWorkingDay={1}&amp;gt;}1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the variables for the expressions:&lt;/P&gt;&lt;P&gt;l_BH1: $(vl_BH1)&lt;/P&gt;&lt;P&gt;l_BH2: $(vl_BH2)&lt;/P&gt;&lt;P&gt;l_BHW: $(vl_BHW)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And for the Commuting expression:&lt;/P&gt;&lt;P&gt;sum(aggr(if(($(vl_BH1) + $(vl_BH2))=0 and $(vl_HW1)&amp;gt;=1,1,0),logtunid,dDate))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 10:06:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Partial-Sum-is-not-working-for-Expression/m-p/816810#M288034</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-03-30T10:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table - Partial Sum is not working for Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Partial-Sum-is-not-working-for-Expression/m-p/816811#M288035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much ... The commuting numbers are appearing perfectly.&amp;nbsp; Just one question I have.&amp;nbsp; The other expressions (l_BH1, l_BH2, l_HW1) are only being displayed when I click on the dDate pivot - otherwise it is showing 0/1.&lt;/P&gt;&lt;P&gt;Thank you very much.&amp;nbsp; Working perfectly!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1-partialsum-resp1.jpg" class="image-1 jive-image" height="142" src="https://community.qlik.com/legacyfs/online/82340_1-partialsum-resp1.jpg" style="height: 142px; width: 308.40625px;" width="308" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2-partialsum-resp1.jpg" class="jive-image image-2" height="151" src="https://community.qlik.com/legacyfs/online/82341_2-partialsum-resp1.jpg" style="height: 151.191103789127px; width: 309px;" width="309" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 11:25:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Partial-Sum-is-not-working-for-Expression/m-p/816811#M288035</guid>
      <dc:creator>sjhussain</dc:creator>
      <dc:date>2015-03-30T11:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table - Partial Sum is not working for Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Partial-Sum-is-not-working-for-Expression/m-p/816812#M288036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Perhaps these expressions will work better:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vl_BH1: count({&amp;lt;nHour={"&amp;gt;=$(vMin1)&amp;lt;$(vMax1)"},tWorkingDay={1}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;logtunid&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vl_BH2: count({&amp;lt;nHour={"&amp;gt;=$(vMin2)&amp;lt;$(vMax2)"},tWorkingDay={1}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;logtunid&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vl_BHW: count({&amp;lt;nHour={"&amp;gt;=$(vMin)&amp;lt;$(vMax)"},tWorkingDay={1}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;logtunid&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 11:39:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Partial-Sum-is-not-working-for-Expression/m-p/816812#M288036</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-03-30T11:39:28Z</dc:date>
    </item>
  </channel>
</rss>

