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

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

Reply
DanJohansen
New Member

Create new rows based on From and To values in two columns

Hi, I have a table which looks like this:

Nr.KontoartFrom AccountTo Account
100Managementfee1011010113
110Lejeindtægter1012110124
120Øvrige indtægter1121011212

 

and I would like it to end with this result:

Nr.KontoartAccount
100Managementfee 10110
100Managementfee 10111
100Managementfee 10112
100Managementfee 10113
110Lejeindtægter10121
111Lejeindtægter10122
112Lejeindtægter10123
113Lejeindtægter10124
120Øvrige indtægter11210
121Øvrige indtægter11211
122Øvrige indtægter11212

 

any Ideas for that will be appreciated very much! 

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @DanJohansen ,

 

Assuming your From/To columns are in numerical format, you can add a custom column like this:

 

= {[From Account]..[To Account]}

 

You can then expand the nested list column to new rows.

 

If your original columns aren't numerical, then you'll need to wrap the column references in Number.From:

 

= {Number.From([From Account])..Number.From([To Account])}

 

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

4 REPLIES 4
DanJohansen
New Member

Thx Pete! You are a life saver! Whereever you are, have a nice day! 😄

 

 

BA_Pete
Super User
Super User

Hi @DanJohansen ,

 

Assuming your From/To columns are in numerical format, you can add a custom column like this:

 

= {[From Account]..[To Account]}

 

You can then expand the nested list column to new rows.

 

If your original columns aren't numerical, then you'll need to wrap the column references in Number.From:

 

= {Number.From([From Account])..Number.From([To Account])}

 

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Hi Pete! Thx for answering and yes, the two columns are numerical, but I get this error:

DanJohansen_0-1656942500352.png

 

Hi @DanJohansen ,

 

Apologies, I updated my answer with the curly braces that are needed right after I posted, but you'll need to refresh your browser (F5) to see (basically, put curly braces around the whole thing).

 

My bad.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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 Kudoed Authors