This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hello,
Can someone tell me how to quickly duplicate duplicates which at the end of the respective name is only ever there.
Thanks and Greetings
Solved! Go to Solution.
My interpretation of your question in this video resulting in the following code (the first line was created when I entered the data before I started the recording):
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45W8k0sSk7NcUotTVfILFbIz8upVEgtSy1SKMlILUpVitUhRoVbak5mRbyBpYEpSEUeBbIYpscCAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [Name = _t]),
#"Filtered Rows" = Table.SelectRows(Source, each Text.EndsWith([Name], "only ever there")),
#"Kept Duplicates" = let columnNames = {"Name"}, addCount = Table.Group(#"Filtered Rows", columnNames, {{"Count", Table.RowCount, type number}}), selectDuplicates = Table.SelectRows(addCount, each [Count] > 1), removeCount = Table.RemoveColumns(selectDuplicates, "Count") in Table.Join(#"Filtered Rows", columnNames, removeCount, columnNames, JoinKind.Inner),
#"Added Custom" = Table.AddColumn(#"Kept Duplicates", "Custom", each {1..2}),
#"Expanded Custom" = Table.ExpandListColumn(#"Added Custom", "Custom"),
#"Removed Columns" = Table.RemoveColumns(#"Expanded Custom",{"Custom"})
in
#"Removed Columns"
My interpretation of your question in this video resulting in the following code (the first line was created when I entered the data before I started the recording):
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45W8k0sSk7NcUotTVfILFbIz8upVEgtSy1SKMlILUpVitUhRoVbak5mRbyBpYEpSEUeBbIYpscCAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [Name = _t]),
#"Filtered Rows" = Table.SelectRows(Source, each Text.EndsWith([Name], "only ever there")),
#"Kept Duplicates" = let columnNames = {"Name"}, addCount = Table.Group(#"Filtered Rows", columnNames, {{"Count", Table.RowCount, type number}}), selectDuplicates = Table.SelectRows(addCount, each [Count] > 1), removeCount = Table.RemoveColumns(selectDuplicates, "Count") in Table.Join(#"Filtered Rows", columnNames, removeCount, columnNames, JoinKind.Inner),
#"Added Custom" = Table.AddColumn(#"Kept Duplicates", "Custom", each {1..2}),
#"Expanded Custom" = Table.ExpandListColumn(#"Added Custom", "Custom"),
#"Removed Columns" = Table.RemoveColumns(#"Expanded Custom",{"Custom"})
in
#"Removed Columns"
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 36 | |
| 29 | |
| 29 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 71 | |
| 43 | |
| 33 | |
| 24 | |
| 23 |