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

Get Fabric certified for FREE! Don't miss your chance! Learn more

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
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.