<?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 Sum(Descendants) in MDX Part II in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX-Part-II/m-p/325159#M1191251</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; Please refer to the post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;A _jive_internal="true" href="https://community.qlik.com/message/127972#127972"&gt;http://community.qlik.com/message/127972#127972&lt;/A&gt;&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:48:08 GMT</pubDate>
    <dc:creator>kaushiknsolanki</dc:creator>
    <dc:date>2011-06-28T06:48:08Z</dc:date>
    <item>
      <title>Sum(Descendants) in MDX Part II</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX-Part-II/m-p/325158#M1191250</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;&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.&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:31:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX-Part-II/m-p/325158#M1191250</guid>
      <dc:creator />
      <dc:date>2011-06-28T02:31:38Z</dc:date>
    </item>
    <item>
      <title>Sum(Descendants) in MDX Part II</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX-Part-II/m-p/325159#M1191251</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; Please refer to the post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;A _jive_internal="true" href="https://community.qlik.com/message/127972#127972"&gt;http://community.qlik.com/message/127972#127972&lt;/A&gt;&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:48:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Descendants-in-MDX-Part-II/m-p/325159#M1191251</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-06-28T06:48:08Z</dc:date>
    </item>
  </channel>
</rss>

