Forum Discussion
Anonymous
3 years agoNot applicable
Duplicate search in table
Trying to find a solution for this below requirement Have a Purchasing table with the purchase details. Need to identify the duplicates based on the criteria - Vendor and Planned recept date i...
Anonymous
3 years agoNot applicable
Hi Anonymous ,
Here are the steps you can follow:
1. Create calculated table.
Table =
CALENDAR(
DATE(
2023,1,1),
DATE(
2023,12,31))
2. Create measure.
Flag =
var _select=SELECTEDVALUE('Table'[Date])
var _count=
COUNTX(
FILTER(ALL(Purchase),
'Purchase'[Planned Rcpt Date] <= _select +5&&'Purchase'[Vendor]=MAX('Purchase'[Vendor])&&MAX('Purchase'[Amount])<=1500),[Purch Ord])
return
IF(
_count>=2,1,0)
3. Place [Flag]in Filters, set is=1, apply filter.
4. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Anonymous
3 years agoNot applicable
Anonymous
This gave a mixed result. Thanks for sharing.
Here is what i see. The date selection seem to be ignored. I tried setting a relationship between dates and that picked only the transaction for the selected date. Made relation inactive and this provides the transaction prior to the date selected too. Attaching my pbix. Sorry not sure what messed up. .
https://drive.google.com/file/d/1DELCr4EhRnJDPOyJY4BN2USLRMjrn3y7/view?usp=sharing