<?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: Show records in pivot table based on condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-records-in-pivot-table-based-on-condition/m-p/1018356#M344859</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you should use a calculated dimension. Instead change your chart expressions so they only calculate results for SalesDoc values that do not have a tv license:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;count({&amp;lt;SalesDoc=E({&amp;lt;TVLicenseNumber={'*'}&amp;gt;}SalesDoc)&amp;gt;} distinct SalesDoc)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Apr 2016 07:24:15 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-04-13T07:24:15Z</dc:date>
    <item>
      <title>Show records in pivot table based on condition</title>
      <link>https://community.qlik.com/t5/QlikView/Show-records-in-pivot-table-based-on-condition/m-p/1018355#M344858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;I am trying to find sales transactions that show TVs sold but with &lt;SPAN style="text-decoration: underline;"&gt;NO&lt;/SPAN&gt; TV license.&amp;nbsp; I just have 1 sales table in my model showing sales of TVs and TV licenses (indicated by SaleType).&amp;nbsp; I tried this using a straight table, see below, but then discovered that there was in fact a TV license sold, but it shows on a different line which doesn’t really help me.&amp;nbsp; So the ‘&lt;EM&gt;&lt;STRONG&gt;No TV Lic’&lt;/STRONG&gt;&lt;/EM&gt; shown below in the calculated dimension would be wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" height="62" src="https://community.qlik.com/legacyfs/online/121384_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" width="633" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then used a pivot table showing sales of TVs and TV licenses per sales doc (Dimensions are SalesDoc and SaleType). &lt;/P&gt;&lt;P&gt;3 questions:&lt;/P&gt;&lt;P&gt;• Is there a better way of showing this apart from the pivot table below?&lt;/P&gt;&lt;P&gt;• If not, how do I show only Sales docs where there was a TV sold but no TV license? I.e. where TV Article = 1 and TV License is null.&lt;/P&gt;&lt;P&gt;• And then how would I show the count of this and percentage that this count is of total TVs sold?&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/121389_pastedImage_7.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 13:17:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-records-in-pivot-table-based-on-condition/m-p/1018355#M344858</guid>
      <dc:creator />
      <dc:date>2016-04-12T13:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Show records in pivot table based on condition</title>
      <link>https://community.qlik.com/t5/QlikView/Show-records-in-pivot-table-based-on-condition/m-p/1018356#M344859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you should use a calculated dimension. Instead change your chart expressions so they only calculate results for SalesDoc values that do not have a tv license:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;count({&amp;lt;SalesDoc=E({&amp;lt;TVLicenseNumber={'*'}&amp;gt;}SalesDoc)&amp;gt;} distinct SalesDoc)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 07:24:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-records-in-pivot-table-based-on-condition/m-p/1018356#M344859</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-04-13T07:24:15Z</dc:date>
    </item>
  </channel>
</rss>

