<?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 PivotTable with multiple conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/PivotTable-with-multiple-conditions/m-p/1350404#M415124</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;I have a complicated pivot table. It uses a lot of expressions from three tables, so it's getting me a headache..&lt;/P&gt;&lt;P&gt;In this table, I have a field called "Mes"(Month in Spanish), but I also have a selector for the same field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to sum a value only for the selected months. For this, I'm using an expression like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(isNull(Mes)),&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; Sum(VolumenReal/1000)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; ,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Sum({&amp;lt;Mes=&amp;gt;}VolumenReal)/1000&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;The trouble with this, is that if I select more than one moth, the "total" line ignores the month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;I've tryied with this other condition:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if(Not(GetSelectedCount(Mes)&amp;gt;1 OR Not(IsNull(Mes))),&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which works as expected, except that it ignores the non-selected months, and show me values for all months (like second image)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me please?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/159170_QV1.png" style="height: 306px; width: 620px;" /&gt;&lt;IMG alt="QV2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/159171_QV2.png" style="height: 261px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Apr 2017 19:44:53 GMT</pubDate>
    <dc:creator>cristian_av</dc:creator>
    <dc:date>2017-04-05T19:44:53Z</dc:date>
    <item>
      <title>PivotTable with multiple conditions</title>
      <link>https://community.qlik.com/t5/QlikView/PivotTable-with-multiple-conditions/m-p/1350404#M415124</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;I have a complicated pivot table. It uses a lot of expressions from three tables, so it's getting me a headache..&lt;/P&gt;&lt;P&gt;In this table, I have a field called "Mes"(Month in Spanish), but I also have a selector for the same field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to sum a value only for the selected months. For this, I'm using an expression like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(isNull(Mes)),&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; Sum(VolumenReal/1000)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; ,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Sum({&amp;lt;Mes=&amp;gt;}VolumenReal)/1000&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;The trouble with this, is that if I select more than one moth, the "total" line ignores the month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;I've tryied with this other condition:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if(Not(GetSelectedCount(Mes)&amp;gt;1 OR Not(IsNull(Mes))),&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which works as expected, except that it ignores the non-selected months, and show me values for all months (like second image)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me please?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/159170_QV1.png" style="height: 306px; width: 620px;" /&gt;&lt;IMG alt="QV2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/159171_QV2.png" style="height: 261px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2017 19:44:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PivotTable-with-multiple-conditions/m-p/1350404#M415124</guid>
      <dc:creator>cristian_av</dc:creator>
      <dc:date>2017-04-05T19:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: PivotTable with multiple conditions</title>
      <link>https://community.qlik.com/t5/QlikView/PivotTable-with-multiple-conditions/m-p/1350405#M415125</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;if(isNull(Mes)),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; Sum(VolumenReal/1000)&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;,&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Sum(&lt;STRONG style="color: #ff0000;"&gt;{&amp;lt;Mes=&amp;gt;}&lt;/STRONG&gt;VolumenReal)/1000&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;The set analysis (in red) is telling QV to ignore selections in the Mes field. Just remove that from the expression.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2017 22:52:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PivotTable-with-multiple-conditions/m-p/1350405#M415125</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-04-05T22:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: PivotTable with multiple conditions</title>
      <link>https://community.qlik.com/t5/QlikView/PivotTable-with-multiple-conditions/m-p/1350406#M415126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally I solved with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(RowNo()&amp;gt;0 AND IsNull(Mes),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; Sum(VolumenReal/1000)&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;,&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Sum({&amp;lt;Mes=&amp;gt;}VolumenReal)/1000&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 12:13:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PivotTable-with-multiple-conditions/m-p/1350406#M415126</guid>
      <dc:creator>cristian_av</dc:creator>
      <dc:date>2017-04-06T12:13:36Z</dc:date>
    </item>
  </channel>
</rss>

