Forum Discussion
Shota_Xuc
Helper I
2 years agoDAX measure for finding duplicates
Hi, I have this table in Power BI and a slicer connected to column 'Trade date'. I need a measure that finds duplicates in column 'Security ID' in time interval chosen by slicer. Can anyone help?...
Anonymous
2 years agoNot applicable
Hi Shota_Xuc ,
Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Shota_Xuc
Helper I
2 years agoHi Anonymous thanks, I found solution to find duplicates and it works good, below DAX:
Duplicate Sec ID =
VAR CountSecID = COUNTROWS(
FILTER(
ALLSELECTED(DM_TRANSACTIONS_CURRENT_YEAR),
DM_TRANSACTIONS_CURRENT_YEAR[Security ID] = MAX(DM_TRANSACTIONS_CURRENT_YEAR[Security ID])
)
)
RETURN
IF(CountSecID > 2,
"Duplicate",
"OK")
- Anonymous2 years agoNot applicable
HI Shota_Xuc,
I'm glad to hear you find the solution and share the expression here, I think they should help other users who faced the similar scenario.
Regards,
Xiaoxin Sheng