Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello,
I want to know how to give duplicated values different outcome, eg: "A" is duplicated value, I want the outcome to be "A1", "A2"
Thanks
Solved! Go to Solution.
Hi @Anonymous ,
We can create a calculate column to meet your requirement.
1. We need to add an index column in Power Query Editor.
2. Then we can create a calculate column.
outcome Column =
var _group_rank = RANKX(FILTER('Table',EARLIER('Table'[Name])='Table'[Name]),'Table'[Index],,ASC,Dense)
return
'Table'[Name]&""&_group_rank
If it doesn’t meet your requirement, could you please show the exact expected result based on the table that we have shared?
BTW, pbix as attached.
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.
Hi @Anonymous ,
We can create a calculate column to meet your requirement.
1. We need to add an index column in Power Query Editor.
2. Then we can create a calculate column.
outcome Column =
var _group_rank = RANKX(FILTER('Table',EARLIER('Table'[Name])='Table'[Name]),'Table'[Index],,ASC,Dense)
return
'Table'[Name]&""&_group_rank
If it doesn’t meet your requirement, could you please show the exact expected result based on the table that we have shared?
BTW, pbix as attached.
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.
You can add index columns in Power Query to make each row unique. You can also concatenate your data column with the index column if that's desired.
User | Count |
---|---|
141 | |
113 | |
104 | |
78 | |
64 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |