- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Duplicate Record and change one value
Hello kind community!
I want to duplicate any record in my dataset and want change one value (due to multiple relationship is not possible)
How is currently looks:
Product | ID | old_ID |
Cola | 123 | ABC |
Fanta | 888 | DEF |
Sprite | 777 | GHF |
What it should look like:
Product | ID | old_ID |
Cola | 123 | ABC |
Cola | ABC | ABC |
Fanta | 888 | DEF |
Fanta | DEF | DEF |
Sprite | 777 | GHF |
Sprite | GHF | GHF |
Background: Want to use ID column for a relationship to other table and i need old and new identifier to find all processes
Thank you
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Florex
You can easily duplicate all rows of a table in the query editor by using Table.Repeat or by refererring to another t query for the list of IDs to be duplicated for selective duplication. But doing either will most likely result to a many-to-many relationship, the current table being on the many side. Please see attached pbix for reference.
Dane Belarmino | Microsoft MVP | Proud to be a Super User!
Did I answer your question? Mark my post as a solution!
"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Florex ,
@danextian Good Answer! And you can also achieve this by Unpivoted in Power Query:
Duplicate the original table first:
And in the new table Table(2), select column ID and old_ID and choose "Unpivot Only Selected Columns":
Then choose "Merge Queries as New" in Table(2):
The output is as below:
Follow the diagram below to set up and delete the column Attribute:
And the final output is as below:
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Florex ,
@danextian Good Answer! And you can also achieve this by Unpivoted in Power Query:
Duplicate the original table first:
And in the new table Table(2), select column ID and old_ID and choose "Unpivot Only Selected Columns":
Then choose "Merge Queries as New" in Table(2):
The output is as below:
Follow the diagram below to set up and delete the column Attribute:
And the final output is as below:
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Florex
You can easily duplicate all rows of a table in the query editor by using Table.Repeat or by refererring to another t query for the list of IDs to be duplicated for selective duplication. But doing either will most likely result to a many-to-many relationship, the current table being on the many side. Please see attached pbix for reference.
Dane Belarmino | Microsoft MVP | Proud to be a Super User!
Did I answer your question? Mark my post as a solution!
"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
08-16-2024 08:20 AM | |||
09-24-2024 07:56 AM | |||
09-16-2024 07:44 PM | |||
10-08-2024 04:24 PM | |||
10-24-2023 01:22 AM |
User | Count |
---|---|
113 | |
90 | |
84 | |
55 | |
46 |