title: Wrong total of a measure Power BI in a table
body: <p>I have 2 tables with data: Rapport 1 and Engagement_TagData.</p>
  
  <p>I have the following values: <strong>Chargeable Hours</strong>, <strong>DnA Team Hours</strong> ( a measure) in Rapport 1 and <strong>inclus</strong> ( a measure) in Engagement_TagData that has the values 0 or 1.
  I created a measure <strong>HeuresFinales</strong> that goes like: if <strong>inclus</strong> is <strong>1</strong> it'll take the value in <strong>Chargeable Hours</strong>, if it is <strong>0</strong>, it'll take the value in <strong>DnA Team Hours</strong>, but the total value for <strong>HeuresFinales</strong> is wrong, it gives me the same total as for Chargeable Hours. </p>
  
  <p><a href="https://i.stack.imgur.com/6wbyc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6wbyc.png" alt="enter image description here"></a></p>
  
  <pre><code>
  </code></pre>
  
  <p>The total value for HeuresFinales should be less than the total for Chargeable Hours.</p>
  
  <p>Can someone help me find the right DAX function the get the right total for HeuresFinales.</p>
  
  <p>Thanks! </p>