<?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 Dividend with different ganularity levels in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dividend-with-different-ganularity-levels/m-p/939550#M982454</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there:&lt;/P&gt;&lt;P&gt;I have a Fact table with different leves of granularity, I need the result of [Unit Cost] divided by [Services] As shown in the next image:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Img01.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/96275_Img01.png" style="height: 292px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I need the total of services to be a constant for all products and families accordig with Embarcacion and YearMonth, so I used the next formula:&lt;/P&gt;&lt;P&gt;=sum (TOTAL &amp;lt;YearMonth ,Embarcacion ,Service&amp;gt; Services)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the result I get the divisor, but when I select a Family or Product, the Divisor desappear:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Img02.png" class="jive-image image-2" height="209" src="https://community.qlik.com/legacyfs/online/96276_Img02.png" style="height: 209px; width: 790.121951219512px;" width="790" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I tried with the next formula:&lt;/P&gt;&lt;P&gt;=sum (TOTAL &amp;lt;YearMonth ,Embarcacion ,Service&amp;gt; {&amp;lt;Family=,Product=&amp;gt;} Services)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Img03.png" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/96277_Img03.png" style="height: 273px; width: 620px;" /&gt; &lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;So when I select a Family or Product, the divisor Still same as I need, but shows all data as follow:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;&lt;IMG alt="Img04.png" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/96281_Img04.png" style="height: 231px; width: 620px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I keep the divisor value and respect the selection of product or family wich have different levels of granularity?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attach the QV document, a&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;ny help will be greatful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Aug 2015 17:51:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-17T17:51:13Z</dc:date>
    <item>
      <title>Dividend with different ganularity levels</title>
      <link>https://community.qlik.com/t5/QlikView/Dividend-with-different-ganularity-levels/m-p/939550#M982454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there:&lt;/P&gt;&lt;P&gt;I have a Fact table with different leves of granularity, I need the result of [Unit Cost] divided by [Services] As shown in the next image:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Img01.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/96275_Img01.png" style="height: 292px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I need the total of services to be a constant for all products and families accordig with Embarcacion and YearMonth, so I used the next formula:&lt;/P&gt;&lt;P&gt;=sum (TOTAL &amp;lt;YearMonth ,Embarcacion ,Service&amp;gt; Services)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the result I get the divisor, but when I select a Family or Product, the Divisor desappear:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Img02.png" class="jive-image image-2" height="209" src="https://community.qlik.com/legacyfs/online/96276_Img02.png" style="height: 209px; width: 790.121951219512px;" width="790" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I tried with the next formula:&lt;/P&gt;&lt;P&gt;=sum (TOTAL &amp;lt;YearMonth ,Embarcacion ,Service&amp;gt; {&amp;lt;Family=,Product=&amp;gt;} Services)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Img03.png" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/96277_Img03.png" style="height: 273px; width: 620px;" /&gt; &lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;So when I select a Family or Product, the divisor Still same as I need, but shows all data as follow:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;&lt;IMG alt="Img04.png" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/96281_Img04.png" style="height: 231px; width: 620px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I keep the divisor value and respect the selection of product or family wich have different levels of granularity?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attach the QV document, a&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;ny help will be greatful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 17:51:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividend-with-different-ganularity-levels/m-p/939550#M982454</guid>
      <dc:creator />
      <dc:date>2015-08-17T17:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dividend with different ganularity levels</title>
      <link>https://community.qlik.com/t5/QlikView/Dividend-with-different-ganularity-levels/m-p/939551#M982455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like&lt;/P&gt;&lt;P&gt;=sum(aggr(sum ({&amp;lt;Family=,Product=&amp;gt;} Services),YearMonth,Embarcacion,Service))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you shouldn't see any issues with the existing expression when you use it as denomnator .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: Changed to outer sum() aggregation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 18:02:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividend-with-different-ganularity-levels/m-p/939551#M982455</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-17T18:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dividend with different ganularity levels</title>
      <link>https://community.qlik.com/t5/QlikView/Dividend-with-different-ganularity-levels/m-p/939552#M982456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your quik response swuehl, it works, I just make a little adjusments for my own dashboard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 18:00:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividend-with-different-ganularity-levels/m-p/939552#M982456</guid>
      <dc:creator />
      <dc:date>2015-08-18T18:00:01Z</dc:date>
    </item>
  </channel>
</rss>

