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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
JunBICons
Frequent Visitor

how to get 01/01/2021 from a date column starts with 09/05/2021 ?

Hi everyone, 
I would like to create a new calendar table using a date column in another table, which is table1[sending date].

And my new calendar table should start with the first day of the year of the earliest date of table1[sending date]
For example, table1[sending date] starts with 09/05/2021 and ends with 10/09/2022, so the new calendar table I will create should start with 01/01/2021 and end with 31/12/2022. 

Could you please help me with this?
Thank you very much in advance!! 

1 ACCEPTED SOLUTION
lukiz84
Memorable Member
Memorable Member

Hi,

 

CALENDAR(
   DATE(YEAR(MIN(Table1[sending date])), 1, 1),
   DATE(YEAR(MAX(Table1[sending date])), 12, 31)
)

View solution in original post

2 REPLIES 2
JunBICons
Frequent Visitor

It worked, thank you so much!! 

lukiz84
Memorable Member
Memorable Member

Hi,

 

CALENDAR(
   DATE(YEAR(MIN(Table1[sending date])), 1, 1),
   DATE(YEAR(MAX(Table1[sending date])), 12, 31)
)

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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.