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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Date Table - Calendar function Not bring back Dates

Hi,
 
I'm trying to create a Date table and the below statement doesn't show the dates I need it to show below, can someone please assist with spotting what I've written incorrectly below.
 
Date = CALENDAR(FIRSTDATE('Order Details'[ReceievedDate]),LASTDATE('Order Details'[ReceievedDate]))
1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hi @Anonymous 

try

Date = CALENDAR(MIN('Order Details'[ReceievedDate]),MAX('Order Details'[ReceievedDate]))

or

Date = CALENDARAUTO()

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

5 REPLIES 5
az38
Community Champion
Community Champion

Hi @Anonymous 

try

Date = CALENDAR(MIN('Order Details'[ReceievedDate]),MAX('Order Details'[ReceievedDate]))

or

Date = CALENDARAUTO()

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

Hi @az38 ,

 

I just deleted the existing Date table I had and created a new one and I can now see dates using CALENDARAUTO.

Anonymous
Not applicable

Hi @az38 ,

 

Thanks for getting back to me, but neither shows the dates in my Date column.

 

I've double checked that the field I'm referencing for dates in the below is a date field which it is so completly stumped as to why it would not show the dates because the syntax is correct.

 

Date = CALENDAR(MIN('Order Details'[ReceievedDate]),MAX('Order Details'[ReceievedDate]))

az38
Community Champion
Community Champion

@Anonymous 

are you sure your 'Order Details'[ReceievedDate] field has a Date type?


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

Hi @az38 ,

 

Yeh positive, but I deleted the old table I had created and started again and both solutions you gave me worked perfectly.

 

Thank you 😊

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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