<?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: Negating Rank() sort criteria inserts Null entry into both List-Box &amp;amp; Pivot table Bottom-10 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Negating-Rank-sort-criteria-inserts-Null-entry-into-both-List/m-p/1617621#M507755</link>
    <description>&lt;P&gt;Evan, you are likely going to need to attach sample qvw on this one, so folks can review the data model themselves and the objects and object properties in further detail...&lt;/P&gt;
&lt;P&gt;The best I have as a means to potentially provide some further help is the following Design Blog post, and it contains some further posts at the bottom of the post, just FYI.&amp;nbsp; It may give you something to help explain things, but I am not sure.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Sorry I do not have anything better for you, the only other thing would be the Help, as if you do see something not working as documented, then I would suggest opening up a support case at that point and providing us the details to replicate things at which point we would be able to potentially submit a software defect if we can replicate and there is not a fix in a newer SR for the track in which you are running.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
    <pubDate>Wed, 28 Aug 2019 12:41:57 GMT</pubDate>
    <dc:creator>Brett_Bleess</dc:creator>
    <dc:date>2019-08-28T12:41:57Z</dc:date>
    <item>
      <title>Negating Rank() sort criteria inserts Null entry into both List-Box &amp; Pivot table Bottom-10 list</title>
      <link>https://community.qlik.com/t5/QlikView/Negating-Rank-sort-criteria-inserts-Null-entry-into-both-List/m-p/1611288#M507751</link>
      <description>&lt;P&gt;Hello Qlik Community,&lt;BR /&gt;&lt;BR /&gt;I was taking a Set-Analysis course and&amp;nbsp;doing fine until&amp;nbsp;arriving at a&amp;nbsp;section that used&amp;nbsp;Rank() expression as&amp;nbsp;set-analysis modifier.&lt;BR /&gt;&lt;BR /&gt;The app had&amp;nbsp;both a list-box &amp;amp; straight table set to show 'Top-10 Selling Products', and everything was working great.&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;=&lt;/FONT&gt;&lt;FONT size="3" color="#0000ff"&gt;Aggr&lt;/FONT&gt;&lt;FONT size="3"&gt;( &lt;/FONT&gt;&lt;FONT size="3" color="#0000ff"&gt;Only&lt;/FONT&gt;&lt;FONT size="3"&gt;( {&amp;lt;&lt;/FONT&gt;&lt;FONT size="3" color="#800000"&gt;ProductName&lt;/FONT&gt;&lt;FONT size="3"&gt; = {&lt;/FONT&gt;&lt;FONT size="3" color="#800000"&gt;"=rank(Sum(LineSalesAmount)) &amp;lt;= 10"&lt;/FONT&gt;&lt;FONT size="3"&gt;}&amp;gt;} &lt;/FONT&gt;&lt;FONT size="3" color="#800000"&gt;ProductName&lt;/FONT&gt;&lt;FONT size="3"&gt;), &lt;/FONT&gt;&lt;FONT size="3" color="#800000"&gt;ProductName&lt;/FONT&gt;&lt;FONT size="3"&gt;) &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;However, when I got the idea to switch to&amp;nbsp;'Bottom-10 Selling Products' by negating the sort criteria, that's when a null value caused both the list-box &amp;amp; straight table to go awry.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;List-box:&lt;/STRONG&gt; added a negative sign in front of LineSalesAmount&lt;BR /&gt;&lt;STRONG&gt;Straight table&lt;/STRONG&gt;:&amp;nbsp; reversed the dynamic sort from descending to ascending&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I can clean up the Straight Table by checking 'Suppress When Null' and it resumes&amp;nbsp;listing 10 entries, but then it becomes misaligned with the List-Box.&lt;BR /&gt;&lt;BR /&gt;I'm confused&amp;nbsp;why&amp;nbsp;Null value gets introduced to begin with.&amp;nbsp; The data model has one table association with no null values in the fields involved.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Both the list box &amp;amp; straight table are able to detect two Products&amp;nbsp;with zero sales&amp;nbsp;in the fact table, so the "missing" element is working.&amp;nbsp; Where does that additional null come from?&lt;BR /&gt;&lt;BR /&gt;The problem&amp;nbsp;goes away when the data model is reduced to a single table, but once a single join is included, even if all fields involved are&amp;nbsp;100% populated, that null keeps showing up.&amp;nbsp;&amp;nbsp; Any ideas?&amp;nbsp; Appreciate your help, ~E&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="20190809_Community_thread_Rank_bottom_10_sort_introduced_pure_null.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16828iE73EC5B5D1F22607/image-size/large?v=v2&amp;amp;px=999" role="button" title="20190809_Community_thread_Rank_bottom_10_sort_introduced_pure_null.png" alt="20190809_Community_thread_Rank_bottom_10_sort_introduced_pure_null.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:17:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Negating-Rank-sort-criteria-inserts-Null-entry-into-both-List/m-p/1611288#M507751</guid>
      <dc:creator>evan_kurowski</dc:creator>
      <dc:date>2024-11-16T20:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Negating Rank() sort criteria inserts Null entry into both List-Box &amp; Pivot table Bottom-10</title>
      <link>https://community.qlik.com/t5/QlikView/Negating-Rank-sort-criteria-inserts-Null-entry-into-both-List/m-p/1611291#M507753</link>
      <description>&lt;P&gt;**addendum** - one quick correction, not all tables are reporting 'Perfect' key.. in the data modeler the Products table reports 'Perfect Key' for field [OrderID], but has 2 values not present in table 'Facts'.&amp;nbsp; Hovering over&amp;nbsp;[OrderID] in 'Facts' indicates 100% populated but does not indicate 'Perfect Key'.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 19:44:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Negating-Rank-sort-criteria-inserts-Null-entry-into-both-List/m-p/1611291#M507753</guid>
      <dc:creator>evan_kurowski</dc:creator>
      <dc:date>2019-08-09T19:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Negating Rank() sort criteria inserts Null entry into both List-Box &amp; Pivot table Bottom-10</title>
      <link>https://community.qlik.com/t5/QlikView/Negating-Rank-sort-criteria-inserts-Null-entry-into-both-List/m-p/1617621#M507755</link>
      <description>&lt;P&gt;Evan, you are likely going to need to attach sample qvw on this one, so folks can review the data model themselves and the objects and object properties in further detail...&lt;/P&gt;
&lt;P&gt;The best I have as a means to potentially provide some further help is the following Design Blog post, and it contains some further posts at the bottom of the post, just FYI.&amp;nbsp; It may give you something to help explain things, but I am not sure.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Sorry I do not have anything better for you, the only other thing would be the Help, as if you do see something not working as documented, then I would suggest opening up a support case at that point and providing us the details to replicate things at which point we would be able to potentially submit a software defect if we can replicate and there is not a fix in a newer SR for the track in which you are running.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 12:41:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Negating-Rank-sort-criteria-inserts-Null-entry-into-both-List/m-p/1617621#M507755</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-08-28T12:41:57Z</dc:date>
    </item>
  </channel>
</rss>

