<?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 Tables and Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Tables-and-Set-Analysis/m-p/1745752#M719760</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum({$&amp;lt;Client = p({&amp;lt;[Stage] = {'Stage 1'}&amp;gt;})&amp;gt;} [No. Orders])
Sum({$&amp;lt;Client = p({&amp;lt;[Stage] = {'Stage 1'}&amp;gt;})&amp;gt;} [No. Contacts])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 507px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/40958i766184B81AB23786/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Sep 2020 19:13:25 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2020-09-21T19:13:25Z</dc:date>
    <item>
      <title>Pivot Tables and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Tables-and-Set-Analysis/m-p/1744966#M719757</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Am hoping someone can help. I have some data that is split by Client, then Stage then some measures. I'm trying to set a particular measure in a pivot table for 'Stage 2'to 'N/A' where there is no data for that client in 'Stage 1'.&lt;/P&gt;&lt;P&gt;I've attached an example with sample data (as I can't provide the real data).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mav70_0-1600414915871.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/40770i186988A5F7F51C2B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mav70_0-1600414915871.png" alt="Mav70_0-1600414915871.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the pivot table shown above (and in the qvw attached) I want to set 'Sum of Orders' to 'N/A' for 'Stage 2' where there is no data for 'Stage 1'. In thise case, that would be for 'Client 3'.&lt;/P&gt;&lt;P&gt;Any assistance would be much appreciated.&lt;/P&gt;&lt;P&gt;Thanks in advamce,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:57:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Tables-and-Set-Analysis/m-p/1744966#M719757</guid>
      <dc:creator>Mav70</dc:creator>
      <dc:date>2024-11-15T23:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Tables and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Tables-and-Set-Analysis/m-p/1745748#M719758</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you are only going to display your pivot table as shown then have you thought about using a straight table instead? You lose the ability to do roll-ups/partial sums, that you don't seem to need, but it is much easier to do logic between columns like you appear to be trying to do.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 19:01:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Tables-and-Set-Analysis/m-p/1745748#M719758</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2020-09-21T19:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Tables and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Tables-and-Set-Analysis/m-p/1745752#M719760</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum({$&amp;lt;Client = p({&amp;lt;[Stage] = {'Stage 1'}&amp;gt;})&amp;gt;} [No. Orders])
Sum({$&amp;lt;Client = p({&amp;lt;[Stage] = {'Stage 1'}&amp;gt;})&amp;gt;} [No. Contacts])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 507px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/40958i766184B81AB23786/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 19:13:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Tables-and-Set-Analysis/m-p/1745752#M719760</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-09-21T19:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Tables and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Tables-and-Set-Analysis/m-p/1745764#M719762</link>
      <description>&lt;P&gt;Thanks Sunny. Unfortunately I still need Client 3 to show but with 'Sum of Orders' to be N/A and 'Sum of Contacts' to be calculated as 5.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 20:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Tables-and-Set-Analysis/m-p/1745764#M719762</guid>
      <dc:creator>Mav70</dc:creator>
      <dc:date>2020-09-21T20:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Tables and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Tables-and-Set-Analysis/m-p/1745766#M719763</link>
      <description>&lt;P&gt;Thanks Chris. Unfortunately I need to have Stage 1 and Stage 2 as columns with each measure as sub-columns as in a Pivot.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 20:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Tables-and-Set-Analysis/m-p/1745766#M719763</guid>
      <dc:creator>Mav70</dc:creator>
      <dc:date>2020-09-21T20:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Tables and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Tables-and-Set-Analysis/m-p/1752469#M719764</link>
      <description>&lt;P&gt;Things would need to follow&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt; approach I believe in regard to Set Analysis, but if you want to keep that Client 3 line, you would need an If statement in Stage 2 using the Set Analysis to set the NA etc. I believe is the correct solution...&amp;nbsp; I am no Set Analysis guru though, so not much help on adjusting Sunny's expressions to fit the bill here, but I wanted to toss out the approach, believe that should work.&amp;nbsp; Sunny may circle back, it appears we may still be having some notification issues in Community posts letting folks know there have been subsequent posts etc...&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 14:46:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Tables-and-Set-Analysis/m-p/1752469#M719764</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-10-14T14:46:26Z</dc:date>
    </item>
  </channel>
</rss>

