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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.