title: Calculate the SUM of the difference and multiplication of some columns
body: <p>I have the following formula to calculate a KPI :</p>
  <pre><code>SUM((PFIINVESTISSEMENT - 
  (ENVMTINITIAL-VSTD_ENVMTDISPO))*DPPMTPART)
  </code></pre>
  <p>When I try to apply it in DAX :</p>
  <pre><code>KPI1 :=SUM(
  DPPMTPART *
  ([PROP_MtDemandeFin] -(PFIINVESTISSEMENT - 
      (ENVMTINITIAL-VSTD_ENVMTDISPO) )
  )
  </code></pre>
  <p>I get the following error :</p>
  <blockquote>
  <p>The SUM function only accepts a column reference as an argument.</p>
  </blockquote>