Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Data4Beer
Frequent Visitor

How to duplicate data in a table

This is usually the opposite of what people normally want to do, but is there a way to duplicate data by a certain amount in a table?

 

 

2 ACCEPTED SOLUTIONS

let
    Source = Table.Combine({Colors, Colors, Colors, Colors})
in
    Source

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

hi, @Data4Beer

 

This is usually the opposite of what people normally want, but is there a way to duplicate by a certain amount in a table?

This is really different, but EDITOR QUERY can do that.

1. Import TABLE1 (which will be duplicated)
2. Edit this query with EDITOR QUERY
3. Combine this TABLE 1 with itself (see figure)
4. I renamed the new table

 

Clipboard01.gif


Please try and test using it. And please mark the right answer as answer if your issue has been resolved, otherwise, please feel free to ask if you have any other issue.
 
Best Regards,
Rfranca

View solution in original post

4 REPLIES 4
Greg_Deckler
Super User
Super User

Can you provide an example of what you are asking for?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

I would like to duplicate the following data by 4.

 

data1.PNG

 

 

 

 

 

 

Which would give me this result:

 

data 2.PNG

let
    Source = Table.Combine({Colors, Colors, Colors, Colors})
in
    Source

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

hi, @Data4Beer

 

This is usually the opposite of what people normally want, but is there a way to duplicate by a certain amount in a table?

This is really different, but EDITOR QUERY can do that.

1. Import TABLE1 (which will be duplicated)
2. Edit this query with EDITOR QUERY
3. Combine this TABLE 1 with itself (see figure)
4. I renamed the new table

 

Clipboard01.gif


Please try and test using it. And please mark the right answer as answer if your issue has been resolved, otherwise, please feel free to ask if you have any other issue.
 
Best Regards,
Rfranca

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.