Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi, i got the following problem:
We have purchase orders for materials, these are received little by little by the suppliers, so repeated rows of the same order are created as the materials are received as follows:
|Purchase order|  | |product|  | |quantity order|  | |recibed|  | |money|  | 
1  | wood  | 30  | 10  | 100$  | 
1  | wood  | 30  | 20  | 100$  | 
2  | door  | 20  | 20  | 50$  | 
3  | window  | 15  | 10  | 300$  | 
3  | window  | 15  | 5  | 300$  | 
How can I sum the amount of money without repeating the amounts depending on the purchase order?
Solved! Go to Solution.
Measure = CALCULATE(SUMX(VALUES(tbl[|money|]),tbl[|money|]),ALL(tbl))
@JuanPabloCarr what is the desired end goal based on the sample data
i need a measure to sum 450 (1wood + 1door + 1windows) and not 850 (2wood + 1door +2windows)
Measure = CALCULATE(SUMX(VALUES(tbl[|money|]),tbl[|money|]),ALL(tbl))
That works for me, thanks!
try like:
it isnt working, the code return the same value as if i sum all the values of the column "Money", counting the repeated ones
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
            | User | Count | 
|---|---|
| 8 | |
| 5 | |
| 5 | |
| 4 | |
| 3 | 
| User | Count | 
|---|---|
| 24 | |
| 11 | |
| 10 | |
| 9 | |
| 8 |