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?...
Shota_Xuc
Helper I
2 years agoDataNinja777 I simplified my table in my previous question, but my table has many columns besides 'Sequrity ID' column and I I want to find duplicates only in 'Security ID' column. Your solution does not work for tables with many columns.
- Anonymous2 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_Xuc2 years ago
Helper I
Hi 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])))RETURNIF(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