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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
carlin93
New Member

Create Duplicate Defect Entries based on Column Value

Greetings,

 

I am attempting to utilize a Calculated New Table to create duplicate entries based on the count column. The 'table' I am referencing is called 'Defect Count'.

 

I also would like for an additional column that tracks the iteration of the defect. I have provided an example below.

 

Example:

 

Original Data Table 'Defect Count'

 

DefectCount
Too Short3
Bump1
Brittle Blade

2

 

Disered Result

 

DefectCountIteration
Too Short31
Too Short32
Too Short33
Rust11
Brittle11

Bump

21
Bump22
Rust4

2

Rust4

3

Rust4

4

Rust4

5

2 ACCEPTED SOLUTIONS
vicky_
Super User
Super User

You can copy the solution here in PowerQuery, which I recommend over trying to do the same thing in DAX - https://community.fabric.microsoft.com/t5/Desktop/Table-TransformColumns-repeat-rows-n-times-and-add...

 

View solution in original post

Anonymous
Not applicable

Hi @carlin93 

 

Based on your needs, I have created the following table.

vjialongymsft_1-1708412971619.png

 

Create a new custom column by using the following code in power query:

= List.Numbers(1, [value])

 

Then click "Expand to New Rows".

vjialongymsft_0-1708412932797.png

 

Click "Close and Apply".

 

This is the result you want.

vjialongymsft_2-1708413035220.png

 

 

 

 

Best Regards,

Jayleny

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @carlin93 

 

Based on your needs, I have created the following table.

vjialongymsft_1-1708412971619.png

 

Create a new custom column by using the following code in power query:

= List.Numbers(1, [value])

 

Then click "Expand to New Rows".

vjialongymsft_0-1708412932797.png

 

Click "Close and Apply".

 

This is the result you want.

vjialongymsft_2-1708413035220.png

 

 

 

 

Best Regards,

Jayleny

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Thank you, this also helped me as well 

vicky_
Super User
Super User

You can copy the solution here in PowerQuery, which I recommend over trying to do the same thing in DAX - https://community.fabric.microsoft.com/t5/Desktop/Table-TransformColumns-repeat-rows-n-times-and-add...

 

Thank you! This helped a lot

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.