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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

date list

hi every one,

I need help.

I need to list date form  2 datas based on below tables.

I have data in table  one  and I  need resulte the data in table 2

 

 

 

 

1 ACCEPTED SOLUTION

Hey,

 

hit one of the Error values and provide the error information that you receive.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

4 REPLIES 4
TomMartens
Super User
Super User

Hey,

 

there are two possibilities.

Assuming your data looks like this:

image.png

 

In Power Query just, create a new custom column:

image.png

 

Enter this formula, please be aware that the column names might not match:

List.Dates([Start], Number.From([End]) - Number.From([Start]) + 1, #duration(1 , 0 , 0 , 0))

Then the final move expand the list to new rows:

image.png

And voila:

image.png

 

The DAX solution looks like this, create a new table :

image.png

Before you can create your new table it's necessary to create a dedicated Calendar table like so (using DAX):

Calendar = 
CALENDAR("2019-01-01", "2019-12-31")

Then you create this DAX statement to create your new table, please be aware, that the name of the table that contains the Start and End column is called 'Table2':

the new table = 
GENERATE(
    'Table2'
    , DATESBETWEEN('Calendar'[Date] , [Start] , [End])
) 

The result fo course is the same 🙂

 

My recommendation, use the Power Query approach.

 

Regards,

Tom

 

 

 

 

 

 

 

 

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
Anonymous
Not applicable

thanks @TomMartens , 

 

i tried from query editor , but show error based on below image

 

aaa.JPG

 

Hey,

 

hit one of the Error values and provide the error information that you receive.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
Anonymous
Not applicable

thanks @TomMartens ,

can you tell  me  how we can optimize data because I have many records after apply your solution and there is a delay to apply data to the data model.

 

 

Regards, 

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.