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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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