<?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 Change from straight table to pivot table creates 'null' values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Change-from-straight-table-to-pivot-table-creates-null-values/m-p/458426#M171145</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is very curious to me. I have a straight table that shows integer values &amp;gt;= 0 for all entries. Some of the entries, but not all, have sub-entries. eg I&lt;/P&gt;&lt;P&gt;have Aroute with two subsidiaries, Aiut Montreal and Aiut Toronto. In the straight table, it shows positive values for three fields, Capital, Customers, and Exmployees for both subsidiaries. It shows 0 - number - for for the four other fields in the table for these two companies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change the table into a pivot table, and show it fully expanded, the values for Cap, Cust, and Emp show up exactly the same as they do for the straight table. However, if I collapse the pivot table to show only the parent company, these three values suddenly become 'null'. This is highly confusing - can anyone suggest why? Thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG __jive_id="22769" class="jive-image-thumbnail jive-image" onclick="" alt="PivotExample.jpg" src="https://community.qlik.com/legacyfs/online/22769_PivotExample.jpg" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2012 18:23:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-01T18:23:08Z</dc:date>
    <item>
      <title>Change from straight table to pivot table creates 'null' values</title>
      <link>https://community.qlik.com/t5/QlikView/Change-from-straight-table-to-pivot-table-creates-null-values/m-p/458426#M171145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is very curious to me. I have a straight table that shows integer values &amp;gt;= 0 for all entries. Some of the entries, but not all, have sub-entries. eg I&lt;/P&gt;&lt;P&gt;have Aroute with two subsidiaries, Aiut Montreal and Aiut Toronto. In the straight table, it shows positive values for three fields, Capital, Customers, and Exmployees for both subsidiaries. It shows 0 - number - for for the four other fields in the table for these two companies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change the table into a pivot table, and show it fully expanded, the values for Cap, Cust, and Emp show up exactly the same as they do for the straight table. However, if I collapse the pivot table to show only the parent company, these three values suddenly become 'null'. This is highly confusing - can anyone suggest why? Thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG __jive_id="22769" class="jive-image-thumbnail jive-image" onclick="" alt="PivotExample.jpg" src="https://community.qlik.com/legacyfs/online/22769_PivotExample.jpg" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 18:23:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-from-straight-table-to-pivot-table-creates-null-values/m-p/458426#M171145</guid>
      <dc:creator />
      <dc:date>2012-10-01T18:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Change from straight table to pivot table creates 'null' values</title>
      <link>https://community.qlik.com/t5/QlikView/Change-from-straight-table-to-pivot-table-creates-null-values/m-p/458427#M171146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe your expression can't be evaluated to an unambiguous value when collapsed? What are you using as expressions? Do you use aggregation functions in your expressions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 18:28:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-from-straight-table-to-pivot-table-creates-null-values/m-p/458427#M171146</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-01T18:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Change from straight table to pivot table creates 'null' values</title>
      <link>https://community.qlik.com/t5/QlikView/Change-from-straight-table-to-pivot-table-creates-null-values/m-p/458428#M171147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's what's so confusing - they are not expressions. I do all that work in my SQL statement, e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COALESCE(COUNT(EMPLOYEES.ID),0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM dbo.Employees&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Employees.StartDate &amp;gt;= '$(vReportStart)'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Employees.StartDate &amp;lt;= '$(vReportEnd)'&lt;/P&gt;&lt;P&gt;) as EMP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the value should always be an integer; if there were no employees added, the COALESCE function converts the null value to 0. How could I use an aggr expression on what should just be an integer? If you have a suggestion, I'll try it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 18:54:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-from-straight-table-to-pivot-table-creates-null-values/m-p/458428#M171147</guid>
      <dc:creator />
      <dc:date>2012-10-01T18:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Change from straight table to pivot table creates 'null' values</title>
      <link>https://community.qlik.com/t5/QlikView/Change-from-straight-table-to-pivot-table-creates-null-values/m-p/458429#M171148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, you've got two values e.g. for expression Cust, 51 and 32, for dimension value AIROUTE.&lt;/P&gt;&lt;P&gt;If collapsed, what do you expect to see then? The sum of both values? Then use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=sum(YOURFIELDUSED)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or avg(), max(), min() etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 19:08:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-from-straight-table-to-pivot-table-creates-null-values/m-p/458429#M171148</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-01T19:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Change from straight table to pivot table creates 'null' values</title>
      <link>https://community.qlik.com/t5/QlikView/Change-from-straight-table-to-pivot-table-creates-null-values/m-p/458430#M171149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, my friend, you are correct as always. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 19:16:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-from-straight-table-to-pivot-table-creates-null-values/m-p/458430#M171149</guid>
      <dc:creator />
      <dc:date>2012-10-01T19:16:29Z</dc:date>
    </item>
  </channel>
</rss>

