Forum Discussion
Finding Duplicates in a Table
- 5 years ago
sjrrkb123 , Create a new column like
new column =
var _1 = countx(filter(Table, [Project Key] = earlier([Project Key]) && [Professional Key] && earlier([Professional Key])),[Project Key])
return
if(_1 >1, 1,0)
sjrrkb123 , Create a new column like
new column =
var _1 = countx(filter(Table, [Project Key] = earlier([Project Key]) && [Professional Key] && earlier([Professional Key])),[Project Key])
return
if(_1 >1, 1,0)
- sjrrkb1235 years agoHelper III
amitchandak it worked Great! I had to tweak it with the following but I appreciate the help greatly.
new column =
var _1 = countx(filter(Table, [Project Key] = earlier([Project Key]) && [Professional Key] && earlier([Professional Key]) && RoleName IN {"Sponsor", "Owner"}),[Project Key])
return
if(_1 >1, 1,0)
as I only care about duplicates in those two roles.