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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Create Dates List from Non-Continuous Dates Column

 

Hello There,

I seek your assistance please guys.

 

I’ve a column of dates, they are not continuous dates, so, if I want to create a custom column of a list of dates that starts from the oldest date in the column Dates till the most recent date in the column Dates, how could I do that?

 

The current data set is just one column called Dates.

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

The cleanest way (rather, the way I like to do it) is to get the Min Date and Max Date as two separate values in two separate queries. Then turn them into numbers. Then make a list starting at first number and ending at last number. Finally, use Date.From to transform the list.

let

MaxDate = Number.From(List.Max(Table[DateColumn])),

MinDate =Number.From(List.Min(Table[DateColumn])),

DateList = List.Transform({MinDate..MaxDate}, Date.From)

 

--Nate

 

View solution in original post

Anonymous
Not applicable

@Anonymous 
Or if you need a dax method which is also simple. lets say if you have a Table[date] column is continuous.

 

You can just create a table.

Calendar = CALENDAR(MIN('Table'[Date]),MAX('Table'[Date]))
Vpazhenmsft_0-1630288897029.png

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@Anonymous 
Or if you need a dax method which is also simple. lets say if you have a Table[date] column is continuous.

 

You can just create a table.

Calendar = CALENDAR(MIN('Table'[Date]),MAX('Table'[Date]))
Vpazhenmsft_0-1630288897029.png

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

 

Anonymous
Not applicable

The cleanest way (rather, the way I like to do it) is to get the Min Date and Max Date as two separate values in two separate queries. Then turn them into numbers. Then make a list starting at first number and ending at last number. Finally, use Date.From to transform the list.

let

MaxDate = Number.From(List.Max(Table[DateColumn])),

MinDate =Number.From(List.Min(Table[DateColumn])),

DateList = List.Transform({MinDate..MaxDate}, Date.From)

 

--Nate

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.