<?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: Consider 0 sales for fractile calculation in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Consider-0-sales-for-fractile-calculation/m-p/2426896#M96228</link>
    <description>&lt;P&gt;PFA, When I tried in Qlik I got 1.9 not 2.6.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2024 05:51:20 GMT</pubDate>
    <dc:creator>Dataintellinalytics</dc:creator>
    <dc:date>2024-03-05T05:51:20Z</dc:date>
    <item>
      <title>Consider 0 sales for fractile calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Consider-0-sales-for-fractile-calculation/m-p/2415285#M95039</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;We have an interesting problem. We have a sales table and a stock table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We'd like to calculate the top 20% fractile over the Average number of units sold per weeks selected.&lt;/P&gt;
&lt;P&gt;However, using &lt;STRONG&gt;=Fractile(total Aggr([Average Units per Week], Product), 0.8)&amp;nbsp;&lt;/STRONG&gt;does not yield the right result and that's because the 0 sold items aren't shown. But these items do have stock on hand.&lt;/P&gt;
&lt;P&gt;This most likely happens because the items not sold do not have a transaction date and therefore when weeks are selected, they disappear. How can we get around this?&lt;/P&gt;
&lt;P&gt;Attached an Excel file with example data. (Expected to have) is what we want :). Top 20% fractile should be 1,9 and not 2,6.&lt;/P&gt;
&lt;P&gt;Thanks!!!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 15:52:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Consider-0-sales-for-fractile-calculation/m-p/2415285#M95039</guid>
      <dc:creator>TDQlik</dc:creator>
      <dc:date>2024-02-06T15:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Consider 0 sales for fractile calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Consider-0-sales-for-fractile-calculation/m-p/2426896#M96228</link>
      <description>&lt;P&gt;PFA, When I tried in Qlik I got 1.9 not 2.6.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 05:51:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Consider-0-sales-for-fractile-calculation/m-p/2426896#M96228</guid>
      <dc:creator>Dataintellinalytics</dc:creator>
      <dc:date>2024-03-05T05:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Consider 0 sales for fractile calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Consider-0-sales-for-fractile-calculation/m-p/2427161#M96240</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A id="link_11" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.qlik.com/t5/user/viewprofilepage/user-id/290688" target="_self" aria-label="View Profile of Dataintellinalytics" aria-describedby="userProfileCard-290688"&gt;&lt;SPAN class=""&gt;Dataintellinalytics&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for your effort and time spent on it.&lt;/P&gt;
&lt;P&gt;I'm fairly certain it worked in Qlik Sense because the 0s are existing as rows in the fact in the Excel I provided. A true replication would be to have Products 19-25 exist in the Stock fact table but not in the Sales fact table, then put those together and try again.&lt;/P&gt;
&lt;P&gt;Our issue is indeed that the 0 does not exist as a row, it is Qlik's auto-population of the row in the table visualization because it has Stock, but no Sales.&lt;/P&gt;
&lt;P&gt;Sadly our issue still persists today. Thank you for your reply though!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 13:29:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Consider-0-sales-for-fractile-calculation/m-p/2427161#M96240</guid>
      <dc:creator>TDQlik</dc:creator>
      <dc:date>2024-03-05T13:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Consider 0 sales for fractile calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Consider-0-sales-for-fractile-calculation/m-p/2428230#M96345</link>
      <description>&lt;P&gt;The simplest approach is to create the missing data as NULL/ZERO records. Yes, it will need some efforts within the data-model then everything else will be much more expensive.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 11:42:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Consider-0-sales-for-fractile-calculation/m-p/2428230#M96345</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-03-07T11:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Consider 0 sales for fractile calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Consider-0-sales-for-fractile-calculation/m-p/2428351#M96354</link>
      <description>&lt;P&gt;Understood the issue,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;one quick solution would be to create a temp table in script by doing a left join Stock with Sales with all required columns, solely for the purpose of doing Fractile in UI.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Meanwhile am looking for other possible solutions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 15:21:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Consider-0-sales-for-fractile-calculation/m-p/2428351#M96354</guid>
      <dc:creator>Dataintellinalytics</dc:creator>
      <dc:date>2024-03-07T15:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Consider 0 sales for fractile calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Consider-0-sales-for-fractile-calculation/m-p/2429145#M96416</link>
      <description>&lt;P&gt;&lt;BR /&gt;With this expression Sum([Avg Units Per Week]) + Sum({$&amp;lt;Product={"*"}&amp;gt;} 0) we can capture Product with no sales but unfortunately couldn't make it work along with Fractile function.&lt;/P&gt;
&lt;P&gt;variable -&amp;gt; Test = Sum([Avg Units Per Week]) + Sum({$&amp;lt;Product={"*"}&amp;gt;} 0)&lt;BR /&gt;Chart Exp -&amp;gt; Fractile( Aggr(nodistinct $(Test),Product), 0.8)&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 05:57:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Consider-0-sales-for-fractile-calculation/m-p/2429145#M96416</guid>
      <dc:creator>Dataintellinalytics</dc:creator>
      <dc:date>2024-03-11T05:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Consider 0 sales for fractile calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Consider-0-sales-for-fractile-calculation/m-p/2429176#M96421</link>
      <description>&lt;P&gt;Thanks a lot&amp;nbsp;&lt;A id="link_25" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.qlik.com/t5/user/viewprofilepage/user-id/290688" target="_self" aria-label="View Profile of Dataintellinalytics" aria-describedby="userProfileCard-290688"&gt;&lt;SPAN class=""&gt;Dataintellinalytics!&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I'll give that a shot when I'm able to and report back!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 07:53:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Consider-0-sales-for-fractile-calculation/m-p/2429176#M96421</guid>
      <dc:creator>TDQlik</dc:creator>
      <dc:date>2024-03-11T07:53:14Z</dc:date>
    </item>
  </channel>
</rss>

