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! Learn more

Reply
Anonymous
Not applicable

Transforming single row into multiple row

I have a large table of data as below, 

refrence no.

booking name

Booking type

start date

duration

end date

venue

pax

ab12345

booking 1

a

23/03/2020

2

25/03/2020

venue 1

100

ab456456

booking 2

b

23/03/2020

3

26/03/2020

venue 1

50

 

I need to transofrm it to show [pax] per [refrenceno.] per day. something like below

Date

refrence no.

booking name

Booking type

venue

pax

23/03/2020

ab12345

booking 1

a

venue 1

100

23/03/2020

ab456456

booking 2

b

venue 1

50

24/03/2020

ab12345

booking 1

a

venue 1

100

24/03/2020

ab456456

booking 2

b

venue 1

50

25/03/2020

ab12345

booking 1

a

venue 1

100

25/03/2020

ab456456

booking 2

b

venue 1

50

26/03/2020

ab456456

booking 2

b

venue 1

50

 

i cant work out to insert the extra rows for the dtae and apply the values in to the new rows. 

 

any help greatly appreciated

 

steve

1 ACCEPTED SOLUTION
ibarrau
Super User
Super User

Hi! yes you can do that. Go to edit queries. Then add a custom column with a code like this:

List.Transform({Number.From([start date])..Number.From([end date])}, each Date.From(_))

This will create a list for each row containing the values between those dates. Then you can expand the list clicking on the arrows button. The result will be the expected one.

 

Regards,

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


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

Happy to help!

LaDataWeb Blog

View solution in original post

2 REPLIES 2
ibarrau
Super User
Super User

Hi! yes you can do that. Go to edit queries. Then add a custom column with a code like this:

List.Transform({Number.From([start date])..Number.From([end date])}, each Date.From(_))

This will create a list for each row containing the values between those dates. Then you can expand the list clicking on the arrows button. The result will be the expected one.

 

Regards,

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


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

Happy to help!

LaDataWeb Blog

Anonymous
Not applicable

Thats amazing thanks so much worked perfectly

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.