Forum Discussion
mybeppo
4 years agoNew Member
Sum w/o sum doublicates
Dear all how can I sum following situation correctly: From the table below: I have 2x Status "paid" but i only want to sum "amount" 1x with the smaller date from "modified_on". So when I su...
- 4 years ago
Hi mybeppo ,
Please try the following formula:
Measure = VAR mindate = MINX ( FILTER ( ALLSELECTED ( 'Table' ), 'Table'[id] = MAX ( 'Table'[id] ) && 'Table'[status] = "PAID" ), 'Table'[modified_on] ) RETURN CALCULATE ( SUM ( 'Table'[amount] ), FILTER ( 'Table', 'Table'[modified_on] = mindate && 'Table'[status] = "PAID" ) )If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.