title: Total Sum of Calculated member is wrong
body: <p>I have there tables:</p>
  <ul>
  <li>Artikal (eng. Item)</li>
  <li>Grupa (eng. Group)</li>
  <li>Potrosnja (eng. Consumption)</li>
  </ul>
  <p><a href="https://i.stack.imgur.com/M1TSF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/M1TSF.png" alt="Data model" /></a></p>
  <p>Potrosnja is my Measure table and Artikal is Dimension. Grupa contains also a parent-child relationship between groups. For now, is only one level. Inside the Artikal dimension I created</p>
  <blockquote>
  <p>Hierarchy: Grupa.ParentId, Grupa.GrupaId, Artikal.Id. Name of Hierarhcy is PGA.</p>
  </blockquote>
  <p>This shows well in Power BI. I also create some calculated Members: Cijena LY and Vrijednost LY.</p>
  <p><a href="https://i.stack.imgur.com/0ZZSC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0ZZSC.png" alt="PowerBi Table" /></a></p>
  <p>I need to create a calculated member and the formula goes</p>
  <blockquote>
  <p>(Cijena - Cijena LY)* Kolicina</p>
  </blockquote>
  <p>First I tried to create like a calculated member but I saw that my total was also creating like the formula of totals of formulas. I want that my total for this member is <strong>SUM of calculated member column</strong></p>
  <p>I trying to do this with <strong>SCOPE</strong>, but I don't get the right result. Here is my script:</p>
  <pre><code>CREATE MEMBER CURRENTCUBE.[Measures].[Suma razlike] AS null,
  VISIBLE = 1;  
  
  SCOPE([Measures].[Suma razlike],[Artikal].[PGA].members);
  This =sum(
      Descendants([Artikal].[PGA].CurrentMember,,LEAVES),
      (([Measures].[Cijena]-[Measures].[Cijena LY])*[Measures].[Kolicina]));
  END SCOPE;
  </code></pre>
  <p>Can somebody tell me what I am doing wrong? I creating this in Analysis services by Microsoft.</p>