Forum Discussion

Rai_BI's avatar
Rai_BI
Icon for Helper IV rankHelper IV
2 years ago
Solved

Calculate contract value and total realized value

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.

 

See the image below, for example the client "JK Delivery Ltda". This client has a contract worth 100,000 and the sum of everything that has been done so far is 85,000 out of 100,000.

 

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.

The "DESIRED RESULT" table illustrates the desired result.

Pleas, Can anyone help me?

2 Replies