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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Creating date column from dates between two columns - Query

Hey i am trying to connect calculated time table and data from this data set. (down) But to correct reporting i need to create list of days between start and end in one column with all other columns in same state as they are now.

001.png

My idea is to do it with custom function. Maybe with loop cykle but i really dont know how. Can someone please help me with this?

1 ACCEPTED SOLUTION
artemus
Microsoft Employee
Microsoft Employee

You can add a custom column with:

List.Dates([start_date], Duration.Days([end_date] - [start_date]) + 1, #duration(1, 0, 0, 0))

Then, expand the custom column.

View solution in original post

1 REPLY 1
artemus
Microsoft Employee
Microsoft Employee

You can add a custom column with:

List.Dates([start_date], Duration.Days([end_date] - [start_date]) + 1, #duration(1, 0, 0, 0))

Then, expand the custom column.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.