Forum Discussion
Filter duplicate values with more arguments
- 4 years ago
Hi oldrunner ,
The EARLIER function is usually used in calculated columns, please use the MAX or SELECTEDVALUE function in the measure, like this:
Duplicate Cust. Ref = CALCULATE ( COUNT ( 'ABC'[DEF] ), Filter ( 'ABC', 'ABC'[DEF] = MAX ( 'ABC'[DEF] ) ) )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.
Duplicate Cust. Ref = CALCULATE(
COUNT(
'ABC'[DEF]
),
Filter(
'ABC',
'ABC'[DEF]=EARLIER('ABC'[DEF) && ABC[XYZ] ='something'
)
)
Regards
DI
Did I answer your question? Mark my post as a solution, this will help others!
Kudos are also welcome.