Forum Discussion
Anonymous
6 years agoNot applicable
Count duplicate value as rank it
Dear friend How can i count a duplicate value and rank it as 1,2,3,... in the other column with DAX Name new column jame 1 jon 1 jame 2 jame 3 jon 2 jame 4...
- 6 years ago
Hi Anonymous ,
We need to add an index column using Power Query Editor and create a calculate column to meet your requirement.
1. Create an index column.
2. Then we can create a calculate column.
Rank column = RANKX(FILTER('Table','Table'[Name]=EARLIER('Table'[Name])),'Table'[Index],,ASC,Dense)If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
BTW, pbix as attached.
Anonymous
6 years agoNot applicable
are you trying to remove the duplicates and maintain the rank??
you better off to create a new table using name as a distinct
name = distinct(tablename[name])
then use the rank funciton with tie breakers