<?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 Calculate contract value and total realized value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-contract-value-and-total-realized-value/m-p/3996288#M155271</link>
    <description>&lt;P&gt;Hello friends, I need help writing a DAX measure that calculates the (distinct) value of the contract and the total value that was realized by branch, customer and contract.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the image below, for example the client "&lt;STRONG&gt;JK Delivery Ltda&lt;/STRONG&gt;". This client has a contract worth &lt;STRONG&gt;100,000&lt;/STRONG&gt; and the sum of everything that has been done so far is 85,000 out of 100,000.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If a simple sum of the "Contract Value" column is done, the total value of the contract would be 400,000 and would be incorrect, as the correct value is 100,000.&lt;/P&gt;&lt;P&gt;The "DESIRED RESULT" table illustrates the desired result.&lt;/P&gt;&lt;P&gt;Pleas, Can anyone help me?&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2024 14:03:27 GMT</pubDate>
    <dc:creator>Rai_BI</dc:creator>
    <dc:date>2024-06-17T14:03:27Z</dc:date>
    <item>
      <title>Calculate contract value and total realized value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-contract-value-and-total-realized-value/m-p/3996288#M155271</link>
      <description>&lt;P&gt;Hello friends, I need help writing a DAX measure that calculates the (distinct) value of the contract and the total value that was realized by branch, customer and contract.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the image below, for example the client "&lt;STRONG&gt;JK Delivery Ltda&lt;/STRONG&gt;". This client has a contract worth &lt;STRONG&gt;100,000&lt;/STRONG&gt; and the sum of everything that has been done so far is 85,000 out of 100,000.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If a simple sum of the "Contract Value" column is done, the total value of the contract would be 400,000 and would be incorrect, as the correct value is 100,000.&lt;/P&gt;&lt;P&gt;The "DESIRED RESULT" table illustrates the desired result.&lt;/P&gt;&lt;P&gt;Pleas, Can anyone help me?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 14:03:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-contract-value-and-total-realized-value/m-p/3996288#M155271</guid>
      <dc:creator>Rai_BI</dc:creator>
      <dc:date>2024-06-17T14:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate contract value and total realized value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-contract-value-and-total-realized-value/m-p/3996303#M155274</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="570958" data-lia-user-login="Rai_BI" class="lia-mention lia-mention-user"&gt;Rai_BI&lt;/a&gt;&amp;nbsp;Just us a MAX aggregator or AVERAGE aggregator for your Contract Value column. You will then need this:&amp;nbsp;First, please vote for this idea: &lt;A href="https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e" target="_blank"&gt;https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This looks like a measure totals problem. Very common. See my post about it here: &lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also: &lt;A href="https://youtu.be/uXRriTN0cfY" target="_blank"&gt;https://youtu.be/uXRriTN0cfY&lt;/A&gt;&lt;BR /&gt;And: &lt;A href="https://youtu.be/n4TYhF2ARe8" target="_blank"&gt;https://youtu.be/n4TYhF2ARe8&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 14:10:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-contract-value-and-total-realized-value/m-p/3996303#M155274</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-06-17T14:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate contract value and total realized value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-contract-value-and-total-realized-value/m-p/3997306#M155434</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="570958" data-lia-user-login="Rai_BI" class="lia-mention lia-mention-user"&gt;Rai_BI&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I create a table as you mentioned.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then I create a measure and here is the DAX code.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
SUMX ( 'Table', 'Table'[Contract Value Realized] )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 03:18:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-contract-value-and-total-realized-value/m-p/3997306#M155434</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-18T03:18:29Z</dc:date>
    </item>
  </channel>
</rss>

