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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
utkuacik
Frequent Visitor

how to copy rows depending on column values

Hi guys, so sorry if this question is asked before , but after searching 3 day in internet , i could not find a solution , probably i am new to power BI and M language.  so sorry if i made aa mistake , cause it is my first time writing to a forum . thank you all

 

i have a table with 13 columns.   i just want to copy rows according to values in columns named "from" and "to" .  

Untitled.png

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

In power query, Add Column -> custom column.

{[From]..[To]}

then Expand the column (from the header) 'to rows'

View solution in original post

2 REPLIES 2
HotChilli
Super User
Super User

In power query, Add Column -> custom column.

{[From]..[To]}

then Expand the column (from the header) 'to rows'

you are my hero 🙂 thank you so much 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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