<?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: Sum(Descendants) in MDX in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/323997#M1191624</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to get the last column also per your requirement, use the following expression for the last column&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;Sum(if(#Equipment &amp;gt;0, SalesAmount,0)) / Sum(#Equipment)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jun 2011 13:51:57 GMT</pubDate>
    <dc:creator>nagaiank</dc:creator>
    <dc:date>2011-06-27T13:51:57Z</dc:date>
    <item>
      <title>Sum(Descendants) in MDX</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/323994#M1191619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a newby on QlikView. Please have a look at my application and guild me how to get the result. On SQL Analysis Services, I can get the result by using Sum(descendants,... but on QlikView, I have no idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anote&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 10:35:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/323994#M1191619</guid>
      <dc:creator />
      <dc:date>2011-06-27T10:35:56Z</dc:date>
    </item>
    <item>
      <title>Sum(Descendants) in MDX</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/323995#M1191621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Replace your second expression i.e. SalesAmount with following expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;#Equipment = {"&amp;gt;0"}&amp;gt;}SalesAmount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 10:49:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/323995#M1191621</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-06-27T10:49:51Z</dc:date>
    </item>
    <item>
      <title>Sum(Descendants) in MDX</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/323996#M1191623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik.solanki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your respond. I'm sorry that I gave a bad example. I don't know how to upload the .QVW again so I attached images. In my case is there are two records of customer 1004. How can I get the expected result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anote&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Source.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/5451_Source.png" /&gt;&lt;IMG alt="Formula.png" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/5452_Formula.png" width="450" /&gt;&lt;IMG alt="QlikView.png" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/5453_QlikView.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 12:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/323996#M1191623</guid>
      <dc:creator />
      <dc:date>2011-06-27T12:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Descendants) in MDX</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/323997#M1191624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to get the last column also per your requirement, use the following expression for the last column&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;Sum(if(#Equipment &amp;gt;0, SalesAmount,0)) / Sum(#Equipment)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 13:51:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/323997#M1191624</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2011-06-27T13:51:57Z</dc:date>
    </item>
    <item>
      <title>Sum(Descendants) in MDX</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/323998#M1191625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik.solanki,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;#Equipment = {"&amp;gt;0"}&amp;gt;}SalesAmount) / sum(#Equipement)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new, courier;"&gt;Sum(if(#Equipment &amp;gt;0, SalesAmount,0)) / Sum(#Equipment)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new, courier;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new, courier;"&gt;Both of them, give me the same result but it is not what I want. This is becasue there is two records of customer 1004.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new, courier;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new, courier;"&gt;In SQL Analysis Services, I can get the answer by using this MDX.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(Descendants([Customer].CurrentMember,[Customer].Customer),&lt;/P&gt;&lt;P&gt;(iif ([Measures].[#Equipment)] &amp;gt; 0, [Measures].[SalesAmount] / , 0))) / [Measures].[#Equipment]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise. I will re-post again in order to attach the .QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anote&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 02:28:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/323998#M1191625</guid>
      <dc:creator />
      <dc:date>2011-06-28T02:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Descendants) in MDX</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/323999#M1191626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created one table - "Ravi"&lt;/P&gt;&lt;P&gt;You cannot get answer as 400 for Location "1" as Customer 1004 has one of the equipment as 0.&lt;/P&gt;&lt;P&gt;As you said, we want to neglect zeroes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you can refer to expressions I have used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this explains solution for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know further queries if any.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 05:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/323999#M1191626</guid>
      <dc:creator />
      <dc:date>2011-06-28T05:02:22Z</dc:date>
    </item>
    <item>
      <title>Sum(Descendants) in MDX</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/324000#M1191627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in January Customer = 1001 and #Equipment = 1 and SalesAmount = 100&lt;/P&gt;&lt;P&gt;in January Customer = 1002 and #Equipment = 2 and SalesAmount = 300&lt;/P&gt;&lt;P&gt;in January Customer = 1003 and #Equipment = 0 and SalesAmount = 50&lt;/P&gt;&lt;P&gt;In January Customer = 1004 and #Equipment = 0 and SalesAmount = 100&lt;/P&gt;&lt;P&gt;In Febuary Customer = 1004 and #Equipment = 1 and Sales Amount = 300&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any possible way to get 400 (not 300) for Customer 1004?&lt;/P&gt;&lt;P&gt;I want to group by Customer before checking #Equipemnt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the expected total = 800 (100+300+400)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 05:44:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/324000#M1191627</guid>
      <dc:creator />
      <dc:date>2011-06-28T05:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Descendants) in MDX</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/324001#M1191629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Can you please upload the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; How to upload the qvw file. -&amp;gt;&amp;nbsp; When you reply to any post, you will see "Use Advanced Editor"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Click on it. You will see an option named Attach Files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Browse the file from there&amp;nbsp; and it will be attached to your post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 06:09:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/324001#M1191629</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-06-28T06:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Descendants) in MDX</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/324002#M1191631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have uploaded the .QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anote&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 06:17:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/324002#M1191631</guid>
      <dc:creator />
      <dc:date>2011-06-28T06:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Descendants) in MDX</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/324003#M1191633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Try this in your Sales with Equipment Expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; sum( {$&amp;lt;Customer = P({1&amp;lt;#Equipment={"&amp;gt;0"}&amp;gt;} Customer)&amp;gt;} SalesAmount ) / sum(#Equipment)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 06:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/324003#M1191633</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-06-28T06:35:34Z</dc:date>
    </item>
    <item>
      <title>Sum(Descendants) in MDX</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/324004#M1191635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;"in January Customer = 1001 and #Equipment = 1 and SalesAmount = 100&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;in January Customer = 1002 and #Equipment = 2 and SalesAmount = 300&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;in January Customer = 1003 and #Equipment = 0 and SalesAmount = 50&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;In January Customer = 1004 and #Equipment = 0 and SalesAmount = 100&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;In Febuary Customer = 1004 and #Equipment = 1 and Sales Amount = 300&lt;/EM&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt;"&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt;"&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Is there any possible way to get 400 (not 300) for Customer 1004?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I want to group by Customer before checking #Equipemnt.&lt;/EM&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt;"&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;And the expected total = 800 (100+300+400)"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case, you will have to create one more column in Excel.&lt;/P&gt;&lt;P&gt;Those which you want to add can be given no. 1 and neglected can be 0.&lt;/P&gt;&lt;P&gt;This is to identify uniqueness of each line item of database.&lt;/P&gt;&lt;P&gt;e.g. &lt;/P&gt;&lt;P&gt;in January Customer = 1001 and #Equipment = 1 and SalesAmount = 100 and Addition 1&amp;nbsp; &lt;/P&gt;&lt;P&gt;in January Customer = 1002 and #Equipment = 2 and SalesAmount = 300 and Addition 1&lt;/P&gt;&lt;P&gt;in January Customer = 1003 and #Equipment = 0 and SalesAmount = 50 and Addition 0&lt;/P&gt;&lt;P&gt;In January Customer = 1004 and #Equipment = 0 and SalesAmount = 100 and Addition 1&lt;/P&gt;&lt;P&gt;In Febuary Customer = 1004 and #Equipment = 1 and Sales Amount = 300 and Addition 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can create formula based on this Column.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 06:42:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/324004#M1191635</guid>
      <dc:creator />
      <dc:date>2011-06-28T06:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Descendants) in MDX</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/324005#M1191636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik.solanki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( {&lt;STRONG&gt;$&lt;/STRONG&gt;&amp;lt;Customer = &lt;STRONG&gt;P&lt;/STRONG&gt;({&lt;STRONG&gt;1&lt;/STRONG&gt;&amp;lt;#Equipment={"&amp;gt;0"}&amp;gt;} Customer)&amp;gt;} SalesAmount ) / sum(#Equipment)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression is perfect for my case. Please explain how it work especially $, P and 1, so that I can apply to other cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Highly appreciate your help. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anote&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 06:51:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/324005#M1191636</guid>
      <dc:creator />
      <dc:date>2011-06-28T06:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Descendants) in MDX</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/324006#M1191638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; sum( {$&amp;lt;Customer = P({1&amp;lt;#Equipment={"&amp;gt;0"}&amp;gt;} Customer)&amp;gt;} SalesAmount ) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; From above expression the sub expression i.e.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; P({1&amp;lt;#Equipment={"&amp;gt;0"}&amp;gt;} Customer)&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; will give you the Customers which have #Equipment &amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; and then the main Expression says.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Give me the SalesAmount where Customers who have #Equipment &amp;gt;0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 06:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/324006#M1191638</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-06-28T06:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Descendants) in MDX</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/324007#M1191640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik.solanki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more question, if I filter data only Jan 1,Jan 2, Jan3 and Jan 5, I expect to get 133.33 [(100+300)/3] but I got 166.66. How can I fix this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anote&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 07:15:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/324007#M1191640</guid>
      <dc:creator />
      <dc:date>2011-06-28T07:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Descendants) in MDX</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/324008#M1191641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; According to Formula it is correct cause in the expression we are saying give all customers who have #Equipment &amp;gt;0 so you will also get 1004 and thus it is taking value i.e. 100 even if the #Equipment is 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Let me think on this. will get back to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 07:31:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/324008#M1191641</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-06-28T07:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Descendants) in MDX</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/324009#M1191643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking forward to see your suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anote&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 09:22:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/324009#M1191643</guid>
      <dc:creator />
      <dc:date>2011-06-28T09:22:21Z</dc:date>
    </item>
    <item>
      <title>Sum(Descendants) in MDX</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/324010#M1191644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have got my answer. It is not perfect because if I have more dimensions such as Equipment Type, I have to add Equipment Type into the expression. I hope to have a better way of doing. : (&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; sum( {$&amp;lt;Customer = P({1&amp;lt;#Equipment={"&amp;gt;0"}, &lt;STRONG&gt;Date={"$(=concat(distinct Date,'","'))"}&amp;gt;}&lt;/STRONG&gt;) &amp;gt;} SalesAmount ) / sum(#Equipment)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anote&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 08:44:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX/m-p/324010#M1191644</guid>
      <dc:creator />
      <dc:date>2011-06-30T08:44:32Z</dc:date>
    </item>
  </channel>
</rss>

