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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Ilka719
Frequent Visitor

Split by sum in Power bi

Hi!

How could I make so many duplicate rows if I have an amount in one row and that amount goes to 1?

Thanks in advance!

Ilka719_0-1692688791244.png

 

 

1 ACCEPTED SOLUTION
mlsx4
Memorable Member
Memorable Member

Hi @Ilka719 

 

In Power Query, add a custom column with this code: 

 

Table.Repeat(Table.FromRecords({[Col1=1]}),[Amount])

 

mlsx4_0-1692690610897.png

And now, expand values:

mlsx4_1-1692690645870.png

mlsx4_2-1692690672456.png

 

Finally, remove the original amount column, and rename the custom as Amount

mlsx4_4-1692690750452.png

 

 

View solution in original post

2 REPLIES 2
mlsx4
Memorable Member
Memorable Member

Hi @Ilka719 

 

In Power Query, add a custom column with this code: 

 

Table.Repeat(Table.FromRecords({[Col1=1]}),[Amount])

 

mlsx4_0-1692690610897.png

And now, expand values:

mlsx4_1-1692690645870.png

mlsx4_2-1692690672456.png

 

Finally, remove the original amount column, and rename the custom as Amount

mlsx4_4-1692690750452.png

 

 

Ilka719
Frequent Visitor

Great! Thank you!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors