Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hi folks, Can anyone help me with this one? I have a column of data which includes duplicates which I want to add a sequence number to so they become unique. e.g. F01 F01 F02 F03 would become F01-1 F01-2 F02-1 F03-1 I can think of a long-winded way to do it but I suspect there is an easy way.
Solved! Go to Solution.
@Anonymous , first of add index in power query
https://stackoverflow.com/questions/45715963/creating-an-index-column-for-power-bi
then create a new column in dax like this
New column = [Column1] & " - " & countx(filter(Table, [Column1] = earlier([Column1]) && [index] <= earlier([index])),[Column1])
assume Column1 is the column having F01 F01 F02 F03
@Anonymous , first of add index in power query
https://stackoverflow.com/questions/45715963/creating-an-index-column-for-power-bi
then create a new column in dax like this
New column = [Column1] & " - " & countx(filter(Table, [Column1] = earlier([Column1]) && [index] <= earlier([index])),[Column1])
assume Column1 is the column having F01 F01 F02 F03
Is there a way to do this in M Code in Excel?
I did manage to do this by splitting into columns using a delimiter and then unpivot command.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 63 | |
| 48 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 118 | |
| 117 | |
| 38 | |
| 36 | |
| 27 |